From: Gregory W Burnham <gburnham@sfu.ca>
To: pgsql-interfaces@postgresql.org
Subject: Broken Pipe
Date: Wed, 3 Mar 1999 15:50:07 -0800
Message-ID: <006a01be65d0$91870320$3d063a8e@educ.sfu.ca> (raw)
I'm using Postgres 6.3.2 (I know, I know 6.4.2 is out,
I'll upgrade as soon as this #$%&*! project is over)
running on RedHat 5.1.
I'm getting 'Broken Pipe' returned from the following snippet:
___________________________________________________
if (idNum != 0){
int lo_fd = 0;
lo_fd = lo_open(conn, idNum, INV_READ);
lo_read(conn, lo_fd, buffer, bufferSize);
lo_close(conn, lo_fd);
}
___________________________________________________
The pipe breaks in various places, but always in this
section. This is part of a loop, and it seems to
always happen the 4th time through. And yes, it's
with differant Oids.
Any ideas? Solutions? Cyanide?
Gregory W Burnham
Software Engineer
Excite Labs
Simon Fraser University
Vancouver, BC
V5A 1S6
604 291 3615 ph
604 291 5679 fx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: gburnham@sfu.ca
Subject: Re: Broken Pipe
In-Reply-To: <006a01be65d0$91870320$3d063a8e@educ.sfu.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox