X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C80A13A5FFF for ; Mon, 6 Dec 2004 21:29:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90007-06 for ; Mon, 6 Dec 2004 21:29:00 +0000 (GMT) Received: from stark.xeocode.com (gsstark.mtl.istop.com [66.11.160.162]) by svr1.postgresql.org (Postfix) with ESMTP id 3CFA73A5FC2 for ; Mon, 6 Dec 2004 21:29:01 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1CbQPe-0005ZC-00; Mon, 06 Dec 2004 16:28:54 -0500 To: pgsql-sql@vankoperen.nl Cc: pgsql-sql@postgresql.org Subject: Re: Making dirty reads possible? References: <41B4986B.70201@vankoperen.nl> In-Reply-To: <41B4986B.70201@vankoperen.nl> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 06 Dec 2004 16:28:54 -0500 Message-ID: <878y8b15gp.fsf@stark.xeocode.com> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/41 X-Sequence-Number: 19661 pgsql-sql@vankoperen.nl writes: > But not possible for real at the moment? > > So, summarising: > - Nested transactions is not (yet) supported > - READ UNCOMMITTED isolation level is not (yet) supported > - the EXECUTE plpgsql construct does not circumvent the transaction Well nested transactions are in 8.0 but I don't think they help you much. I find I've been stymied using server-side functions for large batch jobs for pretty much the same reason. I find it works better and it's more flexible to write client-side programs in the language of my choice that connect to the database and do the batch jobs. They can output progress logs or keep information about their progress in some shared space. They can also control the transaction more freely committing in the middle of the job if it's safe. -- greg