On Tue, 12 Sept 2023 at 09:46, Peter Eisentraut <pe...@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