Thread: Question on banner display after PG initial connection

Question on banner display after PG initial connection

From
"Lu, Dan"
Date:

Hello PostgreSQL Admin,

 

I am fairly new to PostgreSQL.  I am a curious question regarding the banner message displayed after connecting to version 12.1 of PostgreSQL.

 

Is there a way to get rid of this line “SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)”?


Thanks.

 

 

UNIX:> psql 'host=hostname user=repmgr dbname=repmgr connect_timeout=2'

psql (12.1)

SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)

Type "help" for help.

 

repmgr=# \q




IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Re: Question on banner display after PG initial connection

From
"David G. Johnston"
Date:
On Thu, Apr 23, 2020 at 2:07 PM Lu, Dan <Dan.Lu@sig.com> wrote:

Hello PostgreSQL Admin,

 

I am fairly new to PostgreSQL.  I am a curious question regarding the banner message displayed after connecting to version 12.1 of PostgreSQL.

 

Is there a way to get rid of this line “SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)”?


Specifically, no.  But passing "--quiet" as a command line option to psql should suppress it, as well as some other stuff.

David J.