Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-09 Thread Amit Kapila
On Fri, Dec 6, 2024 at 11:10 AM Shlok Kyal wrote: > > Thanks Peter, for pointing this out. > I also feel that the error message suggested by Amit would be better. > I have attached a patch for the same. > Pushed. -- With Regards, Amit Kapila.

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-05 Thread Shlok Kyal
On Fri, 6 Dec 2024 at 02:44, Peter Smith wrote: > > On Thu, Dec 5, 2024 at 8:49 PM Amit Kapila wrote: > > > > On Thu, Dec 5, 2024 at 9:32 AM Peter Smith wrote: > > > > > > On Thu, Dec 5, 2024 at 2:41 PM Amit Kapila > > > wrote: > > > > > > > > On Thu, Dec 5, 2024 at 7:34 AM Peter Smith > > >

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-05 Thread Peter Smith
On Thu, Dec 5, 2024 at 8:49 PM Amit Kapila wrote: > > On Thu, Dec 5, 2024 at 9:32 AM Peter Smith wrote: > > > > On Thu, Dec 5, 2024 at 2:41 PM Amit Kapila wrote: > > > > > > On Thu, Dec 5, 2024 at 7:34 AM Peter Smith wrote: > > > > > > > > IIUC, these errors are intended for when there is *any*

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-05 Thread Amit Kapila
On Thu, Dec 5, 2024 at 9:32 AM Peter Smith wrote: > > On Thu, Dec 5, 2024 at 2:41 PM Amit Kapila wrote: > > > > On Thu, Dec 5, 2024 at 7:34 AM Peter Smith wrote: > > > > > > IIUC, these errors are intended for when there is *any* unpublished > > > generated column found in the RI, and the RI mig

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-04 Thread Peter Smith
On Thu, Dec 5, 2024 at 2:41 PM Amit Kapila wrote: > > On Thu, Dec 5, 2024 at 7:34 AM Peter Smith wrote: > > > > IIUC, these errors are intended for when there is *any* unpublished > > generated column found in the RI, and the RI might also have other > > columns in it generated or otherwise. So,

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-04 Thread Amit Kapila
On Thu, Dec 5, 2024 at 7:34 AM Peter Smith wrote: > > IIUC, these errors are intended for when there is *any* unpublished > generated column found in the RI, and the RI might also have other > columns in it generated or otherwise. So, I think those error messages > saying "consists of" should be r

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-04 Thread Peter Smith
Hi, I was looking at the recently pushed code [1]. IMO the wording of some of those new error messages of function CheckCmdReplicaIdentity() is not quite correct. According to my understanding, and according also to Chat-GPT: -- The sentence "Replica identity consists of an unpublished genera

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-03 Thread Amit Kapila
On Tue, Dec 3, 2024 at 12:31 PM Shlok Kyal wrote: > > The changes look good to me. I have included it in the updated patch. > The patch looks mostly good to me. I have updated the docs, comments, and some other cosmetic changes. Please see attached and let me know what you think. -- With Regard

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-02 Thread Shlok Kyal
On Tue, 3 Dec 2024 at 10:21, Zhijie Hou (Fujitsu) wrote: > > On Friday, November 29, 2024 9:08 PM Shlok Kyal > 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. > > Pl

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-12-02 Thread Zhijie Hou (Fujitsu)
On Friday, November 29, 2024 9:08 PM Shlok Kyal 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 CheckCmdReplicaIde

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-29 Thread Shlok Kyal
On Fri, 29 Nov 2024 at 15:49, vignesh C wrote: > > On Fri, 29 Nov 2024 at 13:38, Shlok Kyal wrote: > > > > On Thu, 28 Nov 2024 at 16:38, Amit Kapila wrote: > > > > > > On Thu, Nov 21, 2024 at 5:30 PM Shlok Kyal > > > wrote: > > > > > > > > > > Review comments: > > > === > > > 1. >

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-29 Thread vignesh C
On Fri, 29 Nov 2024 at 13:38, Shlok Kyal wrote: > > On Thu, 28 Nov 2024 at 16:38, Amit Kapila wrote: > > > > On Thu, Nov 21, 2024 at 5:30 PM Shlok Kyal wrote: > > > > > > > Review comments: > > === > > 1. > > + > > + /* > > + * true if all generated columns which are part of replica

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-29 Thread Shlok Kyal
On Thu, 28 Nov 2024 at 16:38, Amit Kapila wrote: > > On Thu, Nov 21, 2024 at 5:30 PM Shlok Kyal wrote: > > > > Review comments: > === > 1. > + > + /* > + * true if all generated columns which are part of replica identity are > + * published or the publication actions do not include UP

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-28 Thread Amit Kapila
On Thu, Nov 21, 2024 at 5:30 PM Shlok Kyal wrote: > Review comments: === 1. + + /* + * true if all generated columns which are part of replica identity are + * published or the publication actions do not include UPDATE or DELETE. + */ + bool replident_valid_for_update; + bool repliden

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-21 Thread Shlok Kyal
On Thu, 21 Nov 2024 at 15:26, vignesh C wrote: > > On Tue, 19 Nov 2024 at 19:12, Shlok Kyal wrote: > > > > On Tue, 19 Nov 2024 at 14:39, Zhijie Hou (Fujitsu) > > wrote: > > > > > > On Tuesday, November 19, 2024 3:15 PM Shlok Kyal > > > wrote: > > > > > > > > > > > I noticed that we can add 'pu

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-21 Thread vignesh C
On Tue, 19 Nov 2024 at 19:12, Shlok Kyal wrote: > > On Tue, 19 Nov 2024 at 14:39, Zhijie Hou (Fujitsu) > wrote: > > > > On Tuesday, November 19, 2024 3:15 PM Shlok Kyal > > wrote: > > > > > > > > I noticed that we can add 'publish_generated_columns = true' for the case > > > of > > > generated

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-20 Thread Zhijie Hou (Fujitsu)
On Tuesday, November 19, 2024 9:42 PM Shlok Kyal wrote: > I agree that we can remove the test. I debugged and found the test modified in > above patch does not hit the condition added in commit adedf54. > Also, according to me we cannot trigger the bug after the fix in this thread. > So, I > thi

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-19 Thread Shlok Kyal
On Tue, 19 Nov 2024 at 14:39, Zhijie Hou (Fujitsu) wrote: > > On Tuesday, November 19, 2024 3:15 PM Shlok Kyal > wrote: > > > > > I noticed that we can add 'publish_generated_columns = true' for the case of > > generated column. So we won't need to remove the test. I have made the > > changes in

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-19 Thread Zhijie Hou (Fujitsu)
On Tuesday, November 19, 2024 5:10 PM Zhijie Hou (Fujitsu) wrote: > > On Tuesday, November 19, 2024 3:15 PM Shlok Kyal > wrote: > > > > > I noticed that we can add 'publish_generated_columns = true' for the case of > > generated column. So we won't need to remove the test. I have made the > >

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-19 Thread Zhijie Hou (Fujitsu)
On Tuesday, November 19, 2024 3:15 PM Shlok Kyal wrote: > > I noticed that we can add 'publish_generated_columns = true' for the case of > generated column. So we won't need to remove the test. I have made the > changes in v9 patch [1]. I think this would unexpectedly change the original purpo

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread Shlok Kyal
On Tue, 19 Nov 2024 at 10:22, vignesh C wrote: > > On Tue, 19 Nov 2024 at 00:36, Shlok Kyal wrote: > > > > On Mon, 18 Nov 2024 at 19:19, vignesh C wrote: > > > > > > On Mon, 18 Nov 2024 at 13:07, Shlok Kyal wrote: > > > > > > > > Thanks for providing the comments. > > > > > > > > On Sat, 16 Nov

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread Shlok Kyal
On Tue, 19 Nov 2024 at 09:50, Zhijie Hou (Fujitsu) wrote: > > On Tuesday, November 19, 2024 3:06 AM Shlok Kyal > wrote: > > > > I have fixed the comments and attached an updated patch. > > Thanks for the patch. > > I slightly refactored the codes a bit: > > * make the codes in replident_has_unpu

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread vignesh C
On Tue, 19 Nov 2024 at 00:36, Shlok Kyal wrote: > > On Mon, 18 Nov 2024 at 19:19, vignesh C wrote: > > > > On Mon, 18 Nov 2024 at 13:07, Shlok Kyal wrote: > > > > > > Thanks for providing the comments. > > > > > > On Sat, 16 Nov 2024 at 17:29, vignesh C wrote: > > > > > > I have attached the up

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread Zhijie Hou (Fujitsu)
On Tuesday, November 19, 2024 3:06 AM Shlok Kyal wrote: > > I have fixed the comments and attached an updated patch. Thanks for the patch. I slightly refactored the codes a bit: * make the codes in replident_has_unpublished_gen_col() consistent with other similar functions. * Avoid unnecessa

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread Shlok Kyal
On Mon, 18 Nov 2024 at 19:19, vignesh C wrote: > > On Mon, 18 Nov 2024 at 13:07, Shlok Kyal wrote: > > > > Thanks for providing the comments. > > > > On Sat, 16 Nov 2024 at 17:29, vignesh C wrote: > > > > I have attached the updated version of the patch. > > Few comments: > 1) We have the follow

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread vignesh C
On Mon, 18 Nov 2024 at 13:07, Shlok Kyal wrote: > > Thanks for providing the comments. > > On Sat, 16 Nov 2024 at 17:29, vignesh C wrote: > > I have attached the updated version of the patch. Few comments: 1) We have the following check for cols validation and rf validation: /* * If we

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread Zhijie Hou (Fujitsu)
On Saturday, November 16, 2024 2:41 AM Shlok Kyal wrote: > > > > Thanks for providing the comments. I have fixed all the comments and attached > the updated patch. Thanks for the patch. I have one comment for the following codes: + /* +* Bitmap of published column

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-18 Thread Shlok Kyal
On Mon, 18 Nov 2024 at 08:57, Zhijie Hou (Fujitsu) wrote: > > On Saturday, November 16, 2024 2:41 AM Shlok Kyal > wrote: > > > > > > > Thanks for providing the comments. I have fixed all the comments and > > attached > > the updated patch. > > Thanks for the patch. I have one comment for the fo

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-17 Thread Shlok Kyal
Thanks for providing the comments. On Sat, 16 Nov 2024 at 17:29, vignesh C wrote: > > On Sat, 16 Nov 2024 at 00:10, Shlok Kyal wrote: > > > > Thanks for providing the comments. I have fixed all the comments and > > attached the updated patch. > > Few comments: > 1) The replident_has_valid_gen_co

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-16 Thread vignesh C
On Sat, 16 Nov 2024 at 00:10, Shlok Kyal wrote: > > Thanks for providing the comments. I have fixed all the comments and > attached the updated patch. Few comments: 1) The replident_has_valid_gen_cols flag is set when either an update or delete operation is published by the publication. +

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-15 Thread Shlok Kyal
> > > On Friday, November 8, 2024 7:06 PM Shlok Kyal > > > > > > > wrote: > > > > > > > > > > > > > > > > Hi Amit, > > > > > > > > > > > > > > > >

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-15 Thread vignesh C
gt; > > Hi Amit, > > > > > > > > > > > > > > On Thu, 7 Nov 2024 at 11:37, Amit Kapila > > > > > > > wrote: > > > > > > > > > > > > > > > > On Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal &g

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-15 Thread Shlok Kyal
, November 8, 2024 7:06 PM Shlok Kyal > > > > > wrote: > > > > > > > > > > > > Hi Amit, > > > > > > > > > > > > On Thu, 7 Nov 2024 at 11:37, Amit Kapila > > > > > > wrote: > > >

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-14 Thread vignesh C
gt; > > > > > > > On Thu, 7 Nov 2024 at 11:37, Amit Kapila > > > > > wrote: > > > > > > > > > > > > On Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal > > > > > > > > > > > wrote: > > > > > > &

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-14 Thread Shlok Kyal
gt; > > > On Friday, November 8, 2024 7:06 PM Shlok Kyal > > > wrote: > > > > > > > > Hi Amit, > > > > > > > > On Thu, 7 Nov 2024 at 11:37, Amit Kapila > > > > wrote: > > > > > > > > >

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-13 Thread vignesh C
gt; > > > > > On Thu, 7 Nov 2024 at 11:37, Amit Kapila wrote: > > > > > > > > On Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal > > > wrote: > > > > > > > > > > To avoid the issue, we can disallow UP

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Amit Kapila
On Tue, Nov 12, 2024 at 7:05 PM Alvaro Herrera wrote: > > On 2024-Nov-12, Amit Kapila wrote: > > > I think we still need a fix for the master for the case when generated > > columns are not published but are part of REPLICA IDENTITY as that > > could lead to failures in applying UPDATE and DELETE

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Shlok Kyal
Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal > > wrote: > > > > > > > > To avoid the issue, we can disallow UPDATE/DELETE on table with > > > > unpublished generated column as REPLICA IDENTITY. I have attached a > > > > patch for the same. > &

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Alvaro Herrera
On 2024-Nov-12, Amit Kapila wrote: > I think we still need a fix for the master for the case when generated > columns are not published but are part of REPLICA IDENTITY as that > could lead to failures in applying UPDATE and DELETE on subscriber. Ah, I thought that was already in place. > Am, I

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Alvaro Herrera
On 2024-Nov-12, Amit Kapila wrote: > On Tue, Nov 12, 2024 at 2:15 PM Alvaro Herrera > wrote: > > So, another option is to do nothing for stable branches. > > Fair enough. The other point in favor of that option is that nobody > has reported this problem yet but my guess is that they would have

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Amit Kapila
On Tue, Nov 12, 2024 at 5:37 PM Alvaro Herrera wrote: > > On 2024-Nov-12, Amit Kapila wrote: > > > > > It's not clear to me why doesn't pgoutput cope with generated columns in > > > replica identities. Maybe that can be reconsidered? > > > > In stable branches, we intentionally skip publishing ge

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Alvaro Herrera
On 2024-Nov-09, Amit Kapila wrote: > On Fri, Nov 8, 2024 at 5:17 PM Alvaro Herrera wrote: > > > > On 2024-Nov-07, Amit Kapila wrote: > > > > > BTW, I was thinking as to how to fix it on back branches and it seems > > > we should restrict to define REPLICA IDENTITY on stored generated > > > column

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-12 Thread Amit Kapila
On Tue, Nov 12, 2024 at 2:15 PM Alvaro Herrera wrote: > > On 2024-Nov-09, Amit Kapila wrote: > > > On Fri, Nov 8, 2024 at 5:17 PM Alvaro Herrera > > wrote: > > > > > > On 2024-Nov-07, Amit Kapila wrote: > > > > > > > BTW, I was thinking as to how to fix it on back branches and it seems > > > > w

RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-11 Thread Zhijie Hou (Fujitsu)
On Friday, November 8, 2024 7:06 PM Shlok Kyal wrote: > > Hi Amit, > > On Thu, 7 Nov 2024 at 11:37, Amit Kapila wrote: > > > > On Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal > wrote: > > > > > > To avoid the issue, we can disallow UPDATE/DELETE on tab

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-11 Thread Amit Kapila
On Sat, Nov 9, 2024 at 8:46 AM Amit Kapila wrote: > > On Fri, Nov 8, 2024 at 5:17 PM Alvaro Herrera wrote: > > > > On 2024-Nov-07, Amit Kapila wrote: > > > > > BTW, I was thinking as to how to fix it on back branches and it seems > > > we should restrict to define REPLICA IDENTITY on stored gener

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-08 Thread Amit Kapila
On Fri, Nov 8, 2024 at 5:17 PM Alvaro Herrera wrote: > > On 2024-Nov-07, Amit Kapila wrote: > > > BTW, I was thinking as to how to fix it on back branches and it seems > > we should restrict to define REPLICA IDENTITY on stored generated > > columns in the first place in back branches as those can

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-08 Thread Alvaro Herrera
On 2024-Nov-07, Amit Kapila wrote: > BTW, I was thinking as to how to fix it on back branches and it seems > we should restrict to define REPLICA IDENTITY on stored generated > columns in the first place in back branches as those can't be > replicated. So, the following should fail: > > CREATE TA

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-08 Thread Shlok Kyal
Hi Amit, On Thu, 7 Nov 2024 at 11:37, Amit Kapila wrote: > > On Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal wrote: > > > > To avoid the issue, we can disallow UPDATE/DELETE on table with > > unpublished generated column as REPLICA IDENTITY. I have attached a > > patch

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-07 Thread Amit Kapila
On Thu, Nov 7, 2024 at 11:04 AM Amit Kapila wrote: > > On Wed, Nov 6, 2024 at 5:48 PM Aleksander Alekseev > wrote: > > We should fix this in the HEAD and back branches. > BTW, I was thinking as to how to fix it on back branches and it seems we should restrict to define REPLICA IDENTITY on stored

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-06 Thread Amit Kapila
On Tue, Nov 5, 2024 at 12:53 PM Shlok Kyal wrote: > > To avoid the issue, we can disallow UPDATE/DELETE on table with > unpublished generated column as REPLICA IDENTITY. I have attached a > patch for the same. > +CREATE PUBLICATION pub_gencol FOR TABLE testpub_gencol; +UPDATE tes

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-06 Thread Amit Kapila
On Wed, Nov 6, 2024 at 5:48 PM Aleksander Alekseev wrote: > > > So, I think this behavior would be acceptable. Thoughts? > > That's a fair point, thanks for sharing. Personally I find this > behavior somewhat suboptimal but since we already have it in certain > cases I guess what you propose might

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-06 Thread Shlok Kyal
So, the update message generated by the last UPDATE would have NULL > > for column 'b'. > > > > To avoid the issue, we can disallow UPDATE/DELETE on table with > > unpublished generated column as REPLICA IDENTITY. I have attached a > > patch for the same. >

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-06 Thread Aleksander Alekseev
Hi Shlok, > So, I think this behavior would be acceptable. Thoughts? That's a fair point, thanks for sharing. Personally I find this behavior somewhat suboptimal but since we already have it in certain cases I guess what you propose might be acceptable. I'm still not entirely happy about breakin

Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-05 Thread Aleksander Alekseev
ated by the last UPDATE would have NULL > for column 'b'. > > To avoid the issue, we can disallow UPDATE/DELETE on table with > unpublished generated column as REPLICA IDENTITY. I have attached a > patch for the same. I don't think this would be a correct fix. Let's

Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY

2024-11-05 Thread Shlok Kyal
ol' we do not specify any column list, so column 'b' will not be published. So, the update message generated by the last UPDATE would have NULL for column 'b'. To avoid the issue, we can disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY.