X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 27D459DC9C8 for ; Tue, 21 Mar 2006 06:05:19 -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 17524-09 for ; Tue, 21 Mar 2006 06:05:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 277319DC82D for ; Tue, 21 Mar 2006 06:05:17 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id AB07956427; Tue, 21 Mar 2006 04:05:19 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Tue, 21 Mar 2006 04:05:18 -0600 Date: Tue, 21 Mar 2006 04:05:18 -0600 From: "Jim C. Nasby" To: Qingqing Zhou Cc: pgsql-performance@postgresql.org Subject: Re: data doesnt get saved in the database / idle in transaction Message-ID: <20060321100518.GA15742@pervasive.com> References: <130df1930603200246j4bd6c6a1r7204a644795ef412@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060321:zhouqq@cs.toronto.edu::Rc2MhsaczKyX6jFY:0000000000000000 0000000000000000000000008Kxt X-Hashcash: 1:20:060321:pgsql-performance@postgresql.org::iQojnyeIsfZpF8ZO:00000 0000000000000000000000002oqU X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.108 required=5 tests=[AWL=0.108] X-Spam-Score: 0.108 X-Spam-Level: X-Archive-Number: 200603/371 X-Sequence-Number: 17808 On Mon, Mar 20, 2006 at 08:03:14PM +0800, Qingqing Zhou wrote: > > ""Ksenia Marasanova"" wrote > > > > The application uses persistant database connection, and when i check > > the status of the connection, it shows: "idle in transaction". I am > > pretty sure that every insert is being committed with explicit > > "commit()" . It always worked before.... weird. > > > > Try to use the following command to see what commands reach the server: > > set log_statement = "all"; I'd bet that the commits aren't making it over. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461