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