Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJL8K-0003hD-Dz for pgsql-bugs@arkaria.postgresql.org; Sun, 04 Nov 2018 16:20:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJL8I-00058p-Jy for pgsql-bugs@arkaria.postgresql.org; Sun, 04 Nov 2018 16:20:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJL8I-00058c-Df for pgsql-bugs@lists.postgresql.org; Sun, 04 Nov 2018 16:20:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJL8C-0004jk-8P for pgsql-bugs@postgresql.org; Sun, 04 Nov 2018 16:20:14 +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 wA4GJxGk026186; Sun, 4 Nov 2018 11:19:59 -0500 From: Tom Lane To: Jeff Janes cc: Andres Freund , Andrew Gierth , obouda@email.cz, Pg Bugs Subject: Re: Wrong aggregate result when sorting by a NULL value In-reply-to: References: <2a505161-2727-2473-7c46-591ed108ac52@email.cz> <30923.1541171251@sss.pgh.pa.us> <32176.1541172886@sss.pgh.pa.us> <20181102154050.6prklkv37wdqvilx@alap3.anarazel.de> <87y3ab2ykj.fsf@news-spur.riddles.org.uk> <20181103055700.etsffelwr2rhrphh@alap3.anarazel.de> <20181103215009.slavgzc2kvyhpxlf@alap3.anarazel.de> <30989.1541283520@sss.pgh.pa.us> <20181103222709.c2hqlbipo7f53nx3@alap3.anarazel.de> <20181103230837.6rv63tajaodxmp6j@alap3.anarazel.de> Comments: In-reply-to Jeff Janes message dated "Sun, 04 Nov 2018 09:11:36 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26184.1541348399.1@sss.pgh.pa.us> Date: Sun, 04 Nov 2018 11:19:59 -0500 Message-ID: <26185.1541348399@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeff Janes writes: > I'm now getting a compiler warning: > execExpr.c: In function 'ExecBuildAggTrans': > execExpr.c:2864:7: warning: unused variable 'numInputs' [-Wunused-variable] > int numInputs = pertrans->numInputs; Used-for-asserts-only problem. Will fix. regards, tom lane