Re: View running statements - Mailing list pgsql-hackers

From Vlad Arkhipov
Subject Re: View running statements
Date
Msg-id 49B8B117.1080209@dc.baikal.ru
Whole thread Raw
In response to Re: View running statements  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: View running statements  (Josh Berkus <josh@agliodbs.com>)
List 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
>   

It shows only top-level statements. You can see 'select * from f()' in 
this table but you never see what is actually executing in this function.


pgsql-hackers by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: View running statements
Next
From: Tom Lane
Date:
Subject: Re: Row-Trigger implicitly allows users ACL_SELECT