pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
Cc: Lista Postgres <pgsql-admin@postgresql.org>
Subject: Re: Getting previous statements executed a backend currenly in an <idle> in transaction state.
Date: Mon, 22 Jan 2007 01:44:58 -0500
Message-ID: <6524.1169448298@sss.pgh.pa.us> (raw)
In-Reply-To: <a97c77030701212025x3eaff03bq46935a5072cb6e19@mail.gmail.com>
References: <a97c77030701212025x3eaff03bq46935a5072cb6e19@mail.gmail.com>

"Rajesh Kumar Mallah" <mallah.rajesh@gmail.com> writes:
> This issue has been posted before also but this time i wanted
> to know, if it is possible to know what statements have been
> executed by the backend in the same transaction which is currently
> idle. this can probably help us in identifying the faulty application
> code.

> in past we had set a logging prefix in guc and used grep to digout
> the statements but that was logging all statements which was
> probably not a good idea in production environment. Can some
> one suggest if anything else is readily available.

AFAICS, log_statement and friends are much cheaper than any other
alternative could be.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <6524.1169448298@sss.pgh.pa.us>
Permalink:  ../6524.1169448298@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6524.1169448298@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mallah.rajesh@gmail.com
  Subject: Re: Getting previous statements executed a backend currenly in an <idle> in transaction state.
  In-Reply-To: <6524.1169448298@sss.pgh.pa.us>
  References: <a97c77030701212025x3eaff03bq46935a5072cb6e19@mail.gmail.com> <6524.1169448298@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox