Re: top for postgresql (ptop?)

From: "Luke Lonergan" <llonergan(at)greenplum(dot)com>
To: "Greg Smith" <gsmith(at)gregsmith(dot)com>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: top for postgresql (ptop?)
Date: 2007-09-26 05:40:07
Message-ID: C31F3EC7.443C4%llonergan@greenplum.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Greg,

On 9/25/07 9:15 PM, "Greg Smith" <gsmith(at)gregsmith(dot)com> wrote:

> It's also worth noting that there's a similar Linux utility called gstack.

Cool!

So - the basic idea is that we could uncover the current run context in a
very lightweight manner by just dumping the stack and interpreting it. This
is pretty messy on the client side because of the ugly reconstruction, but
is very unobtrusive to the running query.

An alternative might be to take the plan tree, augment it with stats and
store it in a table, maybe augment the backend to catch a certain signal
(SIGUSR maybe?) and that would cause an update to the table? That way we'd
have the desired feature that the tracking isn't continuous, it's based on a
"peek" approach, which is only as obtrusive as needed.

- Luke

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Raney 2007-09-26 05:43:18 Re: Hash index todo list item
Previous Message ITAGAKI Takahiro 2007-09-26 04:43:34 Re: Thread-safe PREPARE in ecpg