Re: TAP test for recovery_end_command

From: Amul Sul <sulamul(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Euler Taveira <euler(at)eulerto(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: TAP test for recovery_end_command
Date: 2021-10-06 13:19:10
Message-ID: CAAJ_b95_FysMsMnU5js8Q5gKMmf06Esy0+f=XbUa6c+SOXCn_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 6, 2021 at 1:40 AM Andres Freund <andres(at)anarazel(dot)de> wrote:
>
> 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...
>

Thanks for the suggestion, added the same in the attached version.

Regards,
Amul

Attachment Content-Type Size
TAP-test_recovery_end_command_v4.patch application/octet-stream 3.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2021-10-06 13:35:41 Re: storing an explicit nonce
Previous Message Maxim Orlov 2021-10-06 12:19:23 Re: Pre-allocating WAL files