pg_createsubscriber: Use logging.c log file callback

Peter Eisentraut <peter@eisentraut.org>

Commit: 847336ba53af2d140563cdf9f2b0c4f678378a54
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2026-04-13T08:44:14Z
pg_createsubscriber: Use logging.c log file callback

This reverts commit 6b5b7eae3ae, where a new logging API layer was
introduced locally in pg_createsubscriber.  Instead, use the log file
callback introduced in logging.c.  This new approach is simpler,
eliminates code duplication, and doesn't require any caller changes or
NLS updates (which the previous commit missed).

Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEqnbaUthOQARV1dscGvB_EsqC-YfxiM6rWkVDHc%2BG%2Bf4oSUHw%40mail.gmail.com

Files

PathChange+/−
src/bin/pg_basebackup/pg_createsubscriber.c modified +279 −553

Discussion