pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: setFetchSize
Date: Wed, 26 Oct 2011 15:37:46 -0700
Message-ID: <4EA88BBA.4010005@hogranch.com> (raw)
In-Reply-To: <1319660527207-4941054.post@n5.nabble.com>
References: <1319525123309-4935215.post@n5.nabble.com>
	<CA+0W9LNzqMnOHQsE+09tS14LL+B+Uu6+Ue1Ufvfb8=pgKbM7FA@mail.gmail.com>
	<1319573262782-4937529.post@n5.nabble.com>
	<28079.1319575241@sss.pgh.pa.us>
	<1319609361329-4938781.post@n5.nabble.com>
	<CADK3HHKjj3KV-2y1mW0uPLVypPt+mRFtzukG7gPZgzWZCK_1Aw@mail.gmail.com>
	<1319644122794-4940158.post@n5.nabble.com>
	<CADK3HHLrGmJkdcCcYoHV9BpMSg+jTXJ3X4LtzhvhRzvaedAWtQ@mail.gmail.com>
	<1319660527207-4941054.post@n5.nabble.com>

On 10/26/11 1:22 PM, fschmidt wrote:
> Dave Cramer-8 wrote:
>> >  
>> >  My understanding is this: Postgresql is an MVCC database and can
>> >  easily provide you with a snapshot of a resultset inside a
>> >  transaction. Outside a transaction my bet is that the data has to be
>> >  copied to a temporary location somewhere, so if this is done over N
>> >  connections the resources required could be substantial.
>> >  
> The solution is very simple.  Just keep the version associated with the
> current resultset around until the resultset is closed.  This is basically
> the same as having another connection, but in this case, each resultset on
> the connection should use the version that was associated with the
> connection when the resultset was opened.

so now vacuum needs to pay attention to the oldest pending result set as 
well as the oldest transaction?

hmmm.


-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




view thread (40+ messages)  latest in thread

Message-ID: <4EA88BBA.4010005@hogranch.com>
Permalink:  ../4EA88BBA.4010005@hogranch.com/
Also on:    postgresql.org/message-id/4EA88BBA.4010005@hogranch.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: setFetchSize
  In-Reply-To: <4EA88BBA.4010005@hogranch.com>
  References: <1319525123309-4935215.post@n5.nabble.com> <CA+0W9LNzqMnOHQsE+09tS14LL+B+Uu6+Ue1Ufvfb8=pgKbM7FA@mail.gmail.com> <1319573262782-4937529.post@n5.nabble.com> <28079.1319575241@sss.pgh.pa.us> <1319609361329-4938781.post@n5.nabble.com> <CADK3HHKjj3KV-2y1mW0uPLVypPt+mRFtzukG7gPZgzWZCK_1Aw@mail.gmail.com> <1319644122794-4940158.post@n5.nabble.com> <CADK3HHLrGmJkdcCcYoHV9BpMSg+jTXJ3X4LtzhvhRzvaedAWtQ@mail.gmail.com> <1319660527207-4941054.post@n5.nabble.com> <4EA88BBA.4010005@hogranch.com>

* 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