From: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | amit(dot)kapila16(at)gmail(dot)com |
Cc: | robertmhaas(at)gmail(dot)com, alvherre(at)2ndquadrant(dot)com, sk(at)zsrv(dot)org, vik(dot)fearing(at)2ndquadrant(dot)com, kommi(dot)haribabu(at)gmail(dot)com, peter(dot)eisentraut(at)2ndquadrant(dot)com, michael(at)paquier(dot)xyz, magnus(at)hagander(dot)net, masao(dot)fujii(at)gmail(dot)com, ashu(dot)coek88(at)gmail(dot)com, euler(at)timbira(dot)com(dot)br, pgsql-hackers(at)postgresql(dot)org, simon(at)2ndquadrant(dot)com, dpage(at)pgadmin(dot)org |
Subject: | Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query |
Date: | 2018-12-17 11:36:10 |
Message-ID: | 20181217.203610.11183943.horiguchi.kyotaro@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello. One more weight comes here.
At Sat, 15 Dec 2018 08:03:46 +0530, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote in <CAA4eK1JHaibcX_Sf9eboDFV-OhHAw93XiD46rK=hnzSNHRD3oA(at)mail(dot)gmail(dot)com>
> On Sat, Dec 15, 2018 at 12:14 AM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> >
> > On Wed, Nov 28, 2018 at 1:43 PM Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
> > > Right, I think option 4 is a clear improvement over option 1. I can get
> > > behind that one. Since not many people care to vote, I think this tips
> > > the scales enough to that side.
> >
> > I'm showing up very late to the party here,
> >
>
> Not a problem, people like you are always welcome.
>
> > but I like option 1 best.
> >
>
> You are not alone in this camp, so, IIUC, below are voting by different people
>
> Option-1: Vik, Sergei, Robert
> Option-2: Alvaro, Magnus
> Option-3: Michael, Hari
> Option-4: Amit, Hari, Magnus, Alvaro, Michael, Peter
>
> Some people's name is present in two options as they are okay with
> either one of those. I see that now more people are in favor of
> option-1, but still, the tilt is more towards option-4.
>
> > I feel like the SQL standard has a pretty clear idea that NULL is how
> > you represent a value is unknown, which shows up in a lot of places.
> > Deciding that we're going to use a different sentinel value in this
> > one case because NULL is a confusing concept in general seems pretty
> > strange to me.
> >
>
> I agree that NULL seems to be the attractive choice for a default
> value, but we have to also see what it means? In this case, NULL will
> mean 'all' which doesn't go with generally what NULL means (aka
> unknown, only NULL can be compared with other NULL). There are a few
> people on this thread who feel that having NULL can lead to misuse of
> this API [1] as explained here and probably we need to use some
> workaround for it to be used in production [2].
> [1] - https://www.postgresql.org/message-id/CAA4eK1LicqWY55XxmahQXti4RjQ28iuASAk1X8%2ByKX0J051_VQ%40mail.gmail.com
> [2] - https://www.postgresql.org/message-id/20181117111653.cetidngkgol5e5xn%40alvherre.pgsql
Although #1 seems cleaner to me, the fear of inadvertent removal
of all queries with quite-common usage wins. So I vote for #4
for now, supposing pg_stat_statements_reset(0, 0, 0) as
all-clear.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2018-12-17 12:35:52 | Re: gist microvacuum doesn't appear to care about hot standby? |
Previous Message | Michael Paquier | 2018-12-17 10:49:42 | Re: Fixing typos in tests of partition_info.sql |