agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@postgres.Berkeley.EDU>
To: David Alan Nelson <D.A.Nelson@newcastle.ac.uk>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: PQendcopy problem
Date: Mon, 23 May 94 05:59:21 -0700
Message-ID: <199405231259.FAA05341@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <AA04467.9405231231@swinhoe.ncl.ac.uk>
"David Alan Nelson" <D.A.Nelson@newcastle.ac.uk> writes:
> When using the PQlib system with Postgres 4.1, execution of the
> PQendcopy() function causes the program executing PQendcopy()
> to hang, rather than allowing us to perform a second operation.
one thing that isn't terribly clear (ha, understatement) in the
documentation is the fact that PQendcopy should only be used if
you are doing copy with the stdin/stdout keywords. copy to/from
a file works just like any other query; if you call PQendcopy in
that case, the first thing libpq does is read from the connection,
and i would expect that that would hang. (if that's not the
problem, then i have no idea. both kinds of copy are exercised
in the regression tests.)
--
Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@postgres.Berkeley.EDU
| Berkeley, CA 94720 | ...!uunet!ucbvax!aoki
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
reply
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: postgres@postgres.berkeley.edu
Cc: aoki@postgres.Berkeley.EDU, D.A.Nelson@newcastle.ac.uk
Subject: Re: PQendcopy problem
In-Reply-To: <199405231259.FAA05341@faerie.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox