Re: proposal: psql: show current user in prompt - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: proposal: psql: show current user in prompt
Date
Msg-id CAGECzQSMF3mgd-i7Jaw2sHWnYv3HST5+rJS6awcYtdyz5Az+0g@mail.gmail.com
Whole thread Raw
In response to Re: proposal: psql: show current user in prompt  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: proposal: psql: show current user in prompt
List pgsql-hackers
On Tue, 12 Sept 2023 at 09:46, Peter Eisentraut <peter@eisentraut.org> wrote:
> ISTM that for a purpose like pgbouncer, it would be simpler to add a new
> GUC "report these variables" and send that in the startup message?  That
> might not help with the psql use case, but it would be much simpler.

FYI I implemented it that way yesterday on this other thread (patch
0010 of that patchset):

https://www.postgresql.org/message-id/flat/CAGECzQScQ3N-Ykv2j4NDyDtrPPc3FpRoa%3DLZ-2Uj2ocA4zr%3D4Q%40mail.gmail.com#cd9e8407820d492e8f677ee6a67c21ce



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Clean up some signal usage mainly related to Windows
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: Show WAL write and fsync stats in pg_stat_io