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 1gJSS6-0007M1-HG for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Nov 2018 00:09:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJSS3-00064x-8J for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Nov 2018 00:09:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJSS2-00064W-Up for pgsql-bugs@lists.postgresql.org; Mon, 05 Nov 2018 00:09:07 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJSS0-0001GZ-2R for pgsql-bugs@postgresql.org; Mon, 05 Nov 2018 00:09:05 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4C99721B13; Sun, 4 Nov 2018 19:09:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 04 Nov 2018 19:09:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=2W9LMxVx6kR6ttE2SO33Hn4ntI/ XT3LMueIxBKKQLVQ=; b=fE1u96CCZ+CgdRn8y13Qv8JPI3NDo8/dyy2mfVZLCaq 3pj1Xmqh4BtQfe25QCsoyWjTTaMAIbwcgHyfJFG3W7WYvU5aHIvWYznQ7Byr1AL7 nss13nPAktFiSuDScXWP4BeeWhA4mO+yFXa7LvKcqVdmmHmvv/eoRFTaxI5AlNqx 51DVqmH3hPrtfa/da3rYU1kO4i/NPmGLn3ZlaKAl12gB2FDZ1LiJZAyJdf+0veTe tFdkRP5UiPER32YHN8bF9klrhdHPaw1pzkAGX36QIHCWiit8QXj9hoYxojt6KWF4 yT7P959aYd+7JfAPUqrV9Fx0bUe3V2jLxB/ygj1oySA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=2W9LMx Vx6kR6ttE2SO33Hn4ntI/XT3LMueIxBKKQLVQ=; b=U1fGy1MXndrv/k5pcQpRk+ SIkKMMDpdbSk6GOjnfMo0WQ/0klTV5wVEyZloHVNXFgsfUnri4Vw0Y+rk0JIW6Nd 9QuhMBSxBbQb6DSVyUdJeUHpcwbAJ++TgsvvPCOQYt1bJDz5U9Pn7dVD9bI7MXSg FJ2daMwWHjB0ZKECd1URKyhZ+WtU05p9Slyy4A2LNgQGojh8TWAW/tQ35hIKS2o9 Km0TCJPbpYlD+fGh04788EkPN+YvGblbiLNUtJiAb7hCVWH7oIAj7D1CjUUscg5v GMhjQ1/NSXVvRQrb+MItFCAZ2sSVRCQwus4DKzipQN7NUrk0X2OLz2QBbXuYARag == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 28B11102E8; Sun, 4 Nov 2018 19:09:02 -0500 (EST) Date: Sun, 4 Nov 2018 16:09:00 -0800 From: Andres Freund To: Tom Lane Cc: Jeff Janes , Andrew Gierth , obouda@email.cz, Pg Bugs Subject: Re: Wrong aggregate result when sorting by a NULL value Message-ID: <20181105000900.hmhvb5daedmxzm63@alap3.anarazel.de> References: <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> <26185.1541348399@sss.pgh.pa.us> <20181104234410.f63uu33kfxy2zgjx@alap3.anarazel.de> <24674.1541375380@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24674.1541375380@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-11-04 18:49:40 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2018-11-04 11:19:59 -0500, Tom Lane wrote: > >> Used-for-asserts-only problem. Will fix. > > > Thanks. I wonder if we shouldn't turn Asserts() into something roughly > > akin to if (0) {expr};. That way we'd not deal with errors about unused > > variables anymore - we're not safe against unreachable code warnings > > anyway. > > Meh. I'm unexcited about getting rid of one type of compiler warning by > introducing another one. It's impracticable to enable dead code warnings in postgres anyway. There's way way too many of them (all the returns after elog(ERROR) etc are enough to make it infeasible to change that). Greetings, Andres Freund