RE: Some codes refer slot()->{'slot_name'} but it is not defined
Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
From: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
To: 'Fujii Masao' <masao.fujii@oss.nttdata.com>, "'pgsql-hackers@lists.postgresql.org'" <pgsql-hackers@lists.postgresql.org>
Date: 2025-04-03T12:23:58Z
Lists: pgsql-hackers
Attachments
- v2-PG13-0001-Fix-invalid-referring-of-hash-ref-for-replic.patch (application/octet-stream) patch v2-0001
- v2-PG16-PG14-0001-Fix-invalid-referring-of-hash-ref-for-replic.patch (application/octet-stream) patch v2-0001
- v2-master-PG17-0001-Fix-invalid-referring-of-hash-ref-for-replic.patch (application/octet-stream) patch v2-0001
Dear Fujii-san,
> -is($node_primary->slot('dropme_slot')->{'slot_name'},
> - undef, 'logical slot was actually dropped on standby');
> +is($node_primary->slot('dropme_slot')->{'plugin'},
> + '', 'logical slot was actually dropped on standby');
>
> This seems like a separate issue from what your patch is addressing,
> but since this test is meant to confirm that the slot was dropped
> on the standby, shouldn't node_primary be node_replica instead?
You are right. It has been missed 8 years ago, let's fix now.
BTW, the issue exists for all supported branches. How do you feel
to backpatch them? PSA all patch set.
Best regards,
Hayato Kuroda
FUJITSU LIMITED
Commits
-
Fix logical decoding test to correctly check slot removal on standby.
- a11a823aa863 13.21 landed
- d4fe7437e536 14.18 landed
- 7b565bad85b7 15.13 landed
- 65e9418abe39 16.9 landed
- aab422af95c3 17.5 landed
- d5d85f188161 18.0 landed
-
Fix logical decoding regression tests to correctly check slot existence.
- b29a183c67e1 13.21 landed
- 0d22daad7e1a 14.18 landed
- 84fe9f1eb311 15.13 landed
- bc485fce52eb 16.9 landed
- 5570e103bf84 17.5 landed
- c754bdd8a2e5 18.0 landed