On Thu, Nov 26, 2026 at 8:55 AM Zhijie Hou <[email protected]> wrote: > > Hi, > > On Wed, Nov25, 2026 at 10:56 PM vignesh C wrote: > > On Wed, 25 Nov 2026 at 17:23, Nisha Moond <[email protected]> wrote: > > > > > > Attached v2 patch fixing above as well as other comments from Hou-san at > > > [2]. > > > > Thanks for the updated patch, one comment: > > With this change, setting conflict_log_destination to log in ALTER > > SUBSCRIPTION will fail with an inappropriate hint: "Use DROP ... > > CASCADE to drop the dependent objects too". This hint is misleading > > because ALTER SUBSCRIPTION does not support CASCADE(it is ok in drop > > subscription case): > > > > ... > > postgres=# alter subscription sub1 set (conflict_log_destination = log); > > ERROR: cannot drop table pg_conflict.pg_conflict_log_16392 because > > other objects depend on it > > DETAIL: view v1 depends on table pg_conflict.pg_conflict_log_16392 > > HINT: Use DROP ... CASCADE to drop the dependent objects too. > > > IIUC, the hint comes unconditionally from reportDependentObjects() for > any DROP_RESTRICT deletion, and other commands without CASCADE support > already show the same hint, e.g., ALTER TABLE ... ALTER COLUMN ... DROP > IDENTITY, ALTER TABLE ... ALTER COLUMN ... TYPE, and DROP INDEX > CONCURRENTLY (similarly, ALTER GROUP ... DROP USER emits "Use CASCADE to > revoke them too.") > > Improving it might require teaching the dependency machinery (e.g., > maybe via a new PERFORM_DELETION_* flag) whether the caller supports > CASCADE, so I think we could consider it as a separate improvement.
The patch shared by Kuroda-San seems like a simple fix, since it directly impacts our conflict_log_destination change, should we take it along with this patch? Thoughts? thanks Shveta
