postgresql/src/backend
Tom Lane 92bf7e2d02 Provide the OR REPLACE option for CREATE TRIGGER.
This is mostly straightforward.  However, we disallow replacing
constraint triggers or changing the is-constraint property; perhaps
that can be added later, but the complexity versus benefit tradeoff
doesn't look very good.

Also, no special thought is taken here for whether replacing an
existing trigger should result in changes to queued-but-not-fired
trigger actions.  We just document that if you're surprised by the
results, too bad, don't do that.  (Note that any such pending trigger
activity would have to be within the current session.)

Takamichi Osumi, reviewed at various times by Surafel Temesgen,
Peter Smith, and myself

Discussion: https://postgr.es/m/0DDF369B45A1B44B8A687ED43F06557C010BC362@G01JPEXMBYT03
2020-11-14 17:05:34 -05:00
..
access
bootstrap Fix some stray whitespace in parser files 2020-11-11 17:37:18 +01:00
catalog Provide the OR REPLACE option for CREATE TRIGGER. 2020-11-14 17:05:34 -05:00
commands Provide the OR REPLACE option for CREATE TRIGGER. 2020-11-14 17:05:34 -05:00
executor
foreign
jit jit: Add support for LLVM 12. 2020-11-09 20:01:33 -08:00
lib
libpq
main
nodes Provide the OR REPLACE option for CREATE TRIGGER. 2020-11-14 17:05:34 -05:00
optimizer
parser Provide the OR REPLACE option for CREATE TRIGGER. 2020-11-14 17:05:34 -05:00
partitioning
po
port
postmaster
regex
replication change wire protocol data type for history file content 2020-11-12 14:08:59 -05:00
rewrite
snowball code: replace most remaining uses of 'master'. 2020-07-08 13:24:35 -07:00
statistics
storage Fix some typos 2020-11-14 11:43:10 +09:00
tcop
tsearch
utils Fix some typos 2020-11-14 11:43:10 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk