model-writtenrun 2138 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jan - Apr 2025 · 20 entries
- Shubham Khanna proposed optional removal of publications copied to a physical standby before conversion to a logical subscriber, initially naming the option --clean-publisher-objects and considering future cleanup of other replication objects #1.
- Hayato Kuroda found that cleanup ran unconditionally despite the option, questioned the claimed single transaction, and requested reuse of existing test nodes; Shubham corrected the option gate and test setup in the next submission #2 #3.
- Shlok Kyal and Hayato refined the first implementation's comments, standby checks, and failure behavior, with Hayato arguing that failures in the then-final cleanup phase should not invalidate an already completed conversion #4 #5 #7.
- Hayato pointed out that subscriptions were already cleaned up and ordinary replication slots could be intentional, then recommended integrating publication cleanup into setup_subscriber(); Shubham implemented that integration with a combined DROP command and renamed the option --cleanup-existing-publications #8 #9.
- Reviews by Shlok and Hayato led to escaped identifiers, corrected log quoting, explicit target-database scope, and synchronized TAP checks across the next revisions #10 #11 #14 #16 #17.
- Peter Smith proposed individual drops through a shared helper for simpler maintenance, while Vignesh argued for an option extensible to other object types; Shubham adopted the helper approach while leaving naming unresolved #18 #19 #20.
- Peter and Hayato then identified duplicate dropping of the tool-created publication and problems with logging and cleanup state; subsequent revisions consolidated the helpers, added a no-option test, and reused the existing publisher #21 #22 #23 #25 #26.
- A rebase accommodated the new dbinfos structure and two-phase support, after which Hayato corrected erroneous cleanup-flag handling #27 #28 #29.
- Nisha Moond reported successful functional testing and reviewed documentation, logs, and TAP details, while Peter pressed for the clearer --drop-all-publications name and less unrelated test churn; these changes produced the renamed version #30 #32 #33 #34.
- Nisha identified that cleanup failures could modify the first database's state instead of the relevant database's state, leading to per-database arguments and a corrected publication-name comparison #36 #37 #38 #39.
- Peter laid out three interface choices: one generic boolean, separate object-specific options, or an option accepting object types; David Johnston preferred generating an editable SQL script, while Amit Kapila favored incremental automatic cleanup with explicit user selection #42 #43 #44.
- Euler Taveira urged a general interface and objected to the added test runtime, while Hou supported automatic deletion and David maintained his preference for reviewing generated commands; script output was left for future work rather than included in this patch #51 #54 #55.
- Discussion converged on repeated object-type arguments rather than a comma-separated list, and Amit selected --remove/-r; Shubham replaced the boolean with an object-type list and bit flags #53 #58 #59 #60 #61 #62.
- Euler's next review prompted removal of the extra standby test and unrelated interface changes, while David's suggestions introduced case-insensitive object-type parsing and briefly an all value; Amit deferred all until more object types existed #63 #64 #65 #68 #69.
- Amit requested a selection helper with explicit drop arguments, and David supplied documentation distinguishing always-removed tool publications from optional removal of pre-existing publications; Shubham incorporated both in the next full patch #70 #71 #73.
- Vignesh supplied a small flag and initialization cleanup that Shubham merged, then Hou supplied a second fix-up making catalog-query failure fatal and removing a misleading success message, which was also merged #76 #77 #79 #80.
- Hayato and Amit reserved lowercase -r for possible future log retention, prompting -R instead; Vignesh's remaining documentation and comment reviews produced the final submitted version #78 #81 #82 #84 #86 #87.
- Amit committed the feature from the final submission as e5aeed4b80, adding a fix so dry runs also report dropping publications that the tool would create during a real run #87 #88.
- Peter Smith subsequently noticed that the documentation did not visibly require an object-type argument and proposed improved syntax, list formatting, and SGML markup; Vignesh approved the patch and Amit committed it unchanged as d1d83827ba #89 #90 #91.
- At the thread's end, the feature and both follow-ups were committed, with --clean=publications as the resulting interface; additional cleanup object types, an all value, and editable cleanup scripts remained future possibilities rather than pending attached patches #68 #96 #97 #99.
Jun 2025 · 3 entries
- In June, Peter Eisentraut reopened naming because --clean had precedent in related PostgreSQL tools and scarce short-option letters should not dictate long names; he also questioned the object-type argument format #92.
- Amit, David, and Peter Smith accepted --clean, while discussion of future object types and patterns did not produce an argument-format change #93 #94 #95 #96.
- Peter Eisentraut submitted the straight rename to --clean without a short option, Hayato reviewed it, and Peter committed it unchanged as 60dda7bbc4, declining broader terminology edits as out of scope #97 #98 #99.