Re: Avoid unnecessary wrapping for more complex expressions

From: Richard Guo <guofenglinux(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Avoid unnecessary wrapping for more complex expressions
Date: 2024-12-17 11:09:22
Message-ID: CAMbWs48Z2gasiDvmeGY6Tirdq=7hdfqNzB2NQXCSjBxYvdMPfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 11, 2024 at 4:31 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> As mentioned in that thread, I feel that we can apply a similar
> optimization to more complex non-var expressions: if a strict
> expression contains any variables of rels that are under the same
> lowest nulling outer join as the subquery, we can also avoid wrapping
> it.

> Any thoughts?

I’ve gone ahead and pushed this patch.

Thanks
Richard

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2024-12-17 11:25:07 Re: Skip collecting decoded changes of already-aborted transactions
Previous Message Amit Kapila 2024-12-17 10:48:03 Re: Memory leak in WAL sender with pgoutput (v10~)