diff options
author | Andrew Dunstan | 2015-05-09 17:06:49 +0000 |
---|---|---|
committer | Andrew Dunstan | 2015-05-09 17:06:49 +0000 |
commit | 0c90f6769de6a60f842c916d49b404d03bcc503a (patch) | |
tree | 519db4b7b0d468bd6df426169fcea5eb0688697b /contrib/spi | |
parent | 0cf56f14dd15532fec930b502cb6457023b01ef8 (diff) |
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
Diffstat (limited to 'contrib/spi')
-rw-r--r-- | contrib/spi/insert_username.c | 2 | ||||
-rw-r--r-- | contrib/spi/timetravel.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/spi/insert_username.c b/contrib/spi/insert_username.c index 875207881a..3812525c4c 100644 --- a/contrib/spi/insert_username.c +++ b/contrib/spi/insert_username.c @@ -79,7 +79,7 @@ insert_username(PG_FUNCTION_ARGS) args[0], relname))); /* create fields containing name */ - newval = CStringGetTextDatum(GetUserNameFromId(GetUserId())); + newval = CStringGetTextDatum(GetUserNameFromId(GetUserId(), false)); /* construct new tuple */ rettuple = SPI_modifytuple(rel, rettuple, 1, &attnum, &newval, NULL); diff --git a/contrib/spi/timetravel.c b/contrib/spi/timetravel.c index 0699438d6f..e125986c2b 100644 --- a/contrib/spi/timetravel.c +++ b/contrib/spi/timetravel.c @@ -174,7 +174,7 @@ timetravel(PG_FUNCTION_ARGS) } /* create fields containing name */ - newuser = CStringGetTextDatum(GetUserNameFromId(GetUserId())); + newuser = CStringGetTextDatum(GetUserNameFromId(GetUserId(), false)); nulltext = (Datum) NULL; |