agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove SQL function getpgusername()
Date: Thu, 16 Jul 2026 22:50:42 +0000
Message-ID: <E1wkUuf-000WsC-0h@gemulon.postgresql.org> (raw)

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@linux.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(-)



Message-ID: <E1wkUuf-000WsC-0h@gemulon.postgresql.org>
Permalink:  ../E1wkUuf-000WsC-0h@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wkUuf-000WsC-0h@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove SQL function getpgusername()
  In-Reply-To: <E1wkUuf-000WsC-0h@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox