Search Postgresql Archives

Re: What query currently running within function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

2014-07-22 11:36 GMT+02:00 Rebecca Clarke <r.clarke83@xxxxxxxxx>:
Hi all,

Presently I'm executing a function that runs many queries within it.

select * from _myfunction();

Is there a way to see what query it is up to within the function? 

Unfortunately, no. Even with the latest release. pg_stat_activity shows you what the client fires, not what the server does.
 
When I do a select of pg_stat_activity it just shows me the _myfunction() query.

I'm running postgresql 9.1

Thanks in advance.



--
Guillaume.
  http://blog.guillaume.lelarge.info
  http://www.dalibo.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux