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 1h1Ru0-0006bu-KY for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Mar 2019 08:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1Rty-0001oL-UC for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Mar 2019 08:27:46 +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 1h1Rtx-0001oD-Fj for pgsql-bugs@lists.postgresql.org; Wed, 06 Mar 2019 08:27:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1Rts-00065P-4r for pgsql-bugs@lists.postgresql.org; Wed, 06 Mar 2019 08:27:44 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D2DC021E97; Wed, 6 Mar 2019 03:27:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 06 Mar 2019 03:27:37 -0500 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=rLEtOwi1IabIzkswKZQMX6IgFiK xbAC2y+53KS8Asj8=; b=fvKjy4/JCNhvqKGkKCJys/bUaCVar+KM1D+moMdgDSW urvtInFo2AP4KRdz4Bkd04Jy8hBqZycyXDZKQqpTtvRpbxa0wVySjG5u834cnZYi yKXLnhxj+ShAMm8K7otp5n1xopETeXbRDtOI42OoWCk7BH+oD3GkwTP6yc5vAXPN c9SS3w/3hcvc9kzUX/SH69ZLsEICV7PsouPAkxNJQHNw5cPHxJ5t6LJ8l/StvNIG gNBizFOS1N4mpk43rHQjmPgDMPN6eVt9+ajZmP2dzHBDUgYNRJiMUuOZcqVi0PJM 3j7NZHjVSUMSjdPH3uWqdyIjgcKk/pc1RIkhmFIfJ1A== 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=rLEtOw i1IabIzkswKZQMX6IgFiKxbAC2y+53KS8Asj8=; b=fcZW4f3fgN95z2L0FezY7d Da00E6yErMuoLwXOhQlF4dzACcXZ44c/NAbhQHe3e6LOOrU6IoKpTvJgixYVm9r+ yBI4lzeAle7RBLMjBopCvJg1bYs86Pp3ZMX5mtuuYFnM8/+vsCFYl2NxsTsjcCtX l0Sj+bm00EBH/JelICjhKopKpwjgcUYmgyeFm7oiue0nNFZM3RZbtlYLEM1lWUKS AfaZDL9Q9I3GiXmjp426Qfvhpx9XUwUfSt+up+XGnU/GOmnn8wpv1Ela6MT64Rgu JKGYJXzAd6YR5vfJRFnBMsnKWR6+Zij4rxv7XQ3cVi9cnQbj3mU6W/NbHVBpyfJg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrfeeggdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepiedurddvudehrddufeejrdduiedvnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 0405F10310; Wed, 6 Mar 2019 03:27:33 -0500 (EST) Date: Wed, 6 Mar 2019 17:27:30 +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: <20190306082730.GJ30982@paquier.xyz> References: <15668-0377b1981aa1a393@postgresql.org> <20190306064825.GH30982@paquier.xyz> <6ed2c24c-2f73-fa1c-0ed1-ed3597f13d0d@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bgLLobvf7eP6VP5c" Content-Disposition: inline In-Reply-To: <6ed2c24c-2f73-fa1c-0ed1-ed3597f13d0d@lab.ntt.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --bgLLobvf7eP6VP5c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 06, 2019 at 04:00:42PM +0900, Amit Langote wrote: > Thanks for looking at this. Your patch seems better, because it allows us > to keep the error message consistent with the message one would get with > list-partitioned syntax. Thanks for confirming. I think that it would be nice as well to add more test coverage for such error patterns with all the strategies. It would be good to fix that first, so I can take care of that. Now I don't really find the error "missing FROM-clause entry for table" quite convincing when this is applied to a partition bound when using a column defined in the relation. Adding more error classes in the set of CRERR_NO_RTE would be perhaps nice, still I am not sure how elegant it could be made when looking at expressions for partition bounds. -- Michael --bgLLobvf7eP6VP5c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlx/hHIACgkQnvQgOdby QH0WUxAAqj1AfPVByVBVbe0+ZSV0/WgBlzkt1y5zIFt2RxZqjFZ7I9JtG6L3kmjB WUz1umJZ1oxcH6I98pcqXvoqiAWE36VmrIqAORvUu91X7S76+UWqbEzNg2TdcgEk lHHawESPfY7HqShKZiZo3wC/37Rx40KhtVi+/tHrtW0T+r7jcU2+a0paMV9Giexj uv1GqcnDunX39fa9co+xjdsofcy1Jfr0PcEu0eu3tN4zjMM0LSFjzDgV2tLw/SRB 2kMep237uKt2EkBzIfAVIZQpMtkCGFPO1B+bBCPdQETran3YyoX1fZPUxGb+cXd1 5TvGkSStqI3A8n1I/8VoTsi0Lk6nwzo4mPTJGvZeglO1Q549nQZUosQdu9y8opHZ khhu4g5QOvMk0MYzMxHOsqlWvhhAh+irOXnXCzNI4qc/QEqM9f1njhYCNFB8ueR6 3hgCVt35V7EjbWZj/q6S3pC3H/IQROLv0/RQtV6Gfp41gJVxKRXO4CZ9Io+/WB6U J8jYqZQT5fplPQEZKb3svBTJ2XEwbF+OUgIYUBPiO/iymNpzxrDbx3hG+vEjFUdL a+68QBtYj2BkMJTjvU1T+BPOSvPm1kA2uRvx2g0fbj+OMCGRm5Y0WkKI2BtDQ4zZ WRcJxZWUnxTFX46pZW3tiyhBU6z37hNObqR5yC9LPtmgeaOWEJU= =VqrU -----END PGP SIGNATURE----- --bgLLobvf7eP6VP5c--