pg_resetwal: Use frontend logging API

Peter Eisentraut <peter@eisentraut.org>

Commit: a11d8e10f226c5a2072c1640bd1d70403ae4c4fa
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2023-09-28T09:58:36Z
Releases: 17.0
pg_resetwal: Use frontend logging API

This now causes error messages related to the lack of the -f option to
appear on standard error rather than standard output.

Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://www.postgresql.org/message-id/flat/0f3ab4a1-ae80-56e8-3426-6b4a02507687@eisentraut.org

Files

PathChange+/−
src/bin/pg_resetwal/pg_resetwal.c modified +14 −12

Discussion