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 1qWQvx-003FKI-I8 for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Aug 2023 00:32:18 +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 1qWQvu-00B0jw-8h for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Aug 2023 00:32:14 +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 1qWQvs-00B0e1-Ex for pgsql-hackers@lists.postgresql.org; Thu, 17 Aug 2023 00:32:14 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qWQvo-000ZKa-NJ for pgsql-hackers@lists.postgresql.org; Thu, 17 Aug 2023 00:32:12 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id AB2165C009D; Wed, 16 Aug 2023 20:32:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 16 Aug 2023 20:32:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm1; t=1692232326; x=1692318726; bh=4b L5NgXovkq2lHy7sW32gXoGLIg9FMXUVmkL1qz7G8Y=; b=eyHEbZMPuVILnaaxxa ahY4IocTqPh1FLVtGMPHWoXbVFkKwXsL9zJz7ANeTbKgMG6831ANaMntcM4Z8Pyx tG3BU00jrbCAFH2iiAm91SgrX2ODGaesX761+3gFjWRbHLpzHMowDsrIqC5B0Rrp px7tmEgZlC0jtwC78J7R97grXXNpRST7okT6iQOi5u7jWLzgrvxHTRmAmhzPtcQc 8Z6xpoQnr5ahCmNxA0BH7EboOJjq15WEb2omk+cJa62LLcimxrajHNZrKe4wleZA GHDJZVnLv3hG+X8Re+RMSqVoq+Ssv4V8D+rQAwOVHPB1k4G0y+RIn5lJ07qCPHOS yr5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=fm1; t=1692232326; x=1692318726; bh=4bL5NgXovkq2l Hy7sW32gXoGLIg9FMXUVmkL1qz7G8Y=; b=dyU7UwImE45SQ/2pZihIx4SHqarxB lCNqWtXa97Ek2/0Q2MUPpI5KdoPjUG4WrzrJgteYuwIwSnn8Q3YOougnd8Hrn7dq 2uCCeviLAFzYEgxlp/+1QRN8qZeJD0UZvMVWqsu8GG5xwc2q44VE61vEiVUHVofd X9YB3ib7te5IYsPR+dhoyZs4PsW0JpbaYJHhg/k2mX7DmPIY0jvVgj54Fr9XWTS7 uSYFpyJDz3LbA1Ku6XG6PZBUjZ5/lAm8wEqkfN2MhFZtNGLm0N0rW+0VIKoWuYZj xokp/k87AAb7bmznLYShFLp9RR3iEeRhGi+Ky4ZqJz0EWrkO29qEPxVKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddutddgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Aug 2023 20:32:00 -0400 (EDT) Date: Thu, 17 Aug 2023 09:31:55 +0900 From: Michael Paquier To: Nathan Bossart Cc: Alvaro Herrera , Tatsuo Ishii , davecramer@gmail.com, tgl@sss.pgh.pa.us, peter@eisentraut.org, robertmhaas@gmail.com, smithpb2250@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Using defines for protocol characters Message-ID: References: <20230815214007.ptksp5nmtwt3yrjn@alvherre.pgsql> <20230816192956.GA2908487@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Wc0VB/OEg8uiKS+U" Content-Disposition: inline In-Reply-To: <20230816192956.GA2908487@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Wc0VB/OEg8uiKS+U Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 16, 2023 at 12:29:56PM -0700, Nathan Bossart wrote: > I moved the definitions out to a separate file in v6. Looks sensible seen from here. This patch is missing the installation of protocol.h in src/tools/msvc/Install.pm for MSVC. For pqcomm.h, we are doing that: lcopy('src/include/libpq/pqcomm.h', $target . '/include/internal/libpq/') || croak 'Could not copy pqcomm.h'; So adding two similar lines for protocol.h should be enough (I assume, did not test). In fe-exec.c, we still have a few things for the type of objects to work on: - 'S' for statement. - 'P' for portal. Should these be added to protocol.h? They are part of the extended protocol. The comment at the top of PQsendTypedCommand() mentions 'C' and 'D', but perhaps these should be updated to the object names instead? pqFunctionCall3(), for PQfn(), has a few more hardcoded characters for its status codes. I'm OK to do things incrementally so it's fine by me to not add them now, just noticing on the way what could be added to this new header. -- Michael --Wc0VB/OEg8uiKS+U Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmTdansACgkQnvQgOdby QH0wCxAAhdyK9VrUyXsRxS7kwk5v79lpHgPHU+ykTYPUCr22zhJqJIKSg1K3swKY N7ji41oXJPV/dn3pSnqgFuaER3LZiv3qCHfTCEEkKQa2Lz1X7RyMz4O1oLt8cGQ6 7t2+9/ZUI4vX/Sq4c1ikdxu+Dmz+OUU0MTKbC/kWHc3S+dWwgF2Acnqo5j/nazjc JJt2hEk3CFMhsl79LdUv9OQ/yfSWDMjf8XnWkWomcf5gI4ccUx7+DeQ86tA7JZQg UZOoYgUNZYG2QIsDCJY5DbPVDohvP0nMU9XDngzws4+mIR+hT3rrYoyY5aMl+WCv MD/cFmsIK3rOCiwFtloFVUIhlAGCFa/9+9ZUHpLKly3r5ZxoRfqtfRk9JJ60JKbk 1wo6Eu09yjPMA13RiEH5Ju7HrQgBoNIc/PARnXB5Ms4CGKmXK0LS+cEyOyc2NzA+ 2lj6rQNKInDO5+gLPotiI6tQ49g8IBHqbxwcrhaBPaxUfUiZ0uwDeHHlIy6o6vW0 8ygxcB5+d2I3PflAiPOy7Znc2TtwqgqSK41+8gigCRjkCcQsmPdlg4yhV5Mz6Raa g1YDx2blyDNVWXO0nQioOFfN+ZrC/qUXV3dngtSbtYWWvzqE2jg4KgOs3yKJybGs DNxF3HEcMa6MKsoddXql/X6kI5xNVr8UNNZyoPtPNiNDDYWcGbs= =zA7N -----END PGP SIGNATURE----- --Wc0VB/OEg8uiKS+U--