Re: View running statements

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: View running statements
Date: 2009-03-12 06:12:41
Message-ID: 20090312061241.GA31303@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In response to Vlad Arkhipov :
> Is there any way to inspect current running statements (optionally full
> stack of these statements)? I've found there is error_context_stack
> variable in each backend, but it seems there is no way to get this
> variable from another backend. It will be great if Postgres have such
> kind of mechanism, for instance a system table that consists statements
> running longer than certain time (5-10 seconds).

select * from pg_stat_activity;

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vlad Arkhipov 2009-03-12 06:52:07 Re: View running statements
Previous Message Vlad Arkhipov 2009-03-12 05:51:52 View running statements