pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tatsuhito Kasahara <kasahara.tatsuhito@oss.ntt.co.jp>
To: Guillaume Smet <guillaume.smet@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: display previous query string of idle-in-transaction
Date: Mon, 30 Mar 2009 16:08:07 +0900
Message-ID: <49D06FD7.7030906@oss.ntt.co.jp> (raw)
In-Reply-To: <1d4e0c10903270038s1785d37ai80b82e70f3287a24@mail.gmail.com>
References: <49C9F49B.8020003@oss.ntt.co.jp>
	<1238091273.16568.530.camel@ebony.2ndQuadrant>
	<49CC75E3.7010101@oss.ntt.co.jp>
	<1d4e0c10903270027k7e5ab5dduc9961f62ee89621d@mail.gmail.com>
	<1d4e0c10903270038s1785d37ai80b82e70f3287a24@mail.gmail.com>

(Sorry for delay..)

Guillaume Smet wrote:
> Being able to detect which application is running which query on the
> very same database with the very same user seems like something not so
> obvious and the use case seems to be pretty narrow. And IMHO, even if
> we suppose you can make the difference between the applications with
> only one query, you won't be able to limit your investigation to this
> application.
Yes, I won't be able to *completely* detect which application is running
long transaction with a last query.

But, as I said, I can get a hint for guessing causes from it.
And, as Simon said, I can detect a problem point with collaboration
from other information (app's log, app's source, operation procedure, and so on).

> So, in fact, I'm still not convinced. Could you detail a bit more how
> you plan to use it?
Well, Now, I can't get enough information from pg_stat_activity.
So, I have to check huge logs or reproduce the same problem.
(They are annoying works.)

If I can check last and more queries, I can use it as a hint for narrowing
down problem points with app's log and so on.
# And search the point and fix (or suggesting action) it.

I hope it would be able to narrowing down problem points more easily.

Best regards,
-- 
Tatsuhito Kasahara
kasahara.tatsuhito@oss.ntt.co.jp



view thread (28+ messages)  latest in thread

Message-ID: <49D06FD7.7030906@oss.ntt.co.jp>
Permalink:  ../49D06FD7.7030906@oss.ntt.co.jp/
Also on:    postgresql.org/message-id/49D06FD7.7030906@oss.ntt.co.jp

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: kasahara.tatsuhito@oss.ntt.co.jp, guillaume.smet@gmail.com, simon@2ndquadrant.com
  Subject: Re: display previous query string of idle-in-transaction
  In-Reply-To: <49D06FD7.7030906@oss.ntt.co.jp>

* 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