X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 93DA9D6EB0 for ; Sat, 24 Sep 2005 16:46:36 -0300 (ADT) 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 53522-07 for ; Sat, 24 Sep 2005 19:46:32 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [204.127.198.43]) by svr1.postgresql.org (Postfix) with ESMTP id 9DAC0D9451 for ; Sat, 24 Sep 2005 16:46:31 -0300 (ADT) Received: from [192.168.1.52] (c-65-96-235-5.hsd1.ma.comcast.net[65.96.235.5]) by comcast.net (rwcrmhc12) with ESMTP id <20050924194632014000q905e>; Sat, 24 Sep 2005 19:46:32 +0000 Message-ID: <4335AD17.9020608@comcast.net> Date: Sat, 24 Sep 2005 15:46:31 -0400 From: Jeffrey Tenny User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Tracing commits on the server Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.868 required=5 tests=[DNS_FROM_RFC_POST=1.376, DNS_FROM_RFC_WHOIS=0.492] X-Spam-Level: * X-Archive-Number: 200509/106 X-Sequence-Number: 13891 I'm trying to debug some database transaction problems, 8.0.3 On the server I've enabled statement logging with the configuration parameter: log_statement = 'all' Works peachy. But my jdbc transaction commits aren't logged, and I can't figure out how to see when the server is processing logical statement commits. (It is definitely not an auto-commit application). I see one or two commits like this: LOG: statement: begin; select getdatabaseencoding(); commit LOG: statement: BEGIN; SELECT usesuper FROM pg_catalog.pg_user WHERE usename = 'Foo'; COMMIT I'm not sure where those are coming from, an artifact of some command line tool or jdbc driver directive. And I get some of these: LOG: statement: begin; select getdatabaseencoding(); commit LOG: statement: BEGIN;SELECT version(); LOG: statement: COMMIT; I don't think those are comming from my app. Other than that, I see some of these: LOG: statement: SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL SERIALIZABLE LOG: statement: SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY LOG: statement: SET SESSION CHARACTERISTICS AS TRANSACTION READ WRITE Presumably they're being executed at the start of a new transaction, but there's no sign of any COMMIT statements before them. What can I do to see where the database is committing the transaction?