From: | Dave Cramer <davecramer(at)gmail(dot)com> |
---|---|
To: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: More protocol.h replacements this time into walsender.c |
Date: | 2025-07-24 19:03:45 |
Message-ID: | CADK3HHJjdqXEs1a0UdBUy5zfN1AX5T4N1UO+XEufPruWRwqo8g@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, 24 Jul 2025 at 05:34, Dave Cramer <davecramer(at)gmail(dot)com> wrote:
>
>
>
> On Wed, 23 Jul 2025 at 11:40, Nathan Bossart <nathandbossart(at)gmail(dot)com>
> 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: case 'h':
>> 2361: case 'p':
>> 2755: pq_sendbyte(&output_message, 's');
>> 3367: pq_sendbyte(&output_message, 'w');
>> 4138: pq_sendbyte(&output_message, 'k');
>>
>> In walreceiver.c:
>>
>> 829: case 'w': /* WAL
>> records */
>> 853: case 'k': /*
>> Keepalive */
>> 1133: pq_sendbyte(&reply_message, 'r');
>> 1237: pq_sendbyte(&reply_message, 'h');
>>
>> In logical/worker.c:
>>
>> 3854: if (c == 'w')
>> 3876: else if (c == 'k')
>> 3895: else if (c == 's') /*
>> Primary status update */
>> 4127: pq_sendbyte(reply_message, 'r');
>> 4298: pq_sendbyte(request_message, 'p');
>>
>
> Interesting, yes I will add those
>
Patch attached
Dave Cramer
>
>>
Attachment | Content-Type | Size |
---|---|---|
0001-replace-protocol-replication-constants-with-named-co.patch | application/octet-stream | 6.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2025-07-24 19:08:37 | Re: PoC: adding CustomJoin, separate from CustomScan |
Previous Message | Erik Wienhold | 2025-07-24 19:01:11 | Re: Regression with large XML data input |