1
0
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:
Michael Paquier
2026-07-17 07:40:10 +09:00
parent cea74f48d3
commit 7af998936d
2 changed files with 1 additions and 4 deletions

View File

@@ -57,6 +57,6 @@
*/
/* yyyymmddN */
#define CATALOG_VERSION_NO 202607091
#define CATALOG_VERSION_NO 202607171
#endif

View File

@@ -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' },