Re: PATCH: add "--config-file=" option to pg_rewind

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: Gunnar Nick Bluth <gunnar.bluth@pro-open.de>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2022-02-24T09:02:54Z
Lists: pgsql-hackers
Hi Gunnar,

> During a Patroni PR discussion
> (https://github.com/zalando/patroni/pull/2225), we realised that if one
> wants to use the "-c" option on a typical Debian/Ubuntu installation
> (where the config resides below /etc/postgresql/), pg_rewind needs a way
> to be told where the postgresql.conf actually is.
>
> The attached patch implements this as an option.
>
> [...]

Good catch!

Could you also implement a TAP test for the new code?

-- 
Best regards,
Aleksander Alekseev



Commits

  1. Add option --config-file to pg_rewind

  2. Rework internal command generation of pg_rewind