postgresql/src/backend/commands
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
..
Makefile Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
aggregatecmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
alter.c get_object_address: separate domain constraints from table constraints 2014-12-23 09:06:44 -03:00
analyze.c Emit msg re skipping ANALYZE for absent inh tree 2014-11-15 22:49:54 +00:00
async.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
cluster.c Get rid of SET LOGGED indexes persistence kludge 2014-11-15 01:19:49 -03:00
collationcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
comment.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
constraint.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
conversioncmds.c Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
copy.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
createas.c Add CINE option for CREATE TABLE AS and CREATE MATERIALIZED VIEW 2014-12-13 13:56:09 -05:00
dbcommands.c Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
define.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
discard.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dropcmds.c Row-Level Security Policies (RLS) 2014-09-19 11:18:35 -04:00
event_trigger.c Add SQL-callable pg_get_object_address 2014-12-23 15:31:29 -03:00
explain.c Remove odd blank line in comment. 2014-12-18 17:33:38 +09:00
extension.c Add infrastructure to save and restore GUC values. 2014-11-24 16:37:56 -05:00
foreigncmds.c Implement IMPORT FOREIGN SCHEMA. 2014-07-10 15:01:43 -04:00
functioncmds.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
indexcmds.c Further changes to REINDEX SCHEMA 2014-12-11 22:54:05 +00:00
lockcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
matview.c Get rid of SET LOGGED indexes persistence kludge 2014-11-15 01:19:49 -03:00
opclasscmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
operatorcmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
policy.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
portalcmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
prepare.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
proclang.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
schemacmds.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
seclabel.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
sequence.c Improve hash_create's API for selecting simple-binary-key hash functions. 2014-12-18 13:36:36 -05:00
tablecmds.c get_object_address: separate domain constraints from table constraints 2014-12-23 09:06:44 -03:00
tablespace.c Revamp the WAL record format. 2014-11-20 18:46:41 +02:00
trigger.c Fix potential NULL-pointer dereference. 2014-11-10 15:22:46 -05:00
tsearchcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
typecmds.c Make CREATE TYPE print warnings if a datatype's I/O functions are volatile. 2014-11-05 11:44:06 -05:00
user.c Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
vacuum.c Keep track of transaction commit timestamps 2014-12-03 11:53:02 -03:00
vacuumlazy.c Use %u to print out BlockNumber variables 2014-12-18 17:59:00 -03:00
variable.c Use a bitmask to represent role attributes 2014-12-23 10:22:09 -03:00
view.c Message improvements 2014-10-12 01:06:35 -04:00