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 <smithpb2...@gmail.com>
Discussion: 
https://postgr.es/m/cahut+ptdbsvi4ih7bobdvwdnvwopn+h3fezobdsttenx+rh...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/83e5763d4dddd9b24b738d8335b3cbfc2742e4ac

Modified Files
--------------
src/bin/pg_basebackup/pg_createsubscriber.c | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)

Reply via email to