pgsql: Remove SQL function getpgusername()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove SQL function getpgusername()
Date: 2026-07-16 22:50:42
Message-ID: E1wkUuf-000WsC-0h@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove SQL function getpgusername()

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(at)linux(dot)com>
Discussion: https://postgr.es/m/CAA-aLv44sPoKhHZqBvhqRdrFUEKwatGEmXBtqC360UuD5Lt7Nw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7af998936d304b676d4e8fb2f2780560cf8443ca

Modified Files
--------------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 3 ---
2 files changed, 1 insertion(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2026-07-16 22:57:35 pgsql: Fix wrong variable offset sanity check.
Previous Message Peter Geoghegan 2026-07-16 22:10:52 pgsql: Use fake LSNs consistently in hash index AM.