Re: Adding OLD/NEW support to RETURNING
Dean Rasheed <dean.a.rasheed@gmail.com>
From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: jian he <jian.universality@gmail.com>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-03-26T18:49:38Z
Lists: pgsql-hackers
Attachments
- support-returning-old-new-v8.patch (text/x-patch) patch v8
On Mon, 25 Mar 2024 at 14:04, Dean Rasheed <dean.a.rasheed@gmail.com> wrote: > > v7 patch attached, with those updates. > Rebased version attached, forced by 87985cc925. The changes made in that commit didn't entirely make sense to me, but the ExecDelete() change, copying data between slots, broke this patch, because it wasn't setting the slot's tableoid. That copying seemed to be unnecessary anyway, so I got rid of it, and it works fine. While at it, I also removed the extra "oldslot" argument added to ExecDelete(), which didn't seem necessary, and wasn't documented clearly. Those changes could perhaps be extracted and applied separately. Regards, Dean
Commits
-
doc: Updates for RETURNING OLD/NEW.
- 3ba9639e39ed 18.0 landed
-
Fix parsing of qualified relation names in RETURNING.
- 43830ecb8a9b 18.0 landed
-
Add OLD/NEW support to RETURNING in DML queries.
- 80feb727c869 18.0 landed
-
Remove useless casts to (void *)
- 7f798aca1d5d 18.0 cited
-
Refactor/reword some error messages to avoid duplicates
- 2bb969f39984 18.0 cited