Search Postgresql Archives

psql \conninfo in tabular form?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux