Re: libpq sendQuery -- getResult not returning until all queries complete

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: Kelly Burkhart <kelly(dot)burkhart(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq sendQuery -- getResult not returning until all queries complete
Date: 2010-12-21 19:21:23
Message-ID: AANLkTikQRgmbowQsC-2S9d1K_A5fdrgfJkYd23bN_NWr@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can't concurrently execute queries from within a single
connection. Perhaps you should use multiple connections, while
understanding the implications of having each operate within a
separate snapshot.

Don't forget to free memory with PQclear() . I guess you omitted that
because it's just pseudo-code.

--
Regards,
Peter Geoghegan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomas Vondra 2010-12-21 19:22:44 Re: Can the query planner create indexes?
Previous Message Jeremy Harris 2010-12-21 19:03:17 Re: Can the query planner create indexes?