X-Original-To: pgsql-interfaces-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 68F5C9FA236 for ; Mon, 18 Sep 2006 05:51:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 01792-04 for ; Mon, 18 Sep 2006 05:51:07 -0300 (ADT) X-Greylist: delayed 00:59:59.329028 by SQLgrey- Received: from smtp19.wxs.nl (smtp19.wxs.nl [195.121.247.10]) by postgresql.org (Postfix) with ESMTP id 56F7C9F9FE1 for ; Mon, 18 Sep 2006 05:51:06 -0300 (ADT) Received: from [195.121.56.118] (ipc3793876.dial.planet.nl [195.121.56.118]) by smtp19.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0J5S009D9353D2@smtp19.wxs.nl> for pgsql-interfaces@postgresql.org; Mon, 18 Sep 2006 09:51:04 +0200 (CEST) Date: Mon, 18 Sep 2006 09:51:34 +0200 From: Adriaan van Os Subject: Re: Progress of asynchronous queries In-reply-to: <16217.125.24.243.247.1158490996.squirrel@webmail.xs4all.nl> To: pgsql-interfaces@postgresql.org Message-id: <450E5006.8020603@microbizz.nl> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) References: <450A6A87.2030808@microbizz.nl> <450AA301.9020408@microbizz.nl> <6009.125.24.242.104.1158397058.squirrel@webmail.xs4all.nl> <450D21E9.7060807@microbizz.nl> <16217.125.24.243.247.1158490996.squirrel@webmail.xs4all.nl> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/18 X-Sequence-Number: 6263 Jeroen T. Vermeulen wrote: > 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?" I now read that Postgres only supports FOR READ ONLY cursors. So, yes, for those cursors you are right and my remark doesn't apply. Still, the issue I raised was about tracing the progress of a SQL command in general, not about the specific case of using a cursor instead. Regards, Adriaan van Os