mirror of
https://github.com/postgres/postgres.git
synced 2026-10-28 02:33:10 +03:00
Remove SQL function getpgusername()
Since 457ac0331c, current_user() is the recommended way to get access
to this information, and getpgusername() was marked as deprecated since,
without being documented.
Bump catalog version.
Reported-by: Thom Brown <thom@linux.com>
Discussion: https://postgr.es/m/CAA-aLv44sPoKhHZqBvhqRdrFUEKwatGEmXBtqC360UuD5Lt7Nw@mail.gmail.com
This commit is contained in:
@@ -57,6 +57,6 @@
|
||||
*/
|
||||
|
||||
/* yyyymmddN */
|
||||
#define CATALOG_VERSION_NO 202607091
|
||||
#define CATALOG_VERSION_NO 202607171
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1515,9 +1515,6 @@
|
||||
proargtypes => 'oidvector oidvector', prosrc => 'oidvectorgt' },
|
||||
|
||||
# OIDS 700 - 799
|
||||
{ oid => '710', descr => 'deprecated, use current_user instead',
|
||||
proname => 'getpgusername', provolatile => 's', prorettype => 'name',
|
||||
proargtypes => '', prosrc => 'current_user' },
|
||||
{ oid => '716',
|
||||
proname => 'oidlt', proleakproof => 't', prorettype => 'bool',
|
||||
proargtypes => 'oid oid', prosrc => 'oidlt' },
|
||||
|
||||
Reference in New Issue
Block a user