Re: Add contrib/pg_logicalsnapinspect

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: Add contrib/pg_logicalsnapinspect
Дата
Msg-id CAD21AoBM6vAcPGR-ng0nqGG0yemR_ufdg3+v3gkPa6Nc2ntnrA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add contrib/pg_logicalsnapinspect  (Andres Freund <andres@anarazel.de>)
Ответы Re: Add contrib/pg_logicalsnapinspect
Список pgsql-hackers
On Tue, Mar 4, 2025 at 1:56 PM Andres Freund <andres@anarazel.de> wrote:
>
> Hi,
>
> On 2024-10-14 18:08:10 -0700, Masahiko Sawada wrote:
> > I fixed a compiler warning by -Wtypedef-redefinition related to the
> > declaration of SnapBuild struct, then pushed both patches.
>
> This just failed on skink (valgrind buildfarm animal):
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skink&dt=2025-03-04%2017%3A35%3A01
>
> In the last months (not sure quite how long) only the main regression tests
> were running under valgrind. I fixed that, and in one of the runs since then
> the above regression failure was triggered.
>
> diff -U3 /home/bf/bf-build/skink-master/HEAD/pgsql/contrib/pg_logicalinspect/expected/logical_inspect.out
/home/bf/bf-build/skink-master/HEAD/pgsql.build/testrun/pg_logicalinspect/isolation/results/logical_inspect.out
> --- /home/bf/bf-build/skink-master/HEAD/pgsql/contrib/pg_logicalinspect/expected/logical_inspect.out    2024-10-15
01:07:04.632684683+0000 
> +++ /home/bf/bf-build/skink-master/HEAD/pgsql.build/testrun/pg_logicalinspect/isolation/results/logical_inspect.out
 2025-03-04 18:49:34.659306138 +0000 
> @@ -42,11 +42,12 @@
>  ----------+---------------+----------------------+---------------+----------------------
>  consistent|              0|                      |              2|                     2
>  consistent|              2|                     2|              0|
> -(2 rows)
> +consistent|              2|                     2|              0|
> +(3 rows)
>
>  step s1_get_logical_snapshot_meta: SELECT COUNT(meta.*) from pg_ls_logicalsnapdir(),
pg_get_logical_snapshot_meta(name)as meta; 
>  count
>  -----
> -    2
> +    3
>  (1 row)

Thank you for the report.

It seems that bgwriter wrote another RUNNING_XACTS record during the
test, making the logical decoding write an extra snapshot on the disk.

One way to stabilize the regression test would be that we check if
there is a serialized snapshot that has expected number of catchange
transactions and number of committed transactions, instead of dumping
all serialized snapshots.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com



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