X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7C3439DC844 for ; Thu, 26 Jan 2006 04:41:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25990-07 for ; Thu, 26 Jan 2006 04:41:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (serval.logix-tt.com [213.239.221.42]) by postgresql.org (Postfix) with ESMTP id DAED09DC817 for ; Thu, 26 Jan 2006 04:41:37 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (Mdab2.m.pppool.de [89.49.218.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 3EA4D24400F; Thu, 26 Jan 2006 09:41:39 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 9DC2718189FAA; Thu, 26 Jan 2006 09:41:37 +0100 (CET) Message-ID: <43D88B41.9040904@logix-tt.com> Date: Thu, 26 Jan 2006 09:41:37 +0100 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mario.splivalo@mobart.hr Cc: Jaime Casanova , pgsql-sql@postgresql.org Subject: Re: Changing the transaction isolation level within the References: <1138198348.8828.32.camel@localhost.localdomain> <1138259311.16164.0.camel@localhost.localdomain> In-Reply-To: <1138259311.16164.0.camel@localhost.localdomain> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.129 required=5 tests=[AWL=0.129] X-Spam-Score: 0.129 X-Spam-Level: X-Archive-Number: 200601/174 X-Sequence-Number: 23963 Hi, Mario, Mario Splivalo wrote: >>you need to set the transaction level after the begin and before every >>other statement... after the begin you have a select that invoke your >>function so that set is not the first statement... > > But I can't do that inside of a function, right? Right, as you need a SELECT to actually execute your function, so the transaction commands inside the function are invoced _after_ the first SELECT began execution. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org