Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlx6V-00026w-NP for pgsql-docs@arkaria.postgresql.org; Fri, 12 Jul 2019 15:04:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hlx6U-0001ci-Al for pgsql-docs@arkaria.postgresql.org; Fri, 12 Jul 2019 15:04:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlx6U-0001ZF-1f for pgsql-docs@lists.postgresql.org; Fri, 12 Jul 2019 15:04:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlx6R-0005yM-Uy for pgsql-docs@lists.postgresql.org; Fri, 12 Jul 2019 15:04:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6CF4d5G004585; Fri, 12 Jul 2019 11:04:39 -0400 From: Tom Lane To: Fabien COELHO cc: Daniel Gustafsson , pgsql-docs@lists.postgresql.org, Michael Paquier Subject: Re: SPITupleTable members missing in docs In-reply-to: References: <0D19F836-B743-4340-B6A2-F148CA3DD1F0@yesql.se> Comments: In-reply-to Fabien COELHO message dated "Fri, 12 Jul 2019 16:56:31 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4583.1562943879.1@sss.pgh.pa.us> Date: Fri, 12 Jul 2019 11:04:39 -0400 Message-ID: <4584.1562943879@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fabien COELHO writes: > To take into account Tom's comment, I'd suggest a middle ground by > commenting a public and private part explicitely in the struct, something > like: > typedef struct { > /* PUBLIC members to be used by callers ... */ > ... > ... > /* PRIVATE members, not intended for external usage ... */ > ... > } ... ; One problem is that the members we've retroactively decided are "public" are in the middle of the struct :-(. But it occurs to me that there's no good reason we couldn't re-order the members, as long as we only do so on HEAD and not in released versions. That would make it a bit less inconsistent and easier to add labels such as you suggest. > Note: I'm probaly not a member of the pgdoc list, so the delivery may fail > there. FYI, I believe the current policy is that as long as you're subscribed to at least one PG list you can post to any of them. regards, tom lane