Re: pgsql: Support FETCH FIRST WITH TIES

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Support FETCH FIRST WITH TIES
Date: 2020-04-11 18:47:34
Message-ID: 25206.1586630854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Julien Rouhaud <rjuju123(at)gmail(dot)com> writes:
> On Tue, Apr 7, 2020 at 10:28 PM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
>> Support FETCH FIRST WITH TIES

> FTR I now get the following when compiling with -Wimplicit-fallthrough -Werror:

Yeah, assorted buildfarm animals are mentioning that too. I wonder
if we should add that to the default warning options selected by
configure? I don't remember if that's been discussed before.

> It seems that this fall-through comment:
> /* fall-through */
> Is not recognized by my compiler (gcc (Gentoo 9.3.0 p1) 9.3.0). If
> that's something we should fix, PFA a naive patch for that.

Hmm, I feel like this logic is baroque enough to need more of a rewrite
than that :-(. But not sure exactly what would be better, so your
patch seems reasonable for now. The comments could use some help too.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-04-11 19:03:00 pgsql: Suppress -Wimplicit-fallthrough warning in new LIMIT WITH TIES c
Previous Message Noah Misch 2020-04-11 17:35:41 pgsql: When WalSndCaughtUp, sleep only in WalSndWaitForWal().

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-04-11 19:33:09 Re: execExprInterp() questions / How to improve scalar array op expr eval?
Previous Message Neil 2020-04-11 18:43:28 Re: Support for DATETIMEOFFSET