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

From Carlos Moreno
Subject Re: Strange error (Socket command option unknown)
Date
Msg-id 3E5B02B9.80900@mochima.com
Whole thread Raw
In response to Strange error (Socket command option unknown)  (Carlos Moreno <moreno@mochima.com>)
List pgsql-general
Tom Lane wrote:

>
>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.
>

Yes, the -h localhost would be necessary;  notice that I want to
eavesdrop on my application  (the test with psql was just to
try and see the protocol just to make sure that I understand
the basics before jumping to some serious debugging on my
application).  But yes, the above translates to the fact that
I'll have to add host=localhost to the connection string in my
code.

Thanks,

Carlos
--



pgsql-general by date:

Previous
From: Carlos Moreno
Date:
Subject: Re: Strange error (Socket command option unknown)
Next
From: Drew Wilson
Date:
Subject: how to detect psql's errors?