Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY
Shlok Kyal <shlok.kyal.oss@gmail.com>
From: Shlok Kyal <shlok.kyal.oss@gmail.com>
To: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>,
vignesh C <vignesh21@gmail.com>
Date: 2024-12-03T07:01:38Z
Lists: pgsql-hackers
Attachments
- v14-0001-Disallow-UPDATE-DELETE-on-table-with-generated-c.patch (application/octet-stream) patch v14-0001
On Tue, 3 Dec 2024 at 10:21, Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com> wrote: > > On Friday, November 29, 2024 9:08 PM Shlok Kyal <shlok.kyal.oss@gmail.com> wrote: > > > > > > Thanks for reviewing the patch. I have fixed the issue and updated the patch. > > Thanks for updating the patch. I have reviewed and have few suggestions. > > Please check the attached diff which includes: > > 1) Comments in CheckCmdReplicaIdentity() > * Removed some duplicate descriptions. > * Fixed the comments for the column list which I think is not correct. > * Mentioned the column list and generated column in XXX part as well. > > 2) Doc > * Since we mentioned the restriction for UPDATEs and DELTEs when row filter or > column list is defined in the create_publication.sgml, I feel we may need to > mention the generated part as well. So, added in the diff. > > 3) pub_contains_invalid_column > * Simplified one condition a bit. > > Please check and merge if it looks good to you. > The changes look good to me. I have included it in the updated patch. Thanks and Regards, Shlok Kyal
Commits
-
Improve the error message introduced in commit 87ce27de696.
- 2d0152d6147b 18.0 landed
-
Ensure stored generated columns must be published when required.
- 87ce27de6963 18.0 landed
-
Replicate generated columns when 'publish_generated_columns' is set.
- 7054186c4ebe 18.0 cited
-
Ignore generated columns during apply of update/delete.
- adedf54e659e 16.0 cited
-
Ignore dropped columns during apply of update/delete.
- b797def5951f 16.0 cited