Re: Add two missing tests in 035_standby_logical_decoding.pl

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Add two missing tests in 035_standby_logical_decoding.pl
Дата
Msg-id 20230426102751.pkfs7gwvvrgta6p3@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Add two missing tests in 035_standby_logical_decoding.pl  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Ответы Re: Add two missing tests in 035_standby_logical_decoding.pl  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
> diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm
> index 6f7f4e5de4..819667d42a 100644
> --- a/src/test/perl/PostgreSQL/Test/Cluster.pm
> +++ b/src/test/perl/PostgreSQL/Test/Cluster.pm
> @@ -2644,7 +2644,16 @@ sub wait_for_catchup
>      }
>      if (!defined($target_lsn))
>      {
> -        $target_lsn = $self->lsn('write');
> +        my $isrecovery = $self->safe_psql('postgres', "SELECT pg_is_in_recovery()");
> +        chomp($isrecovery);
> +        if ($isrecovery eq 't')
> +        {
> +            $target_lsn = $self->lsn('replay');
> +        }
> +        else
> +        {
> +            $target_lsn = $self->lsn('write');
> +        }

Please modify the function's documentation to account for this code change.


-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"Porque Kim no hacía nada, pero, eso sí,
con extraordinario éxito" ("Kim", Kipling)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jakub Wartak
Дата:
Сообщение: Re: Doc limitation update proposal: include out-of-line OID usage per TOAST-ed columns
Следующее
От: "Zhijie Hou (Fujitsu)"
Дата:
Сообщение: RE: Perform streaming logical transactions by background workers and parallel apply