Re: Rework subscription-related code for psql and pg_dump

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Rework subscription-related code for psql and pg_dump
Date: 2024-12-03 00:50:04
Message-ID: Z05VvIoMm7VmxXD5@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Nov 30, 2024 at 12:54:19PM +0900, Michael Paquier wrote:
> - if (strcmp(subinfo->subtwophasestate, two_phase_disabled) != 0)
> + if (subinfo->subtwophasestate != LOGICALREP_TWOPHASE_STATE_DISABLED)
> appendPQExpBufferStr(query, ", two_phase = on");
>
> I'm not feeling strongly either way. The code intentionally wants to
> set two_phase to "on" if the catalog state is "pending" or "on", so
> sticking with the current assumption of the code and keeping it as
> proposed in the patch is fine, IMO.

I've looked at that again and let this as-is, then applied all this
cleanup.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2024-12-03 01:05:42 Re: meson missing test dependencies
Previous Message Thomas Munro 2024-12-02 23:21:33 Re: Remove useless casts to (void *)