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 1qTky7-00AZH3-C1 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Aug 2023 15:19:27 +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 1qTky5-006IpY-N3 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Aug 2023 15:19:26 +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 1qTky5-006IpP-E7 for pgsql-hackers@lists.postgresql.org; Wed, 09 Aug 2023 15:19:25 +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 1qTky3-001PsZ-DS for pgsql-hackers@lists.postgresql.org; Wed, 09 Aug 2023 15:19:24 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 809BC5C010F; Wed, 9 Aug 2023 11:19:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 09 Aug 2023 11:19:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm2; t=1691594362; x=1691680762; bh=FyuvtBt9UkvoI4/JISH3eiDYj dOjj4ZWTLTgv5qhZUk=; b=QQRqwV2PgmU7wXn2T2IbMprSCrUE0U6Vr0cspIGr0 8LkiWAhLhiafn0eW3KRszOPvIQeSnvrAMQ/+jcs/V3hn8WWNFU1M1TbONHFYc4Ck NZgVj/FjiEDH62IkGJzlout3t+yeZ+XWieQcOVz7hfAF70E83T2CJAkKGcA8HbPs nmvSKSWsYUO715VuNDiT4PRoq4o+X2EEcLAefc3k+pFEZuVnum72OPZL1SxqRyd0 jL5mfq+Icc7x5nyaHSOfHAgF3VNEC2Q5PBZHX3nzOc0BunpR3D57ifvppFmVVZ/8 YWdtCH3xzrisXP5RJTD7zm5khrGss+rn3mKmrKKPEbBzA== 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 :references: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= 1691594362; x=1691680762; bh=FyuvtBt9UkvoI4/JISH3eiDYjdOjj4ZWTLT gv5qhZUk=; b=J5sKd1ZQPlER64c2AzTgpudEGnovhPy97Xu1rNhOszkZySwEI3w ndsgpBK0PZycjAvslEfM0kk7VBeo2Z5p0QTVStdG03Go7i+lK5GJM/xTnaqqUADY h7t4zi2JG1c1NDSx77O513v+AsTTpgxiXh48XG2jChYwzQZyBn8ORPihyLBDzxon /lxXXYsX2mti83McVifX610LKBU8+5GzS5Y4Ml/GN52X5W/hx6JJiwuSdb9WgfhL 5aY5dPVZiBE4sO9OmohYqI80dLln56FOxnJGvv2pkUX1vy7e8/sE/NhlHRVSY94F urJQP2gQ1X1/A2d6tUVGD6MPA0CQsg26KOg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrleeggdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpeehieeuhfelleefieekheekgfekgefgveehuedvjeevtedt geelkeffffeikeeutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Aug 2023 11:19:21 -0400 (EDT) Message-ID: Date: Wed, 9 Aug 2023 17:19:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Using defines for protocol characters Content-Language: en-US To: Dave Cramer , Tatsuo Ishii Cc: nathandbossart@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, alvherre@alvh.no-ip.org, smithpb2250@gmail.com, pgsql-hackers@lists.postgresql.org References: <859245.1691438528@sss.pgh.pa.us> <20230807214714.GA1284531@nathanxps13> <20230808.074954.718352835768755597.t-ishii@sranhm.sra.co.jp> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 1. As was discussed, these definitions should go into src/include/libpq/pqcomm.h, not a new file. 2. I would prefer an underscore after PgMsg, like PqMsg_DescribeRequest, so it's easier to visually locate the start of the actual message name. 3. IMO, the names of the protocol messages in protocol.sgml are canonical. Your patch appends "Request" and "Response" in cases where that is not part of the actual name. Also, some messages are documented to go both ways, so this separation doesn't make sense strictly speaking. Please use the names as in protocol.sgml without augmenting them.