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 1qTmfU-00AfNr-7V for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Aug 2023 17:08:20 +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 1qTmfS-007Dqz-61 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Aug 2023 17:08:18 +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 1qTmfR-007Dqr-5p for pgsql-hackers@lists.postgresql.org; Wed, 09 Aug 2023 17:08:18 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qTmfM-001Qvf-2v for pgsql-hackers@lists.postgresql.org; Wed, 09 Aug 2023 17:08:16 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DE9F85C0052; Wed, 9 Aug 2023 13:08:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 09 Aug 2023 13:08:08 -0400 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1691600888; x= 1691687288; bh=TGWB7tbo+4VON0A8XXjKtDRqv/N/705clNMY4ulaS20=; b=k wLVEERAY0RHNMyR3P0ZoKSn5FHa0UbG4tORpK/uYDkr46nLjAFdyaS5nCq78IA7S 8WAzQOpLcJzwfKjMRB5ta3eMZ+9T/pBJxNfeSRTGtD7/Lwi9ZL+GgeBvLK93caHI rabPYBYqQrd6d6HUIpattbJSCti4phTD3KAamuU0OF70VVaVhDw90mdCJT9+FBhr Bde9jILEz8eq19CcyXyMznJoij5/yik+6eve3P302fbGyJwGOpr0gtNWiANK5DCy HxQjsdqcyWD2EGe6YePrqNVZhNB7g+yolIsLqNlo1EWfpVDQk/t39H+Mb2p267Pa ldrE7YQ9ABZIs4EDxE3NA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleeggddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Aug 2023 13:08:07 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6378BDF; Wed, 9 Aug 2023 19:08:05 +0200 (CEST) Date: Wed, 9 Aug 2023 19:08:05 +0200 From: Alvaro Herrera To: Nathan Bossart Cc: Dave Cramer , Tom Lane , Peter Eisentraut , Tatsuo Ishii , robertmhaas@gmail.com, smithpb2250@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Using defines for protocol characters Message-ID: <20230809170805.6ugrqutmg7qfmn22@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230809165147.GA1385791@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Aug-09, Nathan Bossart wrote: > On Wed, Aug 09, 2023 at 10:44:42AM -0600, Dave Cramer wrote: > > On Wed, 9 Aug 2023 at 10:34, Tom Lane wrote: > >> I agree with Peter: let's use the names in the protocol document > >> with a single prefix. I've got mixed feelings about whether that prefix > >> should have an underscore, though. > > > > Well, we're getting closer :) > > I'm +0.5 for the underscore. We use CamelCase_With_UnderScores in other places (PgStat_Counter, AtEOXact_PgStat_Database). It's not pretty, and at times it's not comfortable to type, but I think it will be less ugly here than in those other places (particularly because there'll be a single underscore), and I also agree that readability is better with the underscore than without. So, I'm also +0.5 on having them, much as it displeases Robert. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/