From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add pg_identify_object_as_address |
Date: | 2014-12-30 18:42:33 |
Message-ID: | E1Y61kX-0001C5-3K@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add pg_identify_object_as_address
This function returns object type and objname/objargs arrays, which can
be passed to pg_get_object_address. This is especially useful because
the textual representation can be copied to a remote server in order to
obtain the corresponding OID-based address. In essence, this function
is the inverse of recently added pg_get_object_address().
Catalog version bumped due to the addition of the new function.
Also add docs to pg_get_object_address.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/a676201490c8113b4692562126c77a29dfd8dac1
Modified Files
--------------
doc/src/sgml/func.sgml | 149 ++++++++++----
src/backend/catalog/objectaddress.c | 274 ++++++++++++++++++++++++--
src/backend/utils/adt/regproc.c | 60 ++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/objectaddress.h | 3 +
src/include/catalog/pg_proc.h | 3 +
src/include/utils/builtins.h | 5 +
src/test/regress/expected/object_address.out | 85 ++++----
src/test/regress/sql/object_address.sql | 11 +-
9 files changed, 485 insertions(+), 107 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2014-12-30 20:43:06 | pgsql: pg_event_trigger_dropped_objects: Add name/args output columns |
Previous Message | Heikki Linnakangas | 2014-12-30 18:24:08 | Re: pgsql: Use TypeName to represent type names in certain commands |