Re: libpq debug log - Mailing list pgsql-hackers

From Andres Freund
Subject Re: libpq debug log
Date
Msg-id 20190218023758.yruzkyyve2tul4is@alap3.anarazel.de
Whole thread Raw
In response to RE: libpq debug log  ("Jamison, Kirk" <k.jamison@jp.fujitsu.com>)
List pgsql-hackers
Hi,

On 2019-02-18 02:23:12 +0000, Jamison, Kirk wrote:
> For Andres, I haven't looked into tcpdump yet, but I'd like to ask whether
> or not the decrypted output to .pcap (if implemented) may be useful to
> application users. What could be the limitations?
> Could you explain a bit further on the idea?

Well, wireshark (and also tcpdump in a less comfortable manner) has a
dissector for the postgresql protocol. That allows to dig into various
parts. See e.g. the attached as an example of what you can see as the
response to a SELECT 1;

Right now that's not usable if the connection is via TLS, as pretty much
all encrypted connection use some form of forward secrecy, so even if
you had access the the private key, we'd not be able to parse it into an
unencrypted manner.

Greetings,

Andres Freund

Attachment

pgsql-hackers by date:

Previous
From: Donald Dong
Date:
Subject: Re: Actual Cost
Next
From: Amit Langote
Date:
Subject: Re: 2019-03 CF Summary / Review - Tranche #2