Re: data doesnt get saved in the database / idle in transaction

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: data doesnt get saved in the database / idle in transaction
Date: 2006-03-21 10:05:18
Message-ID: 20060321100518.GA15742@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Mar 20, 2006 at 08:03:14PM +0800, Qingqing Zhou wrote:
>
> ""Ksenia Marasanova"" <ksenia(dot)marasanova(at)gmail(dot)com> 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(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jim C. Nasby 2006-03-21 10:08:53 Re: Best OS & Configuration for Dual Xeon w/4GB &
Previous Message Jim C. Nasby 2006-03-21 10:04:12 Re: partial indexes and inference