postgresql/src/backend
Alvaro Herrera bdc3d7fa23 Return ObjectAddress in many ALTER TABLE sub-routines
Since commit a2e35b53c3, most CREATE and ALTER commands return the
ObjectAddress of the affected object.  This is useful for event triggers
to try to figure out exactly what happened.  This patch extends this
idea a bit further to cover ALTER TABLE as well: an auxiliary
ObjectAddress is returned for each of several subcommands of ALTER
TABLE.  This makes it possible to decode with precision what happened
during execution of any ALTER TABLE command; for instance, which
constraint was added by ALTER TABLE ADD CONSTRAINT, or which parent got
dropped from the parents list by ALTER TABLE NO INHERIT.

As with the previous patch, there is no immediate user-visible change
here.

This is all really just continuing what c504513f83 started.

Reviewed by Stephen Frost.
2015-03-25 17:17:56 -03:00
..
access Reduce pinning and buffer content locking for btree scans. 2015-03-25 14:24:43 -05:00
bootstrap Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
catalog Return ObjectAddress in many ALTER TABLE sub-routines 2015-03-25 17:17:56 -03:00
commands Return ObjectAddress in many ALTER TABLE sub-routines 2015-03-25 17:17:56 -03:00
executor Fix ExecOpenScanRelation to take a lock on a ROW_MARK_COPY relation. 2015-03-24 15:53:06 -04:00
foreign Update copyright for 2015 2015-01-06 11:43:47 -05:00
lib Fix a bug in pairing heap removal code. 2015-02-17 22:55:53 +02:00
libpq Use FLEXIBLE_ARRAY_MEMBER in a number of other places. 2015-02-21 16:12:14 -05:00
main Don't require users of src/port/gettimeofday.c to initialize it. 2015-02-21 12:17:04 -05:00
nodes Rationalize vacuuming options and parameters 2015-03-18 11:52:33 -03:00
optimizer Allow foreign tables to participate in inheritance. 2015-03-22 13:53:21 -04:00
parser Fix gram.y comment to match reality 2015-03-25 14:16:47 -03:00
po Translation updates 2015-02-01 23:23:40 -05:00
port Remove the option to service interrupts during PGSemaphoreLock(). 2015-02-03 23:25:00 +01:00
postmaster Fix status reporting for terminated bgworkers that were never started. 2015-03-19 11:04:09 -04:00
regex Replace a bunch more uses of strncpy() with safer coding. 2015-01-24 13:05:42 -05:00
replication Merge the various forms of transaction commit & abort records. 2015-03-15 17:37:07 +01:00
rewrite Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
snowball Update copyright for 2015 2015-01-06 11:43:47 -05:00
storage Reduce pinning and buffer content locking for btree scans. 2015-03-25 14:24:43 -05:00
tcop Add OID output argument to DefineTSConfiguration 2015-03-25 15:57:08 -03:00
tsearch Update copyright for 2015 2015-01-06 11:43:47 -05:00
utils Apply table and domain CHECK constraints in name order. 2015-03-23 16:59:35 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Update copyright for 2015 2015-01-06 11:43:47 -05:00
nls.mk Translation updates 2015-02-01 23:23:40 -05:00