Re: Stats Collector

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Stats Collector
Date: 2002-07-23 14:05:28
Message-ID: 3D3D62A8.9F7BBF4A@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Christopher Kings-Lynne wrote:
>
> Is there any way of resetting the stats collector without restarting
> Postgres? I want all the pg_stat_* tables to have zero for everything
> again...

Hmmm,

there is a special control message for the collector to do so, and a
function that sends it exists too. But there is absolutely no way to
call it =:-O

Looks to me, someone forgot something. That would be me and now I
remember that I originally wanted to add some utility command for that.

What you need in the meantime is a little C function that calls

void pgstat_reset_counters(void);

I might find the time tomorrow to write one for you if you don't know
how.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message strange 2002-07-23 14:09:02 Re: Shell Script help for backup
Previous Message Wim 2002-07-23 14:05:11 Re: [NOVICE] URGENT! pg_dump doesn't work! (fwd)

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2002-07-23 14:35:53 Re: Stats Collector
Previous Message Robert Treat 2002-07-23 14:03:25 Re: Stats Collector