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 1hlxxt-0004Gk-Ei for pgsql-docs@arkaria.postgresql.org; Fri, 12 Jul 2019 16:00:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hlxxs-0008Ak-AO for pgsql-docs@arkaria.postgresql.org; Fri, 12 Jul 2019 16:00:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlxxr-00084f-VR for pgsql-docs@lists.postgresql.org; Fri, 12 Jul 2019 16:00:04 +0000 Received: from courriel.mines-paristech.fr ([77.158.173.149] helo=antispam-1.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlxxo-00007E-S3 for pgsql-docs@lists.postgresql.org; Fri, 12 Jul 2019 16:00:02 +0000 Received: from smtp-4.mines-paristech.fr (smtp-4.ensmp.fr [77.158.173.143]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id ACEB2560E4; Fri, 12 Jul 2019 17:59:57 +0200 (CEST) Received: from pc43.home (agrenoble-653-1-58-243.w92-129.abo.wanadoo.fr [92.129.4.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-4.mines-paristech.fr (Postfix) with ESMTPSA id 50C772C01F7; Fri, 12 Jul 2019 17:59:57 +0200 (CEST) Date: Fri, 12 Jul 2019 17:59:56 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: Tom Lane cc: Daniel Gustafsson , pgsql-docs@lists.postgresql.org, Michael Paquier Subject: Re: SPITupleTable members missing in docs In-Reply-To: <4584.1562943879@sss.pgh.pa.us> Message-ID: References: <0D19F836-B743-4340-B6A2-F148CA3DD1F0@yesql.se> <4584.1562943879@sss.pgh.pa.us> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrhedtgdelgecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffujgfkfhgfgggtsehttdertddtredvnecuhfhrohhmpefhrggsihgvnhcuvefqgffnjffquceotghovghlhhhosegtrhhirdgvnhhsmhhprdhfrheqnecukfhppeelvddruddvledrgedrvdegfeenucfrrghrrghmpehmohguvgepshhmthhpohhuth X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, >> To take into account Tom's comment, I'd suggest a middle ground by >> commenting a public and private part explicitely in the struct, >> 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 :-(. Argh, I did not notice this tiny but relevant detail. > 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. Indeed. SPI-dependent extensions are likely recompiled between major version, so a reordering should not cause significant problems. This mean that a simple doc patch is turned into a code patch. -- Fabien.