Re: improvement proposition - Mailing list pgsql-general

From Ron Johnson
Subject Re: improvement proposition
Date
Msg-id 4715152E.7020608@cox.net
Whole thread Raw
In response to improvement proposition  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/16/07 08:21, hubert depesz lubaczewski wrote:
> hi,
> would it be possible for someone to add "last query" for
> pg_stat_activity view?
>
> there is a lot of cases that we have "idle in transaction" sitting for
> long time, and since we dont log all queries it is next to impossible to
> tell where in app code the problem lies.
> it would be very useful to get something like "previous query".

Transaction analysis is the way to go here.  It requires a serious
code review, though.

> is adding something like this possible?

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHFRUuS9HxQb37XmcRAkvuAKCrVQZK1wEAxLquo8ZHHCTLyOmEUgCfYc5o
55pO2d/P4nEp8a8l3GRl0bk=
=Kkkd
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Guy Rouillier
Date:
Subject: Re: How to set config param temporarily?
Next
From: Tom Lane
Date:
Subject: Re: SPI_exec() + PG_TRY/PG_CATCH