From: | "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com> |
---|---|
To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
Subject: | RE: Fix slot synchronization with two_phase decoding enabled |
Date: | 2025-04-02 05:55:37 |
Message-ID: | OS3PR01MB571870D041C9E0E555A4FC6094AF2@OS3PR01MB5718.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Apr 2, 2025 at 12:41 PM Amit Kapila wrote:
>
> On Tue, Apr 1, 2025 at 4:28 PM Zhijie Hou (Fujitsu)
> <houzj(dot)fnst(at)fujitsu(dot)com>
> wrote:
> >
> > Here is the V3 patch set which addressed all the comments.
> >
>
> Comment 0n 0001
> <literal>NULL</literal> for logical slots where
> + <structfield>two_phase</structfield> is false and physical slots.
> + </para></entry>
>
> change above to:
> <literal>NULL</literal> for logical slots where
> <structfield>two_phase</structfield> is false and for physical slots.
Changed.
>
> Comment on 0002
> +# Create a subscription with two_phase enabled
> +$subscriber1->safe_psql('postgres',
> + "CREATE SUBSCRIPTION regress_mysub2 CONNECTION
> '$publisher_connstr'
> PUBLICATION regress_mypub WITH (slot_name = lsub1_slot, create_slot =
> false, enabled = false, two_phase = true);"
> +);
> +
> +# Enable failover for the subscription ($result, $stdout, $stderr) =
> +$subscriber1->psql('postgres', "ALTER SUBSCRIPTION regress_mysub2
> +SET (failover = true)"); ok( $stderr =~
> +/ERROR: cannot enable failover for a two_phase
> enabled subscription/,
> + "Enabling failover is not allowed for a two_phase enabled
> + subscription");
>
> Is there a need for this test to be in .pl file? Can't we add it in .sql file?
Right, I moved the test into subscription.sql
> Apart from the above, I have made minor modifications to the PG17
> patch in the attached.
Here is V4 patch set which addressed above comments and passed
pgindent test.
Best Regards,
Hou zj
Attachment | Content-Type | Size |
---|---|---|
v4-0001-HEAD-Fix-slot-synchronization-for-two_phase-enables-sl.patch | application/octet-stream | 14.3 KB |
v4-0002-PG17-Fix-slot-synchronization-for-two_phase-enables-sl.patch.txt | text/plain | 10.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Gurjeet Singh | 2025-04-02 05:55:57 | Re: [PATCH] Re: Proposal to Enable/Disable Index using ALTER INDEX |
Previous Message | Jeff Davis | 2025-04-02 05:44:19 | Re: Statistics Import and Export |