postgresql/src/backend/commands
Tom Lane 7fc0f06221 Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be
checked to determine whether the trigger should be fired.

For BEFORE triggers this is mostly a matter of spec compliance; but for AFTER
triggers it can provide a noticeable performance improvement, since queuing of
a deferred trigger event and re-fetching of the row(s) at end of statement can
be short-circuited if the trigger does not need to be fired.

Takahiro Itagaki, reviewed by KaiGai Kohei.
2009-11-20 20:38:12 +00:00
..
Makefile Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
aggregatecmds.c Support use of function argument names to identify which actual arguments 2009-10-08 02:39:25 +00:00
alter.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
analyze.c Provide a parenthesized-options syntax for VACUUM, analogous to that recently 2009-11-16 21:32:07 +00:00
async.c Create a multiplexing structure for signals to Postgres child processes. 2009-07-31 20:26:23 +00:00
cluster.c Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust 2009-10-05 19:24:49 +00:00
comment.c CREATE LIKE INCLUDING COMMENTS and STORAGE, and INCLUDING ALL shortcut. Itagaki Takahiro. 2009-10-12 19:49:24 +00:00
constraint.c Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
conversioncmds.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
copy.c Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be 2009-11-20 20:38:12 +00:00
dbcommands.c Make initdb behave sanely when the selected locale has codeset "US-ASCII". 2009-11-12 02:46:16 +00:00
define.c Define a new, more extensible syntax for COPY options. 2009-09-21 20:10:21 +00:00
discard.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
explain.c Add support for invoking parser callback hooks via SPI and in cached plans. 2009-11-04 22:26:08 +00:00
foreigncmds.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
functioncmds.c Keep track of language's trusted flag in InlineCodeBlock. Needed to support DO blocks for languages that have both trusted and untrusted variants. 2009-11-06 21:57:57 +00:00
indexcmds.c Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
lockcmds.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
opclasscmds.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
operatorcmds.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
portalcmds.c Fix snapshot management, take two. 2009-10-07 16:27:18 +00:00
prepare.c Add support for invoking parser callback hooks via SPI and in cached plans. 2009-11-04 22:26:08 +00:00
proclang.c Implement the DO statement to support execution of PL code without having 2009-09-22 23:43:43 +00:00
schemacmds.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
sequence.c Code review for LIKE INCLUDING patch --- clean up some cosmetic and not 2009-10-13 00:53:08 +00:00
tablecmds.c Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be 2009-11-20 20:38:12 +00:00
tablespace.c Revert the temporary patch to work around Snow Leopard readdir() bug. 2009-11-10 18:53:38 +00:00
trigger.c Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be 2009-11-20 20:38:12 +00:00
tsearchcmds.c Support use of function argument names to identify which actual arguments 2009-10-08 02:39:25 +00:00
typecmds.c Support use of function argument names to identify which actual arguments 2009-10-08 02:39:25 +00:00
user.c Add a hook to CREATE/ALTER ROLE to allow an external module to check the 2009-11-18 21:57:56 +00:00
vacuum.c Provide a parenthesized-options syntax for VACUUM, analogous to that recently 2009-11-16 21:32:07 +00:00
vacuumlazy.c Provide a parenthesized-options syntax for VACUUM, analogous to that recently 2009-11-16 21:32:07 +00:00
variable.c Disallow RESET ROLE and RESET SESSION AUTHORIZATION inside security-definer 2009-09-03 22:08:05 +00:00
view.c Don't treat NEW and OLD as reserved words anymore. For the purposes of rules 2009-11-05 23:24:27 +00:00