Re: Using Expanded Objects other than Arrays from plpgsql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michel Pelletier <pelletier(dot)michel(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Using Expanded Objects other than Arrays from plpgsql
Date: 2024-11-01 22:27:53
Message-ID: 1948345.1730500073@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Michel Pelletier <pelletier(dot)michel(at)gmail(dot)com> writes:
> That all sounds great, and it sounds like my prosupport function just needs
> to return true, or set some kind of flag saying aliasing is ok. I'd like
> to help as much as possible, but some of that reparenting stuff was pretty
> deep for me, other than being a quick sanity check case, is there anything
> I can do to help?

I wasn't expecting you to write the code, but if you can test it and
see how much it helps your use-case, that would be great.

Here is a v1 patch series that does the first part of what we've been
talking about, which is to implement the new optimization rule for
the case of a single RHS reference to the target variable. I'm
curious to know if it helps you at all by itself. You'll definitely
also need commit 534d0ea6c, so probably applying these on our git
master branch would be the place to start.

regards, tom lane

Attachment Content-Type Size
v1-0001-Preliminary-refactoring.patch text/x-diff 9.5 KB
v1-0002-Detect-whether-plpgsql-assignment-targets-are-loc.patch text/x-diff 19.3 KB
v1-0003-Implement-new-optimization-rule-for-updates-of-ex.patch text/x-diff 26.3 KB

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message thiemo 2024-11-01 23:10:13 Re: Plans for partitioning of inheriting tables
Previous Message Tom Lane 2024-11-01 22:20:09 Re: Using Expanded Objects other than Arrays from plpgsql

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2024-11-01 22:48:36 Re: Separate memory contexts for relcache and catcache
Previous Message Tatsuo Ishii 2024-11-01 22:27:00 Re: Doc: typo in config.sgml