Re: Strange error (Socket command option unknown) - Mailing list pgsql-general

From Tom Lane
Subject Re: Strange error (Socket command option unknown)
Date
Msg-id 7437.1046145173@sss.pgh.pa.us
Whole thread Raw
In response to Re: Strange error (Socket command option unknown)  (Carlos Moreno <moreno@mochima.com>)
List pgsql-general
Carlos Moreno <moreno@mochima.com> writes:
> checking the man pages, I came up with:
> tcpdump -i local port 5432
> I then connected using psql -h localhost, as a test;
> it seems to be showing only timing and length information.

I get useful results with

/usr/sbin/tcpdump -x -X -s 0 -i lo port 5432

You do need to use "-h localhost" when connecting with psql.

            regards, tom lane

pgsql-general by date:

Previous
From: Drew Wilson
Date:
Subject: how to detect errors in statements piped to psql?
Next
From: "Andrew Bartley"
Date:
Subject: reindex