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 1hbnO4-0005tA-5F for pgsql-docs@arkaria.postgresql.org; Fri, 14 Jun 2019 14:41:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbnO3-0003Q4-0x for pgsql-docs@arkaria.postgresql.org; Fri, 14 Jun 2019 14:41:03 +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 1hbnO2-0003LL-LF for pgsql-docs@lists.postgresql.org; Fri, 14 Jun 2019 14:41:02 +0000 Received: from smtp.outgoing.loopia.se ([194.9.95.112]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbnNz-00040h-Be for pgsql-docs@lists.postgresql.org; Fri, 14 Jun 2019 14:41:01 +0000 Received: from s554.loopia.se (localhost [127.0.0.1]) by s554.loopia.se (Postfix) with ESMTP id 0B4951F17408 for ; Fri, 14 Jun 2019 16:40:55 +0200 (CEST) Received: from s498.loopia.se (unknown [172.21.200.96]) by s554.loopia.se (Postfix) with ESMTP id E13E17958CC; Fri, 14 Jun 2019 16:40:54 +0200 (CEST) Received: from s472.loopia.se (unknown [172.21.200.36]) by s498.loopia.se (Postfix) with ESMTP id DA8A9449457; Fri, 14 Jun 2019 16:40:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s645.loopia.se ([172.22.191.5]) by s472.loopia.se (s472.loopia.se [172.22.190.12]) (amavisd-new, port 10024) with LMTP id aI2UStl7hTch; Fri, 14 Jun 2019 16:40:54 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 85.228.38.16 Received: from [192.168.1.69] (c-1026e455.027-294-73746f71.bbcust.telenor.se [85.228.38.16]) (Authenticated sender: daniel@yesql.se) by s645.loopia.se (Postfix) with ESMTPSA id 217E013BF384; Fri, 14 Jun 2019 16:40:54 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: SPITupleTable members missing in docs From: Daniel Gustafsson In-Reply-To: <5148.1560521723@sss.pgh.pa.us> Date: Fri, 14 Jun 2019 16:40:51 +0200 Cc: pgsql-docs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0D19F836-B743-4340-B6A2-F148CA3DD1F0@yesql.se> <5148.1560521723@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 14 Jun 2019, at 16:15, Tom Lane wrote: >=20 > Daniel Gustafsson writes: >> Commit 3d13623d75d3206c8f009353415043a191ebab39 added the next and = subid fields >> to the SPITupleTable struct, but they never made it into the = documentation. >> While these are internal members, we already document several other = internal >> ones (with a sentence on not using them) so add these too to make the >> documentation match reality. >=20 >> Since this makes the number of internal members far outnumber the = public ones, >> also reword the statement about which fields can be used to try and = improve >> clarity. >=20 > I wonder if we should just show the public fields in the docs? = Something > like >=20 > typedef struct > { > ... > TupleDesc tupdesc; /* row descriptor */ > HeapTuple *vals; /* rows */ > ... > } SPITupleTable; >=20 > (The struct contains additional fields that should not be touched > by users of SPI.) >=20 > Not wedded to that, but it would reduce the risks of future mistakes > of this same sort. Yeah, that=E2=80=99s clearly an alternative. If we go down this route, = then perhaps the docs should be swept for other instances (if any) and handle them = all to keep things consistent? (and yes, I volunteer if we want to opt for = that.) cheers ./daniel=