psql \conninfo in tabular form? - Mailing list pgsql-general

From Ron
Subject psql \conninfo in tabular form?
Date
Msg-id 4eed5377-3603-85b9-965e-f2bcd507c045@gmail.com
Whole thread Raw
Responses Re: psql \conninfo in tabular form?
List pgsql-general
v13.10

Instead of a sentence like this:
You are connected to database "postgres" as user "postgres" via socket in 
"/var/run/postgresql" at port "5433".

I'd rather have something tabular like:
    keyword  |   value
------------+-----------------------
   database  | postgres
   user      | postgres
   host      | /var/run/postgresql
   port      |  5433

Running psql with the -E option didn't help.  There's a github project named 
ibarwick/conninfo which looked useful, but it seems to only parse connection 
strings.

-- 
Born in Arizona, moved to Babylonia.



pgsql-general by date:

Previous
From: "Peter J. Holzer"
Date:
Subject: Re: escape vs. bytea in config
Next
From: Erik Wienhold
Date:
Subject: Re: psql \conninfo in tabular form?