Re: Supporting MERGE on updatable views

Dean Rasheed <dean.a.rasheed@gmail.com>

From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-12-30T12:47:23Z
Lists: pgsql-hackers

Attachments

On Wed, 21 Dec 2022 at 20:04, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>
> New patch attached with doc updates and a few other, mostly cosmetic, changes.
>

New version fixing a bug in preprocess_targetlist() -- given a simple
auto-updatable view that also has INSTEAD OF triggers, subquery pullup
of the target may produce PlaceHolderVars in MERGE WHEN clauses, which
the former code wasn't expecting to find.

Regards,
Dean

Commits

  1. Support MERGE into updatable views.

  2. Remove field UpdateContext->updated in nodeModifyTable.c

  3. Remove dummy_spinlock