]> granicus.if.org Git - postgresql/commit
Add new OID alias type regrole
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 9 May 2015 17:06:49 +0000 (13:06 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 9 May 2015 17:06:49 +0000 (13:06 -0400)
commit0c90f6769de6a60f842c916d49b404d03bcc503a
tree519db4b7b0d468bd6df426169fcea5eb0688697b
parent0cf56f14dd15532fec930b502cb6457023b01ef8
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
20 files changed:
contrib/spi/insert_username.c
contrib/spi/timetravel.c
doc/src/sgml/datatype.sgml
src/backend/bootstrap/bootstrap.c
src/backend/catalog/dependency.c
src/backend/catalog/objectaddress.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/name.c
src/backend/utils/adt/regproc.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/catcache.c
src/backend/utils/init/miscinit.c
src/include/catalog/pg_cast.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_type.h
src/include/foreign/foreign.h
src/include/miscadmin.h
src/include/utils/builtins.h
src/test/regress/expected/regproc.out
src/test/regress/sql/regproc.sql