pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add pg_identify_object_as_address
Date: Tue, 30 Dec 2014 18:42:33 +0000
Message-ID: <E1Y61kX-0001C5-3K@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1Y61kX-0001C5-3K@gemulon.postgresql.org>
Permalink:  ../E1Y61kX-0001C5-3K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Y61kX-0001C5-3K@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Add pg_identify_object_as_address
  In-Reply-To: <E1Y61kX-0001C5-3K@gemulon.postgresql.org>
  References: <E1Y61kX-0001C5-3K@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox