Re: TAP test for recovery_end_command

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Amul Sul <sulamul@gmail.com>
Cc: Euler Taveira <euler@eulerto.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-10-05T20:10:37Z
Lists: pgsql-hackers
Hi,

On 2021-09-14 10:34:09 +0530, Amul Sul wrote:
> +# recovery_end_command_file executed only on recovery end which can happen on
> +# promotion.
> +$standby3->promote;
> +ok(-f "$recovery_end_command_file",
> +	'recovery_end_command executed after promotion');

It'd be good to test what happens when recovery_end_command fails...

Greetings,

Andres Freund



Commits

  1. Add TAP test for archive_cleanup_command and recovery_end_command