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 1hbmzI-0004Ko-QS for pgsql-docs@arkaria.postgresql.org; Fri, 14 Jun 2019 14:15:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbmzH-0002dI-IF for pgsql-docs@arkaria.postgresql.org; Fri, 14 Jun 2019 14:15:27 +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 1hbmzH-0002cz-7r for pgsql-docs@lists.postgresql.org; Fri, 14 Jun 2019 14:15:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbmzF-0003lt-3a for pgsql-docs@lists.postgresql.org; Fri, 14 Jun 2019 14:15:26 +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 x5EEFNxN005149; Fri, 14 Jun 2019 10:15:24 -0400 From: Tom Lane To: Daniel Gustafsson cc: pgsql-docs@lists.postgresql.org Subject: Re: SPITupleTable members missing in docs In-reply-to: <0D19F836-B743-4340-B6A2-F148CA3DD1F0@yesql.se> References: <0D19F836-B743-4340-B6A2-F148CA3DD1F0@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Fri, 14 Jun 2019 12:55:20 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5147.1560521723.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Jun 2019 10:15:23 -0400 Message-ID: <5148.1560521723@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Daniel Gustafsson writes: > Commit 3d13623d75d3206c8f009353415043a191ebab39 added the next and subid= fields > to the SPITupleTable struct, but they never made it into the documentati= on. > While these are internal members, we already document several other inte= rnal > ones (with a sentence on not using them) so add these too to make the > documentation match reality. > 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 impr= ove > clarity. I wonder if we should just show the public fields in the docs? Something like typedef struct { ... TupleDesc tupdesc; /* row descriptor */ HeapTuple *vals; /* rows */ ... } SPITupleTable; = (The struct contains additional fields that should not be touched by users of SPI.) Not wedded to that, but it would reduce the risks of future mistakes of this same sort. regards, tom lane