Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uebaN-00CJdv-Gx for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Jul 2025 15:40:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uebaL-002v91-W4 for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Jul 2025 15:40:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uebaL-002v8t-N6 for pgsql-hackers@lists.postgresql.org; Wed, 23 Jul 2025 15:40:49 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uebaK-000PIe-1J for pgsql-hackers@lists.postgresql.org; Wed, 23 Jul 2025 15:40:49 +0000 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-3de252f75d7so61288565ab.3 for ; Wed, 23 Jul 2025 08:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753285248; x=1753890048; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AXNrm5Pl6q1EVyYoXtl4CZK7X+pVTa/04ApQVf/kNI4=; b=GQvDOntcfnSV1Xtb5CHVq5R3U8kRfos0eFmDsB2ffs8zdvcMFXDnSTwzOR16Oo5Zqh HcfMhNEUt/ZYOSpAah4QmDIwlrBMsSZnMoJYHofAjzQ/e3vGNxTChTcVavlYigpIVz2A Na+ohxwLc1lLE3GfVHUJUPQLuFsIpYCSitDU9WTkAuuCtKvOQ3L/lad2yD9JOkwE1WzP OKp/mH4HfEz+2mIb3tqLo7RyLS4ZJW960ecoM5ufOmZQruATmHfBDcsE6+35h4jmCPMz 6xkDBT3vaOvD/aF08vRFm1iz/luoblFBp1KHdRK1eirDFT2o9uZdZhy6kgAODAhCQ3V4 CpSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753285248; x=1753890048; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AXNrm5Pl6q1EVyYoXtl4CZK7X+pVTa/04ApQVf/kNI4=; b=mN37PZW3//YtMPt0OGMG7oEuhOZW7HnkYEW2AhMOfe+zWznRuVlar2F3thg6WczK5C pp0+rB7atlv4r2Faap+/R6OOHrCC/bcLHBfgW3H6LNRHGz9Jc7aOxrtOmxk/DxwV29Hf mh7/1hw9rXh6WXFLcZ/1hRv++9IWmZ98/ysCzfjxKgrEpHvRvMjtMGQ5agYWDWTp02CN kTMhHEFYW18nORGfKRK4IcW+wPUHKZm6etIgRxjYoFVUMjJYeSLWBubtJBzv97+q95wm p7s7LJlr4wIoiGi6lm73GgZ2l1eSs0ghZ58sIMptxuuXGaJES5arKCK3MlhH16q7cadM 1cTg== X-Gm-Message-State: AOJu0YwCj/xkp0uj2mf72m+0N4PKP34EH/3yQZEwnOgyG4wAzTgJMt5Z OuDzecuWNLqI1xhHc2ju6UQ+MW7Ogno8tMb2jfJ+iSwpbeJKqEP/jTHgzqQzNQ== X-Gm-Gg: ASbGncv6jCdIYutiSV1uZw3n812Jl3QPA0/2FhGnYdc0+PWgWLtxU6LfDTq6J7RRxqp FL1E/fiwmTWIYa039EcTTfguc1dF2MXjOtowiw3WGZWW5rXmUmO0cUCIebTxgEmO/33B1FSy9P7 MN6vuQL7HS3dSULIVKh+CPZZxyvfV9BR0ydqTJy6Ji0xAni34c2q9FzhF8yDReToPlD5K7U7mXN 1HFffOwKmPQTaL70vd6STFOHpeRJIdr0GPs6WYbDMzr4ZNpTcsh/ozzjVuc63CNOH7088mxNinU Thr84A7kXR9lkBPn2csxjAy9SvHFSFQvoNsnsjp1aX1L8uX1eu9b2I761zBSKEFY3PwdZDlRIkR mi72VM6DCHGfQgvUrTLD+YaVHzUgZZyze8eKieVhNO0iw8XoovECc9nMRwv2tRRQArf3izRNT8O w7NVR8Q/EWIVbf X-Google-Smtp-Source: AGHT+IF33LKCIcWxc9/N1VWFOza8QqcBg2osopoMAYY1JKCaVK7PReT/sNK9lG7i311YwGhpeq0oww== X-Received: by 2002:a05:6e02:18cd:b0:3e2:c5de:5f8 with SMTP id e9e14a558f8ab-3e330374e61mr55765185ab.9.1753285247630; Wed, 23 Jul 2025 08:40:47 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-5084c787887sm3255019173.26.2025.07.23.08.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jul 2025 08:40:47 -0700 (PDT) Date: Wed, 23 Jul 2025 10:40:45 -0500 From: Nathan Bossart To: Dave Cramer Cc: PostgreSQL Hackers Subject: Re: More protocol.h replacements this time into walsender.c Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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'); -- nathan