pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rysdam <drysdam@ll.mit.edu>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Not clear on what PQgetResult does
Date: Thu, 17 Nov 2005 14:38:18 -0500
Message-ID: <451.1132256298@sss.pgh.pa.us> (raw)
In-Reply-To: <437CD359.5080908@ll.mit.edu>
References: <437CD359.5080908@ll.mit.edu>

David Rysdam <drysdam@ll.mit.edu> writes:
> I don't understand in what sense PQgetResult is asynchronous.

It isn't.  You can use it in an asynchronous client, but the way you do
that is by not calling it until PQisBusy says you can (which means the
whole result has arrived, and you're just calling PQgetResult to get
hold of it).

> If the latter, is pgtcl's pg_getresult supposed to work the same way?

Dunno ... there was no such command last time I looked at pgtcl.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <451.1132256298@sss.pgh.pa.us>
Permalink:  ../451.1132256298@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/451.1132256298@sss.pgh.pa.us

 · 

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: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, drysdam@ll.mit.edu
  Subject: Re: Not clear on what PQgetResult does
  In-Reply-To: <451.1132256298@sss.pgh.pa.us>

* 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