pg_createsubscriber: Introduce module-specific logging functions. Replace generic pg_log_* calls with report_createsub_log() and report_createsub_fatal(). This refactor provides the necessary infrastructure to support logging to external files via the -l option.
These new functions enable the utility to route messages to both the terminal and a log file based on the logging configuration and verbosity levels provided by the user. Author: Hayato Kuroda <[email protected]> Author: Gyan Sreejith <[email protected]> Reviewed-by: shveta malik <[email protected]> Reviewed-by: Amit Kapila <[email protected]> Discussion: https://postgr.es/m/caeqnbauthoqarv1dscgvb_esqc-yfxim6rwkvdhc+g+f4os...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d6628a5ea0a56b62eb3feaa8d8210ce76e9afc2c Modified Files -------------- src/bin/pg_basebackup/pg_createsubscriber.c | 749 ++++++++++++++++++---------- 1 file changed, 477 insertions(+), 272 deletions(-)
