agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
PQendcopy problem
2+ messages / 2 participants
[nested] [flat]

* PQendcopy problem
@ 1994-05-23 12:31 David Alan Nelson <D.A.Nelson@newcastle.ac.uk>
  1994-05-23 12:59 ` Re: PQendcopy problem Paul M. Aoki <aoki@postgres.Berkeley.EDU>
  0 siblings, 1 reply; 2+ messages in thread

From: David Alan Nelson @ 1994-05-23 12:31 UTC (permalink / raw)
  To: legacy

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.

Has anybody else came across this problem, or can provide a 
solution.

Cheers

Dave Nelson
-- 

Mail ID : D.A.Nelson@newcastle.ac.uk

Computing Science, University of Newcastle upon Tyne, UK.  (091) 222 8789

==============================================================================
   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.
==============================================================================



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PQendcopy problem
  1994-05-23 12:31 PQendcopy problem David Alan Nelson <D.A.Nelson@newcastle.ac.uk>
@ 1994-05-23 12:59 ` Paul M. Aoki <aoki@postgres.Berkeley.EDU>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul M. Aoki @ 1994-05-23 12:59 UTC (permalink / raw)
  To: David Alan Nelson <D.A.Nelson@newcastle.ac.uk>; +Cc: legacy

"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.
==============================================================================



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1994-05-23 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-05-23 12:31 PQendcopy problem David Alan Nelson <D.A.Nelson@newcastle.ac.uk>
1994-05-23 12:59 ` Paul M. Aoki <aoki@postgres.Berkeley.EDU>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox