Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Shafiq Far: "Just wanted to let you know that I think the SQL Maestro for Postgres is excellent. We've tried a variety over the past few years and none are even close to yours. Well done".
Simon Pills: "Someone finally invented an intuitively used and easily customized PostgreSQL database administration tool! Keep up the good work. I will be in touch. I am able to do this horrendous work because your software enabled me to create a new database with all necessary objects in several minutes! I am sure that I have found what I really need".

More

Add your opinion

PostgreSQL Maestro online Help

Prev Return to chapter overview Next

Rules

The PostgreSQL rule system allows to define an alternate action to be performed on insertions, updates, or deletions in database tables. Roughly speaking, a rule causes additional commands to be executed when a given command on a given table is executed.

 

 

Rules are created within Create Rule Wizard. In order to run the wizard you should either

 

open the table in Table Editor and the Rules tab there;
press the Insert key or select the Add New Rule... item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

or

select the table in the explorer tree and use the Create New Rule... popup menu item

or

select the table Rules node or any rule within the table in the explorer tree and use the Add New Rule... popup menu item.

 

 

Rules are edited within the Rule Editor dialog window. In order to open the dialog you should either

 

open the table in Table Editor and the Rules tab there;
press the Enter key or select the Edit Rule item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

or

select the rule to edit in the explorer tree and use the Edit Rule popup menu item.

 

 

 

To drop a rule:

 

select the rule to drop in the explorer tree;
select the Drop Rule item from the popup menu

or

open the table in Table Editor and the Rules tab there;
select the rule to drop;
press the Delete key or select the Drop Rule item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

and confirm dropping in the dialog window.

 



Prev Return to chapter overview Next