| The PostgreSQL 9.0 Reference Manual - Volume 2 - Programming Guide
by The PostgreSQL Global Development Group Paperback (6"x9"), 478 pages ISBN 9781906966065 RRP £14.95 ($19.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> |
7.3 Rules on INSERT, UPDATE, and DELETE
Rules that are defined on INSERT, UPDATE,
and DELETE are significantly different from the view rules
described in the previous section. First, their CREATE
RULE command allows more:
- They are allowed to have no action.
- They can have multiple actions.
-
They can be
INSTEADorALSO(the default). -
The pseudorelations
NEWandOLDbecome useful. - They can have rule qualifications.
Second, they don't modify the query tree in place. Instead they create zero or more new query trees and can throw away the original one.
| ISBN 9781906966065 | The PostgreSQL 9.0 Reference Manual - Volume 2 - Programming Guide | See the print edition |