]> granicus.if.org Git - postgresql/commit
Allow extracting machine-readable object identity
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Mar 2013 21:19:19 +0000 (18:19 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 20 Mar 2013 21:19:19 +0000 (18:19 -0300)
commitf8348ea32ec8d713cd6e5d5e16f15edef22c4d03
treeb29bf3aef75a8927e7e9d889bef6786984a058c0
parenta7921f71a3c747141344d8604f6a6d7b4cddb2a9
Allow extracting machine-readable object identity

Introduce pg_identify_object(oid,oid,int4), which is similar in spirit
to pg_describe_object but instead produces a row of machine-readable
information to uniquely identify the given object, without resorting to
OIDs or other internal representation.  This is intended to be used in
the event trigger implementation, to report objects being operated on;
but it has usefulness of its own.

Catalog version bumped because of the new function.
12 files changed:
doc/src/sgml/func.sgml
src/backend/catalog/dependency.c
src/backend/catalog/objectaddress.c
src/backend/commands/alter.c
src/backend/parser/gram.y
src/backend/utils/adt/format_type.c
src/backend/utils/adt/regproc.c
src/include/catalog/catversion.h
src/include/catalog/dependency.h
src/include/catalog/objectaddress.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h