aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/constraint.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-06-19 14:31:54 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-06-19 14:31:54 -0400
commitfe3db740025d80f70ceccb33b2bf3c085a2fca80 (patch)
treee227567c304402f8c4db8ad3ead87d454e80ea30 /src/backend/commands/constraint.c
parent48756be9cf31c37a936eecff051bf143d5866551 (diff)
downloadpostgresql-fe3db740025d80f70ceccb33b2bf3c085a2fca80.tar.gz
postgresql-fe3db740025d80f70ceccb33b2bf3c085a2fca80.zip
Share RI trigger code between NO ACTION and RESTRICT cases.
These triggers are identical except for whether ri_Check_Pk_Match is to be called, so factor out the common code to save a couple hundred lines. Also, eliminate null-column checks in ri_Check_Pk_Match, since they're duplicate with the calling functions and require unnecessary complication in its API statement. Simplify the way code is shared between RI_FKey_check_ins and RI_FKey_check_upd, too.
Diffstat (limited to 'src/backend/commands/constraint.c')
0 files changed, 0 insertions, 0 deletions