pg_createsubscriber: Remove some code bloat in the atexit() callback
Michael Paquier <michael@paquier.xyz>
pg_createsubscriber: Remove some code bloat in the atexit() callback This commit adjusts some code added by e117cfb2f6c6 in the atexit() callback of pg_createsubscriber.c, in charge of performing post-failure cleanup actions. The code loops over all the databases specified, and it is changed here to rely on a single LogicalRepInfo for each database rather than always using LogicalRepInfos, simplifying its logic. Author: Peter Smith <smithpb2250@gmail.com> Discussion: https://postgr.es/m/CAHut+PtdBSVi4iH7BObDVwDNVwOpn+H3fezOBdSTtENx+rhNMw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/pg_createsubscriber.c | modified | +14 −12 |
Discussion
- Tidy recent code bloat in pg_creatersubscriber::cleanup_objects_atexit 4 messages · 2025-03-11 → 2025-03-16