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 1ufDWm-0046BS-QM for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jul 2025 08:11:41 +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 1ufDWl-00FoMN-H2 for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Jul 2025 08:11:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ufDWk-00FoM7-Qm for pgsql-hackers@lists.postgresql.org; Fri, 25 Jul 2025 08:11:39 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ufDWh-000kLd-08 for pgsql-hackers@lists.postgresql.org; Fri, 25 Jul 2025 08:11:38 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 98C767A00B7; Fri, 25 Jul 2025 04:11:33 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Fri, 25 Jul 2025 04:11:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1753431093; x= 1753517493; bh=XqIx/hJsLu8mj912e5l25+rzGp2DfO7KqypchRKY5rE=; b=r htNA9NawOpA7/3giGe01QajHoxoEV6vO/PNTWN5Z2vTHKU+qSuVBu0YB7OpfHldd mlftfvyZO0jxMqOMz40y/+jFfXZmXzTlK8LHlmHaQ3DGsz2mBuGbMFoozykGtTiG Q0J1WQXSeS/3umj1VbGucZd7i2LaOIUOJACdIltJupX3BXeJPeIefgnxMEU3yS22 29SrM7gExY44F0un7FpQ4QeWPkmYtTtdRXiDZFo6B6P6qVGft3uxOmwPN9D3NdwU zx7OV/kODNNTxFQOyP6nI1l0iZ/LzCu98zVqQHae3/Jr+DQKSys4OgRB8hAi62+S x2psVpzUqCk877NWFzJWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1753431093; x=1753517493; bh=X qIx/hJsLu8mj912e5l25+rzGp2DfO7KqypchRKY5rE=; b=F/CLmlzy6oBT321M4 ltaFr5jlgigAj0ablnGav1HBbrXp7q7Mr1NfgrgObfEPvdiyag52LjNl+2Z/01Sw 8+Jt/CM3EoLEIc+kbisx71V6Xtun48dPP1X9EoKeLjYf8vnSL5+BOZWm2oyAOcJh 2dASRmDUOBsVdhX6vYVkUfRzLW2xRCY0IJpPkKcRvtUbCFXVgeCps2lq9zliuJq1 Ng32eBWeCipce92WHiaa9VkvFFpNrAYdrYnzSO9WuXj3gzJvQZ7eo5qc8+yjKwJa T+kn9m2aOBH843CadTmIILlz9kidJVSYdyYuiKs0BQQYA3ALBzfTJaU12T32kKTb C5HPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdekfedtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepteeuvdehffekvefgueehveetveekgfegtddtueefueehuddutdfhfeff hfejfeffnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepjhgrtghosgdrtghhrghmphhiohhnsegvnhhtvghrphhrihhsvggu sgdrtghomhdprhgtphhtthhopegurghvvggtrhgrmhgvrhesghhmrghilhdrtghomhdprh gtphhtthhopehnrghthhgrnhgusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphht thhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdroh hrgh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Jul 2025 04:11:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1753431091; bh=99ofQts+aJF8THt6HjCAkbT1frUyDDfcjWbn5woyCf4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=PqyQElOUdb9oaBRcQB8Flg2RuqdIhoIKVdt669hmJwJ9AZMFj4osXSLqSfHyLUzNa 2k1I9+eYFFdgDlFMsysqqjGtqxKaweeIjUCbZBfECzyKT2MDLb2SCV7/G+eQ17trYn gPBE44D1SuvjwVed4giYd31QU/7z9VCSzUqYcU6ptGs5gGb3DPB8ASaZ/bVCG8b59S 4gtUM5kKjlNimcBePlvKOzteMcylGlQyrDt3WjTeCucpedpeaTL023W3b5F5hBZqPb f5Ib7Oy+aGG73fPwdTn8sUWtCGwc8CVnKNvUEfV7p4fpS5zMk+LuNvnekbkWPMm815 eUZbSlSJ7xgUg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 4240590; Fri, 25 Jul 2025 10:11:31 +0200 (CEST) Date: Fri, 25 Jul 2025 10:11:31 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Dave Cramer Cc: Jacob Champion , Nathan Bossart , PostgreSQL Hackers Subject: Re: More protocol.h replacements this time into walsender.c Message-ID: <202507250811.ndz3lkjo2jmn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Jul-24, Dave Cramer wrote: > On Thu, 24 Jul 2025 at 17:05, Jacob Champion < > jacob.champion@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' > > +#define PqMsg_PrimaryKeepAlive 'k' > > +#define PqMsg_PrimaryStatusUpdate 's' > > + > > + > > +/* Replication Protocol sent by the standby */ > > + > > +#define PqMsg_StandbyStatus 'r' > > +#define PqMsg_HotStandbyFeedback 'h' > > +#define PqMsg_RequestPrimaryStatus 'p' > > > > Since these are part of the replication subprotocol (i.e. tunneled, > > via CopyData) rather than the top-level wire protocol, do they deserve > > their own prefix? PqReplMsg_* maybe? > > I'm going to wait to see if there are any other opinions. Last time I did > this there were quite a few opinions before finally settling on the naming Count me in. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "The Postgresql hackers have what I call a "NASA space shot" mentality. Quite refreshing in a world of "weekend drag racer" developers." (Scott Marlowe)