From: | "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com> |
---|---|
To: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> |
Cc: | vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Subject: | RE: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY |
Date: | 2024-11-20 08:46:59 |
Message-ID: | OS0PR01MB5716305AA3EA35929720946694212@OS0PR01MB5716.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tuesday, November 19, 2024 9:42 PM Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> 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
> think we can remove the testcase.
>
> I have attached the latest patch with an updated commit message and also
> removed the testcase.
Thanks for updating the patch.
Out of curiosity, I tried to merge the pub_collist_contains_invalid_column()
and replident_has_unpublished_gen_col() functions into a single function to
evaluate if this approach might be better.
As shown in the attached diff, it reduces some code redundancy *but* also
introduces additional IF conditions and parameters in the new combined
function, which might complicate the logic a bit.
Personally, I think the existing V10 patch looks good and clear. I am just
sharing the diff for feedback in case others want to have a look.
Best Regards,
Hou zj
Attachment | Content-Type | Size |
---|---|---|
v10-0001-combine-functions.patch.txt | text/plain | 12.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2024-11-20 09:00:13 | Re: On non-Windows, hard depend on uselocale(3) |
Previous Message | vignesh C | 2024-11-20 07:59:29 | Re: Introduce XID age and inactive timeout based replication slot invalidation |