Re: libpq error codes
От | Denis Perchine |
---|---|
Тема | Re: libpq error codes |
Дата | |
Msg-id | 00062214003002.00479@dyp обсуждение исходный текст |
Ответ на | Re: libpq error codes (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: libpq error codes
|
Список | pgsql-general |
> 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? Linux. I've tested this with 2.2.15pre7 & 2.4.0test1-ac22-riel kernels. > > 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? a. It's broken pipe b. Sorry, it's (a) in russian. > On my system errno 32 is EPIPE, but surely read() should never > return EPIPE. That's right... But what should read return if connection is closed by other side? -- Sincerely Yours, Denis Perchine ---------------------------------- E-Mail: dyp@perchine.com HomePage: http://www.perchine.com/dyp/ FidoNet: 2:5000/120.5 ----------------------------------
В списке pgsql-general по дате отправления: