pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Evaluate arguments of correlated SubPlans in the referencing ExprState
Date: Thu, 02 Mar 2023 15:10:31 -0500
Message-ID: <2134061.1677787831@sss.pgh.pa.us> (raw)
In-Reply-To: <20230302200549.l2ikytmnqzvy5a7a@alap3.anarazel.de>
References: <20230225214401.346ancgjqc3zmvek@awork3.anarazel.de>
	<2129737.1677785615@sss.pgh.pa.us>
	<20230302200549.l2ikytmnqzvy5a7a@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2023-03-02 14:33:35 -0500, Tom Lane wrote:
>> I looked through this, and there is one point that is making me really
>> uncomfortable.  This bit is assuming that we can bind the address of
>> the es_param_exec_vals array right into the compiled expression:

> Yea, I wasn't super comfortable with that either. I concluded it's ok
> because we already cache pointers to the array inside each ExprContext.

ExprContext, sure, but compiled expressions?  Considering what it
costs to JIT those, I think we ought to be trying to make them
fairly long-lived.

			regards, tom lane





view thread (23+ messages)  latest in thread

Message-ID: <2134061.1677787831@sss.pgh.pa.us>
Permalink:  ../2134061.1677787831@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2134061.1677787831@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
  Subject: Re: Evaluate arguments of correlated SubPlans in the referencing ExprState
  In-Reply-To: <2134061.1677787831@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox