pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mike g <mike@thegodshalls.com>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: statistics collector: number of function calls
Date: Mon, 12 Jul 2004 21:43:23 -0500
Message-ID: <1089686603.28592.10.camel@localhost.localdomain> (raw)
In-Reply-To: <1089644918.3246.14.camel@dicaprio.akademie1.de>
References: <1089644918.3246.14.camel@dicaprio.akademie1.de>

Hello,

It is possible to enable the statements issued against the db to be
logged in postgresql.conf(log_statement = true).  Depending on the OS
then you can filter the logs or maybe create a Perl script to scan the
logs.

HTH.


On Mon, 2004-07-12 at 10:08, Markus Bertheau wrote:
> Hi,
> 
> I'd find it useful if the statistics collector (or someone else) counted
> the number of times a function was called (or whether it was called at
> all). Given that PL/pgSQL-Functions are compiled only at the first call
> this would provide for a possibility to check whether every function has
> been used and therefore compiled successfully during a test run of an
> application.
> 
> Is something like this planned or already available, but hidden well?
> 
> Thanks



view thread (6+ messages)  latest in thread

Message-ID: <1089686603.28592.10.camel@localhost.localdomain>
Permalink:  ../1089686603.28592.10.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1089686603.28592.10.camel@localhost.localdomain

 · 

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-admin@postgresql.org
  Cc: mike@thegodshalls.com, twanger@bluetwanger.de
  Subject: Re: statistics collector: number of function calls
  In-Reply-To: <1089686603.28592.10.camel@localhost.localdomain>
  References: <1089644918.3246.14.camel@dicaprio.akademie1.de> <1089686603.28592.10.camel@localhost.localdomain>

* 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