Re: More protocol.h replacements this time into walsender.c

2025-07-28 Thread Dave Cramer
On Fri, 25 Jul 2025 at 10:38, Nathan Bossart wrote: > On Thu, Jul 24, 2025 at 05:39:14PM -0400, Dave Cramer wrote: > > On Thu, 24 Jul 2025 at 17:05, Jacob Champion < > > jacob.champ...@enterprisedb.com> wrote: > >> Since these are part of the replication subprotocol (i.e. tunneled, > >> via CopyD

Re: More protocol.h replacements this time into walsender.c

2025-07-25 Thread Nathan Bossart
On Thu, Jul 24, 2025 at 05:39:14PM -0400, Dave Cramer wrote: > On Thu, 24 Jul 2025 at 17:05, Jacob Champion < > jacob.champ...@enterprisedb.com> wrote: >> Since these are part of the replication subprotocol (i.e. tunneled, >> via CopyData) rather than the top-level wire protocol, do they deserve >>

Re: More protocol.h replacements this time into walsender.c

2025-07-25 Thread Nathan Bossart
On Fri, Jul 25, 2025 at 06:28:28AM -0400, Dave Cramer wrote: > On Fri, 25 Jul 2025 at 06:23, Álvaro Herrera wrote: >> Yeah, we could rename it, as in the attached. It doesn't harm anything. > > Consistency is good. If your patch were applied, then it would be > consistent to use WALData +1 --

Re: More protocol.h replacements this time into walsender.c

2025-07-25 Thread Dave Cramer
On Fri, 25 Jul 2025 at 06:23, Álvaro Herrera wrote: > On 2025-Jul-25, Dave Cramer wrote: > > > FYI, the reason I used XLogData is because the term is used multiple > times > > here https://www.postgresql.org/docs/devel/protocol-replication.html > > Yeah, we could rename it, as in the attached. I

Re: More protocol.h replacements this time into walsender.c

2025-07-25 Thread Álvaro Herrera
On 2025-Jul-25, Dave Cramer wrote: > FYI, the reason I used XLogData is because the term is used multiple times > here https://www.postgresql.org/docs/devel/protocol-replication.html Yeah, we could rename it, as in the attached. It doesn't harm anything. -- Álvaro HerreraBreisgau, Deut

Re: More protocol.h replacements this time into walsender.c

2025-07-25 Thread Dave Cramer
Dave Cramer On Fri, 25 Jul 2025 at 04:11, Álvaro Herrera wrote: > On 2025-Jul-24, Dave Cramer wrote: > > > On Thu, 24 Jul 2025 at 17:05, Jacob Champion < > > jacob.champ...@enterprisedb.com> wrote: > > > > > On Thu, Jul 24, 2025 at 12:04 PM Dave Cramer > wrote: > > > > +/* Replication Protocol

Re: More protocol.h replacements this time into walsender.c

2025-07-25 Thread Álvaro Herrera
On 2025-Jul-24, Dave Cramer wrote: > On Thu, 24 Jul 2025 at 17:05, Jacob Champion < > jacob.champ...@enterprisedb.com> wrote: > > > On Thu, Jul 24, 2025 at 12:04 PM Dave Cramer wrote: > > +/* Replication Protocol sent by the primary */ > > + > > +#define PqMsg_XlogData 'w' > > +#de

Re: More protocol.h replacements this time into walsender.c

2025-07-24 Thread Dave Cramer
On Thu, 24 Jul 2025 at 16:49, Álvaro Herrera wrote: > Hello, > > Since this is a whole new symbol, I'd rather you use the term WAL rather > than Xlog ... > Fair enough Dave

Re: More protocol.h replacements this time into walsender.c

2025-07-24 Thread Dave Cramer
On Thu, 24 Jul 2025 at 17:05, Jacob Champion < jacob.champ...@enterprisedb.com> wrote: > On Thu, Jul 24, 2025 at 12:04 PM Dave Cramer wrote: > > Patch attached > > +/* Replication Protocol sent by the primary */ > + > +#define PqMsg_XlogData 'w' > +#define PqMsg_PrimaryKeepAlive

Re: More protocol.h replacements this time into walsender.c

2025-07-24 Thread Jacob Champion
On Thu, Jul 24, 2025 at 12:04 PM Dave Cramer wrote: > Patch attached +/* Replication Protocol sent by the primary */ + +#define PqMsg_XlogData 'w' +#define PqMsg_PrimaryKeepAlive 'k' +#define PqMsg_PrimaryStatusUpdate 's' + + +/* Replication Protocol sent by the standby */ + +

Re: More protocol.h replacements this time into walsender.c

2025-07-24 Thread Álvaro Herrera
Hello, Since this is a whole new symbol, I'd rather you use the term WAL rather than Xlog ... -- Álvaro Herrera

Re: More protocol.h replacements this time into walsender.c

2025-07-24 Thread Dave Cramer
On Thu, 24 Jul 2025 at 05:34, Dave Cramer wrote: > > > > On Wed, 23 Jul 2025 at 11:40, Nathan Bossart > wrote: > >> Committed. I noticed that there are several characters with no match in >> protocol.h. It might be worth adding those. >> >> In walsender.c: >> >> 1537: pq_sendbyte(ctx

Re: More protocol.h replacements this time into walsender.c

2025-07-24 Thread Dave Cramer
On Wed, 23 Jul 2025 at 11:40, Nathan Bossart wrote: > Committed. I noticed that there are several characters with no match in > protocol.h. It might be worth adding those. > > In walsender.c: > > 1537: pq_sendbyte(ctx->out, 'w'); > 2353: case 'r': > 2357:

Re: More protocol.h replacements this time into walsender.c

2025-07-23 Thread Nathan Bossart
Committed. I noticed that there are several characters with no match in protocol.h. It might be worth adding those. In walsender.c: 1537: pq_sendbyte(ctx->out, 'w'); 2353: case 'r': 2357: case 'h': 2361: case 'p': 2755: p

Re: More protocol.h replacements this time into walsender.c

2025-07-22 Thread Nathan Bossart
On Tue, Jul 22, 2025 at 05:54:48PM -0400, Dave Cramer wrote: > Patch attached Thanks. I plan to look into committing this tomorrow. -- nathan

More protocol.h replacements this time into walsender.c

2025-07-22 Thread Dave Cramer
Greetings, Patch attached Dave Cramer 0001-replace-protocol-constants-with-named-constants-from.patch Description: Binary data