X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 34AF63A3E45 for ; Tue, 23 Nov 2004 12:04:52 +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 20542-02 for ; Tue, 23 Nov 2004 12:04:42 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id E17FC3A3E30 for ; Tue, 23 Nov 2004 12:04:43 +0000 (GMT) Received: (qmail 25585 invoked from network); 23 Nov 2004 12:04:34 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 23 Nov 2004 12:04:34 -0000 Message-ID: <41A32762.4000403@fastcrypt.com> Date: Tue, 23 Nov 2004 07:04:50 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: Barry Lind , pgsql-jdbc@postgresql.org Subject: Re: When running with autocommit false only the first BEGIN References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> <41A30F2C.40801@opencloud.com> In-Reply-To: <41A30F2C.40801@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/183 X-Sequence-Number: 11605 That certainly doesn't seem acceptable. As Barry points out people will really be in the dark when their code doesn't work. --dc-- Oliver Jowett wrote: > Barry Lind wrote: > >> While debugging my other server problem, I noticed that that only the >> first BEGIN and COMMIT are logged on the server with sql statement >> logging enabled. It seems that the subsequent transaction control >> statements are being executed correctly, it is just that they are not >> being logged by the server. Is this to be expected? If so, it makes >> debugging a bit difficult as you can't see what commits are really being >> executed when you have sql statement logging enabled. > > > Yeah, it's a limitation of statement logging. Statements are logged > only on Parse, not on Bind/Execute. The driver reuses the internal > BEGIN/COMMIT statements, so only one Parse is done for each. You will > see the same thing for user queries if they end up using server-side > prepare. > > There should be some past discussion about this in the -hackers archives. > > -O > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561