postgresql/src/backend
Alvaro Herrera d7ee82e50f Add SQL-callable pg_get_object_address
This allows access to get_object_address from SQL, which is useful to
obtain OID addressing information from data equivalent to that emitted
by the parser.  This is necessary infrastructure of a project to let
replication systems propagate object dropping events to remote servers,
where the schema might be different than the server originating the
DROP.

This patch also adds support for OBJECT_DEFAULT to get_object_address;
that is, it is now possible to refer to a column's default value.

Catalog version bumped due to the new function.

Reviewed by Stephen Frost, Heikki Linnakangas, Robert Haas, Andres
Freund, Abhijit Menon-Sen, Adam Brightwell.
2014-12-23 15:31:29 -03:00
..
access Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
bootstrap Fix off-by-one loop count in MapArrayTypeName, and get rid of static array. 2014-12-16 15:35:33 -05:00
catalog Add SQL-callable pg_get_object_address 2014-12-23 15:31:29 -03:00
commands Add SQL-callable pg_get_object_address 2014-12-23 15:31:29 -03:00
executor Fix corner case where SELECT FOR UPDATE could return a row twice. 2014-12-11 19:37:36 -05:00
foreign Implement IMPORT FOREIGN SCHEMA. 2014-07-10 15:01:43 -04:00
lib Move rbtree.c from src/backend/utils/misc to src/backend/lib. 2014-12-22 17:52:08 +02:00
libpq Fix poorly worded error message. 2014-12-17 13:14:53 -05:00
main Windows: use GetSystemTimePreciseAsFileTime if available 2014-12-08 23:36:06 +09:00
nodes Improve hash_create's API for selecting simple-binary-key hash functions. 2014-12-18 13:36:36 -05:00
optimizer Improve hash_create's API for selecting simple-binary-key hash functions. 2014-12-18 13:36:36 -05:00
parser Add SQL-callable pg_get_object_address 2014-12-23 15:31:29 -03:00
po Translation updates 2014-12-15 00:25:35 -05:00
port Add a basic atomic ops API abstracting away platform/architecture details. 2014-09-25 23:49:05 +02:00
postmaster Improve hash_create's API for selecting simple-binary-key hash functions. 2014-12-18 13:36:36 -05:00
regex Fix incorrect search for "x?" style matches in creviterdissect(). 2014-09-23 20:26:14 -04:00
replication Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
rewrite Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
snowball Finish adding file version information to installed Windows binaries. 2014-08-18 22:59:53 -04:00
storage Prevent potentially hazardous compiler/cpu reordering during lwlock release. 2014-12-19 14:29:52 +01:00
tcop get_object_address: separate domain constraints from table constraints 2014-12-23 09:06:44 -03:00
tsearch Cope with more than 64K phrases in a thesaurus dictionary. 2014-11-06 20:52:40 -05:00
utils Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Translation updates 2014-12-15 00:25:35 -05:00