]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove SQL function getpgusername()
authorMichael Paquier <michael@paquier.xyz>
Thu, 16 Jul 2026 22:40:10 +0000 (07:40 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 16 Jul 2026 22:40:10 +0000 (07:40 +0900)
Since 457ac0331cd3, 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

src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat

index ba4e2b4d908f96046cd53ed346ed173fd9a8c597..0401f19b59a2901f6a2e1eba41394a1b7f1093ca 100644 (file)
@@ -57,6 +57,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     202607091
+#define CATALOG_VERSION_NO     202607171
 
 #endif
index 3cb84359adf06dac52537d6a087fd5bb4c9af3c5..1c55a4dea345203fb2bdf9a4c3adb97f2311b1c1 100644 (file)
   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' },