Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6XM0-0007UE-0y for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2019 09:17:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6XLy-0002Hk-Lj for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2019 09:17:42 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6XLx-0002HM-PV for pgsql-hackers@lists.postgresql.org; Wed, 20 Mar 2019 09:17:42 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6XLs-00012I-Of for pgsql-hackers@postgresql.org; Wed, 20 Mar 2019 09:17:41 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D996822015; Wed, 20 Mar 2019 05:17:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 20 Mar 2019 05:17:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=D0zADy0JqiI1IVeU6SJYL72xfTV YimRCaOd1NOt7IV0=; b=H05czTeybPLFNLah+W44ufUjsmK+9saC9GW1NqMADdB 5Ew29E2bxf0dtmWMnRgOOJW/jnDrVCbECVMaPD21IwbQwpErRqYyFDBK7+A/ex7N CVlGjE/nXhm17LRnLnEZ7Kl6jQZNYZQmSnUMOv8wphJAn/FzUiq/VYsHTxJnt64n G748FgSFM1Ja9pp3Kz0AeuqBwtP7B/p87twNWTFZplEQG5RWpOKDL1hQg1cXeQj4 j/NJImfcAfCX0MkEVvv27Fs1VD/ddbGb72bf1E0ONKL5r2XXp9LZ3oJwuFK9cdXq 91xPcHNk53QS0U58zRXZiQ7JwrV4t8b5hc6cFinmrAg== 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=fm2; bh=D0zADy 0JqiI1IVeU6SJYL72xfTVYimRCaOd1NOt7IV0=; b=CeniHog/186zxiPDWL1QuN GP7N9AFwPMMSRUzPCljH0Lf97ey4zuSa0by9lDVlExR6scJF5wxp7oabXObAG706 bdDOUaD0ILtYY/JhvM4etuzJ4jiAP7A0DGTJ1+rYvcFrf6HY0UkS4tKFn5T+mfsT Kx++wlYCJbni3mnMj35ZvNg3EAryczEkFoVZJzVOnOZeiNJlVEk/WwIECXUyDo6F +iP9jMANfZYaYvc3c/IrGvmGZ5dpS0wgkOtTjnrAMy8l3Ug7Jt1UC0DsS+EGwQG4 Dfnqoun1K3mN6jB9ktxNCZ9rrTUpaAYjnV3GM28d5oaOIL6l2lW+CwZ+PMwm0EKA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrieeigddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeeiuddrvdduhedrudefjedrudeivdenucfrrghrrghm pehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 3083B10311; Wed, 20 Mar 2019 05:17:30 -0400 (EDT) Date: Wed, 20 Mar 2019 18:17:27 +0900 From: Michael Paquier To: Amit Langote Cc: Amit Langote , exclusion@gmail.com, PostgreSQL mailing lists , PostgreSQL-development , Peter Eisentraut Subject: Re: BUG #15668: Server crash in transformPartitionRangeBounds Message-ID: <20190320091727.GE26601@paquier.xyz> References: <20190306064825.GH30982@paquier.xyz> <6ed2c24c-2f73-fa1c-0ed1-ed3597f13d0d@lab.ntt.co.jp> <20190306082730.GJ30982@paquier.xyz> <20190311072114.GG1818@paquier.xyz> <20190314042308.GG3493@paquier.xyz> <20190320020731.GE3488@paquier.xyz> <1937632d-0807-ce70-f608-d075b4866963@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="V4b9U9vrdWczvw78" Content-Disposition: inline In-Reply-To: <1937632d-0807-ce70-f608-d075b4866963@lab.ntt.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --V4b9U9vrdWczvw78 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 20, 2019 at 06:07:23PM +0900, Amit Langote wrote: > because we can notice the aggregate before we look into its arguments. > Maybe, we should move the error-checking switch to a point before checking > the arguments? That looks slightly more drastic change to make though. Yeah, I think that it would be more invasive because the parsing logic looks at the column references first. This way of doing things is also something which is logic in its own way as the most internal portions of an expression get checked first, so I quite like that way of doing things. And that's just consistent with the point of view of the parsing check order. > We may want to fix the crash first. It might be better to hear other > opinions before doing something about the error messages. The thing is that in order to keep the tests for the crash, we finish with the inintuitive RTE-related errors, so it is also inconsistent to not group things.. -- Michael --V4b9U9vrdWczvw78 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlySBScACgkQnvQgOdby QH1ddBAAi60pzVUceSNtC3zfc+qzbSAiEK8ZAzR+kVyhtgnJQ+aU1Ca7WuYlNrgX 8CFrTrxAO0g4RYQfLp/qs4lsCXzxBGdeFs9MQqigRe50yJaAftL7ymL5JP7meiC3 8D5xzF2l6KYO5rFe9ymIJEyAQEdhwI7qaDf99/U+nLt369nCZRhTQ9pTWQjBVqG9 LZcqxYzcFJUwIIddWckSLkNK3kaMFeb9bYrD1PGZjDOCn/mNYBEwb47ghMAGcM5/ Yb0JQlD+vqgVtnXQN3/YMTbru0FbFjvVoeekw2Hu+VXz0E3KgaBd+RrbRkIpqirV HJysIK5L4gxRUlC28dw5px+6E65yqe1VCUOVxqb/aR9DgVNzq0VwyucQDyk1E8cD iFBuGSTvlo+pdzEuvJml76wgdYLYKV3gsRK+dhDFSDF32XseqnlXiUp0BjEaF74V j8LCySlKfztQYAerNIvU7gjPcOyYQJGcSRPKtV6JUszhAqLECmCcoTgHhzk/QdJ8 0pAu0kO+j/Bj7uzuZCuA6/BiyT6qXUoaehBuGqd+s2AhluBYH9z0k8xlYmpCiMmi wvcCvHCHU/IMSidOhrBDThIBhuB50pQLA1XRunc5IhPdKqlTVMxk8YoHrZiTyFcx H2yXPBx/FrXxY+pKbK1pBNdDnub1s8hUKR/Fb56+8F2solk+LWs= =pziB -----END PGP SIGNATURE----- --V4b9U9vrdWczvw78--