From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
---|---|
To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
Cc: | Dave Cramer <davecramer(at)gmail(dot)com>, Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: More protocol.h replacements this time into walsender.c |
Date: | 2025-08-04 19:56:01 |
Message-ID: | aJEQUTYLkS836qu5@nathan |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Aug 04, 2025 at 02:31:05PM +0200, Álvaro Herrera wrote:
> +/* Replication Protocol, sent by the primary */
> +
> +#define PqReplMsg_WALData 'w'
> +#define PqReplMsg_PrimaryKeepAlive 'k'
> +#define PqReplMsg_PrimaryStatusUpdate 's'
> +
> +/* Replication Protocol, sent by the standby */
> +
> +#define PqReplMsg_StandbyStatus 'r'
> +#define PqReplMsg_HotStandbyFeedback 'h'
> +#define PqReplMsg_RequestPrimaryStatus 'p'
I know I previously +1'd a new prefix for these, but upon further review,
I'm not so sure about that. The replication protocol uses many of the
existing PqMsg macros already, so it would be a little strange if only a
subset of the replication protocol messages used the special prefix. And
IMO it would also be weird to duplicate all the macros used by both
protocols. There's also backups, which use the replication protocol but
have their own special characters [0]. If we're going the prefix route,
would we add another prefix for those, or use the replication one?
[0] https://postgr.es/m/aIOkE7fgvFOu0FI_%40nathan
--
nathan
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Nasby | 2025-08-04 20:02:36 | Re: Enable data checksums by default |
Previous Message | Andrew Dunstan | 2025-08-04 19:39:15 | Re: V18 release Notes typo |