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 69B133A3D25 for ; Tue, 23 Nov 2004 10:17:15 +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 88807-01 for ; Tue, 23 Nov 2004 10:17:11 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 410F83A3CDC for ; Tue, 23 Nov 2004 10:17:09 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CWXjM-00068t-00; Tue, 23 Nov 2004 23:17:04 +1300 Message-ID: <41A30F2C.40801@opencloud.com> Date: Tue, 23 Nov 2004 23:21:32 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041115) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Barry Lind Cc: pgsql-jdbc@postgresql.org Subject: Re: When running with autocommit false only the first BEGIN References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> In-Reply-To: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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/181 X-Sequence-Number: 11603 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