Re: libpq error codes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Denis Perchine <dyp(at)perchine(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq error codes
Date: 2000-06-22 06:15:30
Message-ID: 7623.961654530@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

Denis Perchine <dyp(at)perchine(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Denis Perchine 2000-06-22 06:55:27 Re: libpq error codes
Previous Message Denis Perchine 2000-06-22 05:29:53 Re: libpq error codes

Browse pgsql-patches by date

  From Date Subject
Next Message Philip J. Warner 2000-06-22 06:31:33 Re: Big 7.1 open items
Previous Message Hiroshi Inoue 2000-06-22 05:56:07 RE: Big 7.1 open items