pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yeb Havinga <yeb.havinga@portavita.nl>
To: pgsql-sql@postgresql.org
Subject: Multiple simultaneous queries on single connection
Date: Mon, 17 Aug 2009 14:49:09 +0200
Message-ID: <4A8951C5.5030107@portavita.nl> (raw)

Hello list,

We want to access a postgres database with multiple queries / result 
sets that are read simultaneously (hence async). The documentation says 
explicitly that no new PQsendQuery can be send on the same channel 
before the pqgetresults has returned null. This means we need to use 
multiple connections.

The problem is that multiple connections (from the same application 
instance) do not share the same MVCC snapshot.

Is there a way to have two or more connections see each others 
uncommitted things?

Any thoughts?
Yeb Havinga




view thread (3+ messages)  latest in thread

Message-ID: <4A8951C5.5030107@portavita.nl>
Permalink:  ../4A8951C5.5030107@portavita.nl/
Also on:    postgresql.org/message-id/4A8951C5.5030107@portavita.nl

 · 

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-sql@postgresql.org
  Cc: yeb.havinga@portavita.nl
  Subject: Re: Multiple simultaneous queries on single connection
  In-Reply-To: <4A8951C5.5030107@portavita.nl>

* 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