Re: libpq error codes - Mailing list pgsql-general

From Tom Lane
Subject Re: libpq error codes
Date
Msg-id 7623.961654530@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq error codes  (Denis Perchine <dyp@perchine.com>)
Responses Re: libpq error codes  (Denis Perchine <dyp@perchine.com>)
List pgsql-general
Denis Perchine <dyp@perchine.com> writes:
> And you use PIPE, but I use sockets. If I just do psql -d db, all is
> as you've said, but if I do psql -d db -h localhost the pictures is as
> following:

Works the same for me with either pipe or socket connection.  I think
something must be broken on your platform --- what platform are you
using, anyway?

> db=> select count(*) from pg_class;
> pqReadData() --  read() failed: errno=32
> ���������� �����

The two obvious questions about this are (a) what is errno 32 on
your system and (b) why is your strerror() yielding garbage instead
of an appropriate error message?

On my system errno 32 is EPIPE, but surely read() should never
return EPIPE.

            regards, tom lane

pgsql-general by date:

Previous
From: Denis Perchine
Date:
Subject: Re: libpq error codes
Next
From: Denis Perchine
Date:
Subject: Re: libpq error codes