Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlopN-004UoM-Rh for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 11:05:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qlopM-00CA2Z-Gz for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Sep 2023 11:05:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlopL-00CA2G-8P for pgsql-hackers@lists.postgresql.org; Thu, 28 Sep 2023 11:05:04 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlopH-0076Ss-Ue for pgsql-hackers@postgresql.org; Thu, 28 Sep 2023 11:05:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9EBA35C025E; Thu, 28 Sep 2023 07:04:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 28 Sep 2023 07:04:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1695899098; x= 1695985498; bh=E2igIyez+SCBc8TBiTCZ5nF6wFQtLYqaRnOyFIJr5FI=; b=P d57mdl3DlllaPhrdQpEtd4fll1lOUc7SaWFIcs3Xa2fL38hT2iJXgvjaRZWBy1YY cT/hGV8coqJNxvpGlYsqFaNEfGNR4IH1T8fMmWcr5j9m2jFIrnz907899+4KsgS1 9jmvlTIbjw7SN2HDvoQhUPIlj2jtUiJfZUlnx8DaqtTpNTiI8UYNMXqX1aBojcrM UbNmtQPo+BPDTXKhvw/Se1WlJ/3BsVsYpjUuDN6vUTwKg+NbfB/ZpbNURWczKpaf TQEo6VCx/S9xxqrB0IDqZsvvitjZQcCPzyu/FIIsv/01uCQGN7GwRLuvHzHd18pr gEtaLlGKyF3jrkvvIsnLQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrtddtgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Sep 2023 07:04:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1695899094; bh=uXip4uErPbSEoIpBjtrKrUZSYdNHEeN99w736He2QYg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=qU1Os+XA/XWj/Vdwcdf+k+Fpx6TDSr2LE4m7zrBh97mTqHcpCMzmSkKY86Tw0lz4r aAcJMnduInraawWEfYWlHDIaMgfW6pKYKI3Onu/sjwxQw2ajSZBU7T0QTnymAknttK DM4jesZDGwNtX1BJoA98RwHxKqL6r76UnoJp0vtoKgkA7d6YD7AotmBdWjTOeu7WJi OZaTyIFn5VlRyuRGO/AcmEO26akExx8kh4J8cKpgq+L1UvgygZibr3wPmlCALoOSBq MypTamnDxc0tW6h7CPLi010G6AwrvXiG2HH4a4eOIKiAXYVg4T59Fjg1X1ojoAz/PW MmZZPfK3t5prw== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C1A37B7; Thu, 28 Sep 2023 13:04:54 +0200 (CEST) Date: Thu, 28 Sep 2023 13:04:54 +0200 From: Alvaro Herrera To: Amit Langote Cc: Andrew Dunstan , jian he , Erik Rijkers , PostgreSQL-development Subject: Re: remaining sql/json patches Message-ID: <202309281104.kmkr4v34ny2t@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Sep-27, Amit Langote wrote: > Maybe the following is better: > > + /* > + * For expression nodes that support soft errors. Should be set to NULL > + * before calling ExecInitExprRec() if the caller wants errors thrown. > + */ > > ...as in the attached. That's good. > Alvaro, do you think your concern regarding escontext not being in the > right spot in the ExprState struct is addressed? It doesn't seem very > critical to me to place it in the struct's 1st cacheline, because > escontext is not accessed in performance critical paths such as during > expression evaluation, especially with the latest version. (It would > get accessed during evaluation with previous versions.) > > If so, I'd like to move ahead with committing it. Yeah, looks OK to me in v21. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/