pg_resetwal: Use frontend logging API
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 28 Sep 2023 09:58:36 +0000 (11:58 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 28 Sep 2023 09:58:36 +0000 (11:58 +0200)
commita11d8e10f226c5a2072c1640bd1d70403ae4c4fa
treeeec712f7067b9832b22f2a238bd50005760b8793
parentb5da1b3a939a8a7ece408131e6503be7a422e491
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
src/bin/pg_resetwal/pg_resetwal.c