From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add new OID alias type regrole
Date: Sat, 09 May 2015 17:41:18 +0000
Message-ID: <E1Yr8kY-0004eQ-Oq@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add new OID alias type regrole
The new type has the scope of whole the database cluster so it doesn't
behave the same as the existing OID alias types which have database
scope,
concerning object dependency. To avoid confusion constants of the new
type are prohibited from appearing where dependencies are made involving
it.
Also, add a note to the docs about possible MVCC violation and
optimization issues, which are general over the all reg* types.
Kyotaro Horiguchi
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/0c90f6769de6a60f842c916d49b404d03bcc503a
Modified Files
--------------
contrib/spi/insert_username.c | 2 +-
contrib/spi/timetravel.c | 2 +-
doc/src/sgml/datatype.sgml | 27 +++++++--
src/backend/bootstrap/bootstrap.c | 2 +
src/backend/catalog/dependency.c | 10 ++++
src/backend/catalog/objectaddress.c | 20 +++----
src/backend/utils/adt/acl.c | 2 +-
src/backend/utils/adt/name.c | 4 +-
src/backend/utils/adt/regproc.c | 104 +++++++++++++++++++++++++++++++++
src/backend/utils/adt/selfuncs.c | 2 +
src/backend/utils/cache/catcache.c | 1 +
src/backend/utils/init/miscinit.c | 24 +++++---
src/include/catalog/pg_cast.h | 7 +++
src/include/catalog/pg_proc.h | 12 ++++
src/include/catalog/pg_type.h | 5 ++
src/include/foreign/foreign.h | 2 +-
src/include/miscadmin.h | 2 +-
src/include/utils/builtins.h | 5 ++
src/test/regress/expected/regproc.out | 26 ++++++++-
src/test/regress/sql/regproc.sql | 7 +++
20 files changed, 235 insertions(+), 31 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: andrew@dunslane.net
Subject: Re: pgsql: Add new OID alias type regrole
In-Reply-To: <E1Yr8kY-0004eQ-Oq@gemulon.postgresql.org>
References: <E1Yr8kY-0004eQ-Oq@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