3.6. Rules
Rules are objects that store additional SQL commands executed whenever a select, insert, delete, or update is performed on a table. Unlike triggers, which can be executed on each row modification, rules are executed when the entire table is changed, no matter how many rows were modified.
123
| General | ||
|---|---|---|
| # | Field | Description |
| 1 | Event | Event that executes the rule. The possible values are |
| 2 | Execution type | Mode in which the rule is executed. |
| 3 | Conditional expression | A SQL conditional expression that returns a boolean value ( |
12
| SQL commands | ||
|---|---|---|
| # | Field | Description |
| 1 | SQL command | A SQL command executed by the rule. Type it and use the add button |
| 2 | SQL commands | The commands executed by the rule. Type a command in the field above and click the add button |
References
Rule DDL
https://www.postgresql.org/docs/current/static/sql-createrule.html