Re: Resetting a single statistics counter - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Resetting a single statistics counter
Date
Msg-id 9837222c1001240925y48ab467dp9b048fcfd8d289ee@mail.gmail.com
Whole thread Raw
In response to Re: Resetting a single statistics counter  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Resetting a single statistics counter
Re: Resetting a single statistics counter
List pgsql-hackers
2010/1/24 Tom Lane <tgl@sss.pgh.pa.us>:
> Magnus Hagander <magnus@hagander.net> writes:
>> In the spirit of finishing off small patches, attached is the one that
>> implements pg_stat_reset_single(), to be able to reset stats for a
>> single table or function. I kind of thought it would be included in
>> the patch from Greg Smith for shared counters so I put it aside, but I
>> guess I misunderstood him there. Anyway, I polished off the final
>> part, and here it is.
>
> This is bogus; it assumes tables and functions will not have the same
> OIDs.

Gah... *faceinpalms*

Off to make it two separate functions.. (seems much more user-friendly
than a single function with an extra argument, IMHO)


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: commit fests
Next
From: Heikki Linnakangas
Date:
Subject: Re: tab completion for prepared transactions?