Re: \conninfo and SSL - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: \conninfo and SSL
Date
Msg-id CABUevEwDbXT=gr6O74ghsZ6_UyWV87SpyGsF3iofdtQosqrazA@mail.gmail.com
Whole thread Raw
In response to \conninfo and SSL  (Bruce Momjian <bruce@momjian.us>)
Responses Re: \conninfo and SSL
List pgsql-hackers
On Thu, May 31, 2012 at 9:04 PM, Bruce Momjian <bruce@momjian.us> wrote:
> On startup, psql shows the SSL information:
>
>        $ psql 'sslmode=require host=localhost'
>        psql (9.2beta1)
>        SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
>
> However, \conninfo does not mention SSL:
>
>        postgres=> \conninfo
>        You are connected to database "postgres" as user "postgres" on
>        host "localhost" at port "5432".
>
> Should \conninfo mention SSL?  Fortunately \c shows SSL information:
>
>        postgres=> \c
>        SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
>        You are now connected to database "postgres" as user "postgres".

Well, \c creates a new connection, so that's not really an information
command. It might not connect that trivially, depending on what
authentication method you use.

Including ssl info in \conninfo would be useful, I think.

//Magnus


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: \conninfo and SSL
Next
From: Jeff Davis
Date:
Subject: Re: extending relations more efficiently