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 1gJ4O3-0007Oc-7y for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Nov 2018 22:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJ4O0-0001Rr-VO for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Nov 2018 22:27:20 +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 1gJ4Nz-0001Rk-Rp for pgsql-bugs@lists.postgresql.org; Sat, 03 Nov 2018 22:27:20 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJ4Ns-0002S9-Rv for pgsql-bugs@postgresql.org; Sat, 03 Nov 2018 22:27:19 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 160A221DFB; Sat, 3 Nov 2018 18:27:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 03 Nov 2018 18:27:11 -0400 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:content-transfer-encoding:in-reply-to; s=fm2; bh=v c9OeRgKPejnlyGbgnxdt3JLjIYyEY/nvIUY1/7p+do=; b=rp0H9TlxS0SRt4Ik2 I8aurlRoX92bgtQcYWvk5ZYOkvMaTjodUCxokLKfiAJDI8Irgnucin6t7lW3KVq1 4lQy27Qkl+aTeCkduS55HhBL1K4AKiWN0rvFJ669FpNtHGSsyDwEBWy/2300eiRo doxtID8LjRlqnVQKqau8ez/bWwO2vBjeYfXmQvq5hIDynXigmxEfNwH2+/mVWpw0 0qyfaj8io7Ln7Mmdt6UkenunNNEBM675RCURWqBCvbZjt9I4Fy4zBiTU08nydAgk BXYIhYqwkOk77BZ4fC19OwUqB+LIzHibqq5t6g4d5xlzKS942knr8WgJ7biNy+kq S9Ang== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=vc9OeRgKPejnlyGbgnxdt3JLjIYyEY/nvIUY1/7p+ do=; b=mr1quIMK8pWv45TTnqPyWvJKwE8tOIa9Us23kh5/SgG/NNSTpOuGBxM03 Yb0B77UmkOhKJwLWb664ISn7znZ56YtUSCdEtODe4+UCZ/WPkgNSuSmfJMxqvOOQ yaATKkm0s5BMxtkYUyPiJyD1C41ntj6goTvv67+xRAdNOTPijaVr/W7i+VxDBkEh T8bdLeEZ5cMhfXlWXDE17/BiizaEmEJHYm0AOcmrn4yNgwz0iUfDd+Na5wjWAFL5 eivhdUgPQEL5Vjkqh5DKuNeU4vyxXCE4SktwjJgxHocczLkqnSfvlYx47Pbjf+1n 8jxcO2QpnjeiNH3ibNIm5phdN/nLA== 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 156EE102E0; Sat, 3 Nov 2018 18:27:10 -0400 (EDT) Date: Sat, 3 Nov 2018 15:27:09 -0700 From: Andres Freund To: Tom Lane Cc: Andrew Gierth , =?utf-8?Q?Ond=C5=99ej?= Bouda , pgsql-bugs@postgresql.org Subject: Re: Wrong aggregate result when sorting by a NULL value Message-ID: <20181103222709.c2hqlbipo7f53nx3@alap3.anarazel.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30989.1541283520@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-11-03 18:18:40 -0400, Tom Lane wrote: > Andres Freund writes: > > And pushed. Thanks Ondřej for the report, thanks Tom & Andrew for > > identifying the issue. > > Hm, buildfarm seems less than pleased. Did you miss making a > corresponding change in the JIT code? Hm, I'm somewhat confused, let me look into that. The JIT code shouldn't really need to be changed here - it's the *generation* of expression steps that's going wrong - which then later get turned into JITed code, but that part worked previously for other expressions. Greetings, Andres Freund