Re: stored procedures vs pg_stat_statements - Mailing list pgsql-hackers

From Tom Lane
Subject Re: stored procedures vs pg_stat_statements
Date
Msg-id 1493055.1734991093@sss.pgh.pa.us
Whole thread Raw
In response to stored procedures vs pg_stat_statements  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: stored procedures vs pg_stat_statements
List pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> Can this simply be disabled for stored procedures as a special case?  I'm
> hoping this might do something useful that is also safe.  Curious if anyone
> has any thoughts on this.

No, I don't think that would help.  The restriction on utility
statements would cover CREATE PROCEDURE/FUNCTION, not calls
of those things which is what I suppose you care about.

Do you have pg_stat_statements.track set to "all"?  That should
allow statements within stored procedures to be tracked, which
again is what I'm guessing you care about.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: stored procedures vs pg_stat_statements
Next
From: "David E. Wheeler"
Date:
Subject: Re: Add Postgres module info