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 1gnDLC-0004X7-38 for pgsql-committers@arkaria.postgresql.org; Sat, 26 Jan 2019 02:05:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gnDLA-0006tZ-Pk for pgsql-committers@arkaria.postgresql.org; Sat, 26 Jan 2019 02:05:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnDL9-0006sw-6c for pgsql-committers@lists.postgresql.org; Sat, 26 Jan 2019 02:05:00 +0000 Received: from [64.147.123.25] (helo=wout2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnDL1-00021O-Bn for pgsql-committers@lists.postgresql.org; Sat, 26 Jan 2019 02:04:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 2BEAD16FE; Fri, 25 Jan 2019 21:04:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 25 Jan 2019 21:04:30 -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=fm3; bh=ZqyJUV4/WdD1+eEsCOA/+KUtPwj P1bXOeGmwa5QjLdM=; b=Mgn/FVpA0/bai6khbH5yy7dDlBEQuohMXPxgY3WFC/Q J/cugWTWDXRtyDtdsqOpruhxLiZiqa6pwGliSSKBwdWSSh+MeX9b01gye7bu1uAE xPLy73KtwNtkfgQ752kCeWesP43kDV98LLjTMDenIO9XoE5vSDgZDB2+fsNM0FaP /nyfVAhVOaX6U5blk4PvZd+llhvdP4vMyV/CeNT1YoN1s5RREaEpRV/Z+E2/oBwR FXHqPhC7RlQbNydoCA6IbMtR8GuK8atZLXKoTS8hFogd0wYKIOi5Rbsksj8tcSjm 2tP89wxQFpfJb86THiXg7LC5maEq52blpx01NBTymtA== 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=ZqyJUV 4/WdD1+eEsCOA/+KUtPwjP1bXOeGmwa5QjLdM=; b=TC/bpUyiCILuCqlpLdN8Wc GBW3+9Vu14LlUfDZzl2XBovGaKFqopUlO5BivWOm8Sis0UbSkGFoz+U5RwVEyNgK 1wtpYGuhKnnXOMfEJ/Xz5EjqX+NictmlPrisYMZ8DYJZ9r6axA6Q4JwlVljxf6Nh TSZ7o5ZgCP5KRyTc92GfGwvK6SAnuOrBGDT5c32UzPXSRAcZQbNwiIZATbKlWuc0 qho2m+ElYgP3memLEOfRbj5HcajjTMfxf1gMl9qgGhgO38g6VobQek0O1Igjc8F5 vM+R5cu9OlfoUXZ+EmRBUBMvT+0H4/ASfOlbGfZU90JgnOzg/oS7mmx/snYLgslg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrieehgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfeehmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghh rggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenuc ffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeeiuddrvdduhedrudef jedrudeivdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuih gvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id E4225E4173; Fri, 25 Jan 2019 21:04:27 -0500 (EST) Date: Sat, 26 Jan 2019 11:04:23 +0900 From: Michael Paquier To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Allow generalized expression syntax for partition bounds Message-ID: <20190126020423.GF6459@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PyMzGVE0NRonI6bs" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --PyMzGVE0NRonI6bs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 25, 2019 at 10:37:22AM +0000, Peter Eisentraut wrote: > Allow generalized expression syntax for partition bounds >=20 > Previously, only literals were allowed. This change allows general > expressions, including functions calls, which are evaluated at the > time the DDL command is executed. >=20 > Besides offering some more functionality, it simplifies the parser > structures and removes some inconsistencies in how the literals were > handled. fulmar, magpie and treepie are unhappy after this commit, and all of them have the same complaint related to the order consistency of partitions showing up in psql: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dmagpie&dt=3D2019-= 01-25%2011%3A04%3A07 Partition key: LIST (a) -Partitions: part_1 FOR VALUES IN (1), +Partitions: part_null FOR VALUES IN (NULL), + part_1 FOR VALUES IN (1), part_2 FOR VALUES IN (2), - part_3 FOR VALUES IN (3), - part_null FOR VALUES IN (NULL) + part_3 FOR VALUES IN (3) -- Michael --PyMzGVE0NRonI6bs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxLwCcACgkQnvQgOdby QH2+ShAAm1gTptPhrBGLGBNR6bo6ow7UaDBVxWRe6K3cPz14g95OexvTLW83aUk8 n6ToXmVtWKblyJ6PBC/qollWika/YnPhMvw9Du7sO8QfkatXL9g1qJntlh0JRpoG ets89etgxZpZL8658wtnjMIUdpR4ib3MLZaIYS092wo5WmphhdyKKB2r8vQW9tc/ C4/Yc8cO5Zoi2ZLh0XEH2P3TjzoC/wXUeQWsfdSWuP1TaRnScAt3tadl/N0ZHrrd hN2FBbv9T5NLB5n6HebbuoDmGtIJzIRXv6+xpisqWR+Zcyhno89hxbsSx0+zi6Df DlExEG/zYTPIZ1Bu2fUxJ3O1yf+aMGFBC3ywm6LjePT1eAmodMMU93mI8tgX2y+7 2/Ds8Vh/eEOwWxDi3RvTVd7xzG2W6DdR670exvrIhe6mRnWNrtUWopLiTAxwX9YT llLo2gVc49qEIvAxoFrze4IpozAKP0J24tBk0VfNjVlH6gkS+TqLdBF0Oc+AJFiI LWNJ5X8hJEjfTCIEA+y0dWtPB+yCMIeGMA1Fbey0G33nNXuMH26xgDA7kGbmLosw jELorulSuKEp/qCQ1Etc/Wi49Dp03bZpvUM175+8mukM5d6Q/RiQ+znyKewWGDnL 6NbMUkkPKC4amUWfMWXyYLAKEQFMNePcgt4O1XyOrmJPSn2B2fY= =mKDn -----END PGP SIGNATURE----- --PyMzGVE0NRonI6bs--