Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNLAN-00062I-JA for pgsql-committers@arkaria.postgresql.org; Sat, 11 Apr 2020 18:47:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jNLAM-0004QQ-Fh for pgsql-committers@arkaria.postgresql.org; Sat, 11 Apr 2020 18:47:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNLAM-0004QJ-A2 for pgsql-committers@lists.postgresql.org; Sat, 11 Apr 2020 18:47:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNLAJ-0001aO-NZ for pgsql-committers@lists.postgresql.org; Sat, 11 Apr 2020 18:47:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 03BIlYdS025207; Sat, 11 Apr 2020 14:47:34 -0400 From: Tom Lane To: Julien Rouhaud cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support FETCH FIRST WITH TIES In-reply-to: References: Comments: In-reply-to Julien Rouhaud message dated "Sat, 11 Apr 2020 15:38:18 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25205.1586630854.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 11 Apr 2020 14:47:34 -0400 Message-ID: <25206.1586630854@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Julien Rouhaud writes: > On Tue, Apr 7, 2020 at 10:28 PM Alvaro Herrera = 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