Skip site navigation (1) Skip section navigation (2)

Re: Progress of asynchronous queries

From: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
To: "Adriaan van Os" <postgres(at)microbizz(dot)nl>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Progress of asynchronous queries
Date: 2006-09-17 11:03:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On Sun, September 17, 2006 17:22, Adriaan van Os wrote:

>> But you'd be doing this in a transaction anyway: you can't declare a
>> cursor without starting a transaction first.Yes, you could deliberately
>> declare "WITH HOLD" and keep using your cursor after commiting or
>> aborting
>> the transaction.  But even then, so far as I know, the cursor presents a
>> snapshot view of its result set so you get an effective isolation level
>> of
>> "serializable" even then.
> No, carefully read
> <>.

I'm familiar with the document, thank you, but if you're not prepared to
give any detail beyond "no" then I remain unconvinced.  What part exactly
do you disagree with?  That cursors can't be declared without beginning a
transaction first?  That cursors present a snapshot view of their result
set?  That that amounts to an effective isolation level of "serializable?"

>> The number of users has nothing to do with the matter
> It does.

No.  Number of concurrent sessions, yes, assuming you're working at "read
committed" isolation level--and even then not for cursors, as I said.

>> if that were a real
>> concern, you'd be using a serializable transaction anyway, so you
>> wouldn't
>> have to worry about it even if cursors did behave as "read committed."
> I don't want to be forced to use serializable transaction mode, just
> because I want to know the
> progress of an SQL command.

And that's not what I said.  I said that if you have concerns over the
consistency of your view of the database in the presence of other
concurrent sessions, you'd be using "serializable" transactions in the
first place--*regardless* of whether you want to report progress.


In response to


pgsql-interfaces by date

Next:From: Adriaan van OsDate: 2006-09-18 07:51:34
Subject: Re: Progress of asynchronous queries
Previous:From: Adriaan van OsDate: 2006-09-17 10:22:33
Subject: Re: Progress of asynchronous queries

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group