Re: Resetting a single statistics counter
От
Simon Riggs
Тема
Re: Resetting a single statistics counter
Дата
Msg-id
1264354915.10311.172.camel@ebony
Ответ на
Re: Resetting a single statistics counter (Magnus Hagander)
Список
Дерево обсуждения
Resetting a single statistics counter Magnus Hagander <magnus@hagander.net>
Re: Resetting a single statistics counter Tom Lane <tgl@sss.pgh.pa.us>
Re: Resetting a single statistics counter Magnus Hagander <magnus@hagander.net>
Re: Resetting a single statistics counter Simon Riggs <simon@2ndQuadrant.com>
Re: Resetting a single statistics counter Magnus Hagander <magnus@hagander.net>
Re: Resetting a single statistics counter Tom Lane <tgl@sss.pgh.pa.us>
Re: Resetting a single statistics counter Euler Taveira de Oliveira <euler@timbira.com>
Re: Resetting a single statistics counter Tom Lane <tgl@sss.pgh.pa.us>
Re: Resetting a single statistics counter Euler Taveira de Oliveira <euler@timbira.com>
Re: Resetting a single statistics counter Magnus Hagander <magnus@hagander.net>
Re: Resetting a single statistics counter Magnus Hagander <magnus@hagander.net>
Re: Resetting a single statistics counter Tom Lane <tgl@sss.pgh.pa.us>
Re: Resetting a single statistics counter Magnus Hagander <magnus@hagander.net>
On Sun, 2010-01-24 at 18:25 +0100, Magnus Hagander wrote: > 2010/1/24 Tom Lane : > > Magnus Hagander 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) And a much better name also :-) -- Simon Riggs www.2ndQuadrant.com
В списке pgsql-hackers по дате отправления