pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pinker <pinker@onet.eu>
To: pgsql-general@postgresql.org
Subject: Re: unreliable behaviour of track_functions
Date: Sun, 1 Apr 2018 06:02:12 -0700 (MST)
Message-ID: <1522587732634-0.post@n3.nabble.com> (raw)
In-Reply-To: <d2e4fe1a-0e72-9cab-228a-d7068ee5712d@aklaver.com>
References: <1522539643653-0.post@n3.nabble.com>
	<650a05f5-2926-5a63-e653-2ae5aa903547@aklaver.com>
	<1522541842492-0.post@n3.nabble.com>
	<d2e4fe1a-0e72-9cab-228a-d7068ee5712d@aklaver.com>

I mean this part describing track_function:

https://www.postgresql.org/docs/10/static/runtime-config-statistics.html

Enables tracking of function call counts and time used. Specify pl to track
only procedural-language functions, all to also track SQL and C language
functions. The default is none, which disables function statistics tracking.
Only superusers can change this setting.

Note
SQL-language functions that are simple enough to be “inlined” into the
calling query will not be tracked, regardless of this setting.

Only case described here, that exclude function from being tracked it's
inlining, not the time and not the place in the query.
So I would expect that pg_stat_user_function will show me that my function
was executed. Good that are other ways to do it, but changing
track_functions to 'all' I would expect all calls will be tracked...



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




view thread (8+ messages)  latest in thread

Message-ID: <1522587732634-0.post@n3.nabble.com>
Permalink:  ../1522587732634-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1522587732634-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: pinker@onet.eu
  Subject: Re: unreliable behaviour of track_functions
  In-Reply-To: <1522587732634-0.post@n3.nabble.com>
  References: <1522539643653-0.post@n3.nabble.com> <650a05f5-2926-5a63-e653-2ae5aa903547@aklaver.com> <1522541842492-0.post@n3.nabble.com> <d2e4fe1a-0e72-9cab-228a-d7068ee5712d@aklaver.com> <1522587732634-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox