Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM3rc-00070Y-Cj for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2020 06:07:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM3ra-00059X-Ju for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Apr 2020 06:07:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM3rY-00056U-NN for pgsql-bugs@lists.postgresql.org; Wed, 08 Apr 2020 06:07:02 +0000 Received: from [64.147.123.21] (helo=wout5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM3rU-0005f2-PC for pgsql-bugs@lists.postgresql.org; Wed, 08 Apr 2020 06:07:00 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 43F8272A; Wed, 8 Apr 2020 02:06:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 08 Apr 2020 02:06:44 -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=iJHj8/ph2esIrl9LzThOeiNJ/nL VmJcERuTjBKcR/lI=; b=dJ1+mvriPntuaHlXLtnwjJ6X97D2E01pXxUWkv2dp00 2+JZfh6pU5G53l1f0PaFtClRoUf8MptAEdGYQkUbV9L43CzR3cET01dhONiE48lB BBjtf8G0B66DrSyQoWong6UU1JCZbHrF3D2eirWkyXG3lF9z1Lxpgbr9vaJbJat0 uEUOspNNo4zYvO/6Y4ECPkM7cExSpMxvWTgck443/s32dn4jDPYF4CXj3AeN5umU NzmNs9oTDCkZXJ0r7yGy7FFqS4QXiUEZ+ESWO/JBimkpSy7CX7GNhjo+Z+F17Uy6 vszItL2mCt6r1b/fMyjFMDjlUX/14Xx+Ef3MH7B/QYw== 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=iJHj8/ ph2esIrl9LzThOeiNJ/nLVmJcERuTjBKcR/lI=; b=OswIcY62H9UZvdx6YPLS6S UzESY+iYcxYx4OocoLlJUxRVz2LRvrGL9C7xNl6XfoqD7Uduy7kUAS3jGleru2M9 P7PqeSK6PqCGb2HmjTglxKTY8CJCNGz1CRXDToN4Er0HzXDedRAMlhcXqkUfe5Qy TMveFCgMPLMbZdv5jI7jApcLoyBYr0CnXWmofe/+xZgndu5aKmcOyBY578Q/STnL bPgzFOG1H1gATTiAeYz6rYqd1WNBmLvyCgGTl9c4o/zoGcMybQc13bKT2/P0/6Rq L5wzjq6tSbPY35kZEG+9URyleF+CIbp1MLewHc0ZdjUCW0z5JY1bvrOswhMz5wjg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucfkphepudduuddrud dtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 9BC13306005E; Wed, 8 Apr 2020 02:06:42 -0400 (EDT) Date: Wed, 8 Apr 2020 15:06:39 +0900 From: Michael Paquier To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16325: Assert failure on partitioning by int for a text value with a collation Message-ID: <20200408060639.GG1606@paquier.xyz> References: <16325-809194cf742313ab@postgresql.org> <20200328125303.4me6vetvzgebobw5@localhost> <20200401070842.GD142683@paquier.xyz> <20200401120117.qkmjxi3xrumbnd3s@localhost> <20200402020150.GA2803@paquier.xyz> <20200403152910.rsdc2yg7bisqaltb@localhost> <20200407074944.GA6655@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eMnpOGXCMazMAbfp" Content-Disposition: inline In-Reply-To: <20200407074944.GA6655@paquier.xyz> X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.21 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --eMnpOGXCMazMAbfp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 07, 2020 at 04:49:44PM +0900, Michael Paquier wrote: > Thanks for the new version of the patch. I have been playing a bit > today, and finished with the version attached. Some comments have > been tweaked, and I have moved the test in the block with the other > invalid cases for consistency, adding an extra test able to trigger a > similar error within the transformation step where a parse context > exists. It is a bit late now so I cannot push that today, but I'll > do that tomorrow. I was considering this stuff again, and I got cold feet regarding the fact that we may be able to hit the case of a collation not set if the type is collatable depending on how the restrictions now in place for partition bound expressions get lifted in the future, so I have committed what you sent as v1, after changing the first error message to use "partition bound expression" and after adding a comment on top of the new checks. -- Michael --eMnpOGXCMazMAbfp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6Nae8ACgkQnvQgOdby QH1UQA/9GJ5K0jF+9qOkv1MkV9hynTM59FWpHmiA4EHamZkTbrQwnBvfaX3QanUB /THjc5SlNPuKB0EXFunGYvExrLd+MOD9nOtPOhCQdVZrQRD2AkColPIjJ0ZMtT1v gWCAqrHbJYHPnHA43GB7LGm5K/1AfHNID8/8zGbUW1BBcfq4hUoKfOWrtnKVoyBP zdhfqCz4oUhRl7Gtr9c0WUSX8blUD65SjOPuoDjpAMBX5bc9qe3GZiWjsCEJeF7k TBF7X+E1DkmiCvwNpTKkLc9DmWpWduwMnybqF1ZGjAcHPa0cIqt/TvGJzKURA2U3 CwlMhu0FxUo/J8rIusJc0kG2156oihbEXBd7U73gb/euINzKKWBpumckQsFur09j oq3Ttu1uM1FT9aZa9InN026dFkicydJ/suWpB3TB1zHlnUISF5t2I5Tad5sl016d TqziuTcb0ltnrovKBA0D1DH+/Zv62pdXGBmjmqhDM+n8pKSuH93aIfXH/2CEcpfd 8SvciWD/M4G/XZMnaws99jYkwygmwGDqzpmCR1dDU66vJnng4d3dd4r5QFCQfSoX dSEHtOPUbK4/qIjWYcoAJsMO5b20OpNksIg5rfqrLHJ8uMYiQ7SO68p5hzBLBuiP FHuSvIyvimWA8/h2loxUiBNlNaKcDm9MhQl6Q8jHJcgL2NSntxE= =jhkP -----END PGP SIGNATURE----- --eMnpOGXCMazMAbfp--