model-writtenrun 5093 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bilva Sanaba proposed COPY TO callbacks for extension-controlled storage, backup and analytics, complementing the existing COPY FROM callback and invoking a destination callback for each output row #1.
- Soumyadeep Chakraborty requested formatting and typedef registration, an example use case, and consideration of byte-count returns and failure handling #2; Michael Paquier marked the patch returned with feedback after no response #3, while Andrei Lepikhov pointed out similar work in a separate COPY proposal #4.
- After nearly two years, Nathan Bossart revived the patch with a rebase onto the separated COPY TO implementation, retaining the void-returning callback and adding progress reporting and typedef registration #5.
- Michael Paquier requested a small test module #6, and Nathan Bossart added one that reports callback data through NOTICE messages #7; subsequent review requested a regclass parameter and transaction-long relation locking #8, leading to a parameterized test and an unused-include cleanup #9 #10.
- Bharath Rupireddy questioned the feature's distinction from existing export mechanisms, opposed the extra test module, and raised a NOTICE-ordering concern #11; Nathan Bossart cited aws_s3 as a concrete use case and defended regression coverage #12.
- Michael Paquier supported processing exported rows within extensions without invoking an external program and retained the test module as both coverage and an example, leaving COPY FROM callback tests for possible future work #13 #14.
- Discussing the related COPY proposal, Michael Paquier distinguished this patch's per-row callback from broader beginning-and-end hooks and questioned the larger proposal's disruption of COPY TO/FROM symmetry #15.
- Michael Paquier committed Nathan Bossart's final submission #10 as 9fcdf2c787, adding API comments, a processed-row NOTICE, transaction-long locking in the test and minor cleanup; he announced application #16, and Nathan's acknowledgment closed the thread with the feature landed #17.