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 1lUPVQ-00087r-03 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 07:55:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUPVO-0008JH-KL for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Apr 2021 07:55:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUPVO-0008J9-Dk for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 07:55:10 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUPVL-0002Sb-I4 for pgsql-hackers@lists.postgresql.org; Thu, 08 Apr 2021 07:55:09 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 48D1B5C0156; Thu, 8 Apr 2021 03:55:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 08 Apr 2021 03:55:06 -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=FZnASyAucdK+WpJTCPXWSTdaOyC gclu/s3zZ6p9rf/c=; b=MONnsvev036qlYs0d7u5z8Gwc9XV7twVAL3qTbaixYl HF3Ffjx3qvIKF7U2OjkykFY7M1me4PUgVe039BPe/iYwTu4EOGf6rC2ypZV/KdKm JShBIjigTckgw7yYyv5AppEuYd/ZkYQ/4zwOOfQMGeYMkmcPThlbz4t1WWD99XSc bq9JsW28jTl1Hr9JIPE5kW8LwtqtZSqwXlJuC0AR26l7+SvngjrvYS6SpO1BWHV+ YdapWCM0RU4VZMOh1GlIBw6kNCES8opE8+2FFhxHowSSIYIiW/OT1hvoPe9d3/5q jRPTkoc5eP5eIT6LSUeWCipRCgn0DswayefF9EurfyA== 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=FZnASy AucdK+WpJTCPXWSTdaOyCgclu/s3zZ6p9rf/c=; b=kobfB5Rw4BPZskDJ6ZU0pV XmR5xdQevZqQB95TWTWcqL0v4SCFbqQEeByuy9eHfZGh+FzVtK/nxrg5b0Ocpe+8 AusWrisBZUKWSrWzsQUpjK0L3O8T87MKaVv5ELkyBgmpPWzl/tG7Vn345qhWM3Ni ihS28nOKoANb2sDbXRPJ6fP/Fxc/RgDzmlINeC1L+C8zL4vHIqANby9Hxo7HQJq1 mclH6h0vVstWkEY1a79JeDoNpfbj5UWUxAuXli+J4DYJNzB+KtzPb4wsicjj9sdp Djv3TLjU3GTUIQ16C6/qpzrIB6LevpaxyuceZfouJnNfmkDSpOb8FLvCOmHfCJ8A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejkedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrdduke dtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii 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 103891080063; Thu, 8 Apr 2021 03:55:00 -0400 (EDT) Date: Thu, 8 Apr 2021 16:54:56 +0900 From: Michael Paquier To: Andres Freund Cc: Tom Lane , Peter Eisentraut , Julien Rouhaud , Jaime Casanova , PostgreSQL Hackers Subject: Re: SQL-standard function body Message-ID: References: <20210331101256.d7h7d74o4celskt4@nol> <9277ef6a-bfa8-9c06-8e91-16c2892120cc@2ndquadrant.com> <20210403033943.dp6um65shvrovoj5@nol> <01c65ea6-e5bf-22f4-cacc-6d0f6853a965@2ndquadrant.com> <1646498.1617826937@sss.pgh.pa.us> <1819824.1617858962@sss.pgh.pa.us> <20210408052759.7bmyawm4djnrux6y@alap3.anarazel.de> <1820954.1617860500@sss.pgh.pa.us> <20210408063514.houn2s3yxcorukdf@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ug9OmvW5vM05Jm0W" Content-Disposition: inline In-Reply-To: <20210408063514.houn2s3yxcorukdf@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Ug9OmvW5vM05Jm0W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 07, 2021 at 11:35:14PM -0700, Andres Freund wrote: > On 2021-04-08 01:41:40 -0400, Tom Lane wrote: >> Andres Freund writes: >> FWIW, I think the long-term drift of things is definitely that >> we want to have the querystring available everywhere. Code like >> executor_errposition is from an earlier era before we were trying >> to enforce that. In particular, if the querystring is available in >> the leader and not the workers, then you will get different error >> reporting behavior in parallel query than non-parallel query, which >> is surely a bad thing. >=20 > Yea, I think it's a sensible direction - but I think we should put the > line in the sand earlier on / higher up than ExecInitParallelPlan(). Indeed, I agree that enforcing the availability of querystring everywhere sounds like a sensible thing to do in terms of consistency, and that's my impression when I scanned the parallel execution code, and I don't really get why SQL function bodies should not bind by this rule. Would people object if I add an open item to track that? -- Michael --Ug9OmvW5vM05Jm0W Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmButtAACgkQnvQgOdby QH0a4hAAhtGWTu9sSdF1OUSWZAKRAWjLLqkpJHrfRv4cD2cbSPWtOPYzcPL0S8UG BhiDSZer7o/AN5tDA2jtfK3pXzfkd3OMaXAX0NUwxDIgFkbm/JTjZulGJG0VMgIa f7RSa0OCYY1Fc2ve+vpP02NOedAjB932h0LbrLb8mXvyuuR8zp8Wqnc9beY6XSy+ EQPfuZ6Lf37fE5T2chwxxk2TCUFQrtz7Qs2gysRoX/18aZmogd0GfY4LAZOLjtol aZnXnthRx9W1Fzk9zqMp+8xoEjgDTtYwhZsF0wB8Eorm4cQWoIiy9q2YrZvb5jtx UOdHHoyiRSdKEKLzvHU+RfcUCnCuOEVRsqVQ7/AItsMtWF1ySqh8aD4xaiPoDPRr C+kjn21/NR4QgrvSJdNgjrOvBoi4EpQWuMPMcAvzp9rglgtmCdq7qC3u4PRl1+F7 yo7S5XNBp9jwQTWtKSUdio+NjxW/EY89hUDDTpZkGZnPePrS2jSjZqTJtdu19sua eHkqfSJNj7MOQGfOS7G7LkR8I5YL86QJuINjzT+v3DGXxIvK72NMLvB84EowlYIO FwfrQnT19UaHRbYlbajlZBlYkmqmYpIJ+wEM0iKVcHW47Z1m2kI4WTagzjE/JOP8 86Xuqzhk7RnidZi05JxNVUcFihg8zo/CiITVxh5ak1DyVa15JwQ= =uQ8E -----END PGP SIGNATURE----- --Ug9OmvW5vM05Jm0W--