pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Who am I? Where am I connected?
Date: Wed, 18 May 2022 19:12:47 -0400
Message-ID: <63571.1652915567@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFCRh-9D37RTFNAFm-r+trq63kpk_M4cWGQ5_oG0hM+9QHLe7Q@mail.gmail.com>
References: <CAFCRh-_BSW8VRPPQU6OrKmLZmk1+-0GvbBObgkMmqWf2_YqMkQ@mail.gmail.com>
	<CAKFQuwZK=Gsuwts9gcje8-vQ8ZXoGcm1CHgo9oVTzowOVKi9TQ@mail.gmail.com>
	<CAFCRh-9D37RTFNAFm-r+trq63kpk_M4cWGQ5_oG0hM+9QHLe7Q@mail.gmail.com>

Dominique Devienne <ddevienne@gmail.com> writes:
> AFAIK, it’s not psql that does this though, it’s libpq the official client
> api.
> And the fact libpq has no way to surface that info seems like an important
> oversight.

PQconninfo() will show you all the option values in use by a connection
object.  It's true that it's not very easy to tell where any given value
came from, but I doubt it'd be worth an ABI break to add such info.
(You could at least recognize values that match the hard-wired default
or environment variable value.)

			regards, tom lane





view thread (9+ messages)

Message-ID: <63571.1652915567@sss.pgh.pa.us>
Permalink:  ../63571.1652915567@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/63571.1652915567@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ddevienne@gmail.com, david.g.johnston@gmail.com
  Subject: Re: Who am I? Where am I connected?
  In-Reply-To: <63571.1652915567@sss.pgh.pa.us>
  References: <CAFCRh-_BSW8VRPPQU6OrKmLZmk1+-0GvbBObgkMmqWf2_YqMkQ@mail.gmail.com> <CAKFQuwZK=Gsuwts9gcje8-vQ8ZXoGcm1CHgo9oVTzowOVKi9TQ@mail.gmail.com> <CAFCRh-9D37RTFNAFm-r+trq63kpk_M4cWGQ5_oG0hM+9QHLe7Q@mail.gmail.com> <63571.1652915567@sss.pgh.pa.us>

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

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