Search Postgresql Archives

Re: RULE - special variables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Peter wrote:
Do rules get special variables like triggers? Can I set variables in them like
triggers?

You get NEW/OLD but they mean something subtly different. Rules act on a query-tree so they are more like placeholders.

You can't set variables in triggers. You do so in a function. If your rule calls a function, that could have variables.

Spend some time playing with rules - make sure you understand the difference between them and triggers.
--
  Richard Huxton
  Archonet Ltd


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux