Re: What query currently running within function

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Rebecca Clarke <r(dot)clarke83(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: What query currently running within function
Date: 2014-07-24 04:42:32
Message-ID: CAEYLb_XYVK5xNH6wWjGBKNuUCYeBJRkkruZ4Zuyr7GZT-pFmNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jul 22, 2014 at 2:45 AM, Guillaume Lelarge
<guillaume(at)lelarge(dot)info> wrote:
> Unfortunately, no. Even with the latest release. pg_stat_activity shows you
> what the client fires, not what the server does.

pg_stat_statements has a "track" GUC which controls whether or not
nested statements, such as statements executed within functions are
tracked.

--
Regards,
Peter Geoghegan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2014-07-24 05:25:16 Re: Standby Server Bus 7 error
Previous Message Fabio Milano 2014-07-24 03:53:04 Standby Server Bus 7 error