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 1h4Htq-0003wK-0i for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Mar 2019 04:23:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h4Hto-0004wF-KW for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Mar 2019 04:23:20 +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 1h4Hto-0004w8-A3 for pgsql-bugs@lists.postgresql.org; Thu, 14 Mar 2019 04:23:20 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4Htk-0004JG-SN for pgsql-bugs@lists.postgresql.org; Thu, 14 Mar 2019 04:23:19 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 16C863759; Thu, 14 Mar 2019 00:23:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 14 Mar 2019 00:23:15 -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=fyH8vXmqE5sIczkmaoBMC5Y4I3c ieGAWkEuyvdTsJ1k=; b=tGtFI0HHvPECRVCDwGXa8fCFp+olBw6jmPGZKd44KG7 ojjMRkHO7uFxoRkCWv736p/DoOJPP3CTCdI+mHwj8DczO6jB0RpU+imth8sbMAcp nY6LVIfA0HVJoN9p2Kscwvjx0hu9mt7qBj1mF1qImW7Lmt0t3YVfrmSvzp9oCXsw P6lns+lEp/TieV2NNrkOsHNmjzeu26SqrIXLga7+L4VZpB+cbh9EeKTRZVUFIyya dEOQS00XuSHW8vC5CKgSM/LE6q5PYk2soaVzXQEdm+9VgH29lgLFwn90E5WttMr3 Z6QhQn7RSH2QAN5bJP6NhH+x2zVgdLU0zhiTdsfmdhg== 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=fyH8vX mqE5sIczkmaoBMC5Y4I3cieGAWkEuyvdTsJ1k=; b=xNM2fMLeUaERl5smy9bHUF OblMEsODLVeO5jLOrKfOLtQgEL4ZGxKSiJWS5NR/LmhqpMpMbWQ8R+Wd889OabbS IvrxnMMGRGTBa6jB2L+Tv/pwEtrvoH5MVO4ZIPpbVmXzkYctvGg5P3wqoX8T7ori eNrjv9I6jf6orj1hkreW8QuwDsr6p5S4JrWyvT3htDG34x/g4yc6dHCb9Aw86793 Gc6QJwTPeJbVOjLyEAwZrqjUdk1XKiDLndcL0Q3OgfAhpKeKpoASOaPMVWkRkIg8 huoakec3UTZowPOuKBtpSTpH6AdwpZToS+C2Yg5DFJT/CPv1VEnOrekdkqWf4SDg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrhedugdejtdcutefuodetggdotefrodftvf 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 BB1EBE44D7; Thu, 14 Mar 2019 00:23:11 -0400 (EDT) Date: Thu, 14 Mar 2019 13:23:08 +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: <20190314042308.GG3493@paquier.xyz> References: <15668-0377b1981aa1a393@postgresql.org> <20190306064825.GH30982@paquier.xyz> <6ed2c24c-2f73-fa1c-0ed1-ed3597f13d0d@lab.ntt.co.jp> <20190306082730.GJ30982@paquier.xyz> <20190311072114.GG1818@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xQmOcGOVkeO43v2v" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --xQmOcGOVkeO43v2v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 13, 2019 at 03:17:47PM +0900, Amit Langote wrote: > but on HEAD, you get: >=20 > create table foo (a int default (avg(foo.a))); > ERROR: aggregate functions are not allowed in DEFAULT expressions I actually think that what you propose here makes more sense than what HEAD does because the most inner expression gets evaluated first. This for example generates the same error as on HEAD: =3D# create table foo (a int default (avg(1))); ERROR: 42803: aggregate functions are not allowed in DEFAULT expressions -- Michael --xQmOcGOVkeO43v2v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlyJ1ywACgkQnvQgOdby QH2/ig/9FQVh05mYT1zRWlP4c8A80ccdBspTcj5PWz5uv/Xq91qBJiqVr3M8lQym VkzqPaLKHe2agEYVSOAsKfsfFkltiHzOr0HkiEOvg4l8URH+mKZcXYdvVZf+UhWz KT0bobef0lCXCIA9YjjQHf9YW0eLrCFIV3+IFo70RBX0kAYbr2eJOAy9Anomc0jY 7+Om4TZS4SCWHMchm9lOjGFs6XFqI7r+Vb7neoqB4GU/YU996KCHAfoZ7Bud8ZCX oQjUvKPy2WCa/VFjRAbLUt0CptJ0ldL5ygWNsYgzEE9LnkqAY+tzE+HbgWAHOKYA N010gZY3lZYsJB1G7Rj3enHUBCYblbM1EtNPFYHFs65hsDreahifaGFD7pYHhjU8 qv/eGzbzq2rLgtOONlXhmqBSxRAGL1/7cftnfQCncSiETXL1yriCLjDiks28knhG 5bNROVKEYwZtFn0iH7OF/QlcJmtM6riLvR6xGue+YZ8czswPDd5ZPVz43DSqhMqb oxE+2tZdKAnPpmis1DDFAPRXuAueY2Ur8SvNyUL3GzEuyl5bDNM0SOCRcladU9x7 9XCRfs+atxnuA/2Asm5z0HNdqCKyw9KBi46f+W7a/LPliFaZOBro6mAZThT8DBqm 9Vzu6KNKaTdGMXxf70ksCR5hLw8VL+m/MVpTdH11yOCkuvKjPkU= =ORKb -----END PGP SIGNATURE----- --xQmOcGOVkeO43v2v--