Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luJAB-0007DC-K8 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jun 2021 18:24:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1luJAA-0000LV-Fh for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jun 2021 18:24:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luJAA-0000LM-7r for pgsql-hackers@lists.postgresql.org; Fri, 18 Jun 2021 18:24:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luJA7-0000qq-K2 for pgsql-hackers@lists.postgresql.org; Fri, 18 Jun 2021 18:24:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15IIOAtf1233368; Fri, 18 Jun 2021 14:24:10 -0400 From: Tom Lane To: Alvaro Herrera cc: Boris Kolpackov , pgsql-hackers@lists.postgresql.org Subject: Re: Add version macro to libpq-fe.h In-reply-to: <202106181803.7ueuxvqv5jah@alvherre.pgsql> References: <202106181803.7ueuxvqv5jah@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 18 Jun 2021 14:03:41 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1233366.1624040650.1@sss.pgh.pa.us> Date: Fri, 18 Jun 2021 14:24:10 -0400 Message-ID: <1233367.1624040650@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > On 2021-Jun-18, Tom Lane wrote: >> I guess one unresolved question is whether we want to mention these in >> the SGML docs. I vote "no", because it'll raise the maintenance cost >> noticeably. But I can see an argument on the other side. > Well, if we do want docs for these macros, then IMO it'd be okay to have > them in libpq-fe.h itself rather than SGML. A one-line comment for each > would suffice: WFM. I'd sort of supposed that the symbol names were self-documenting, but you're right that a line or so of annotation improves things. regards, tom lane