Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z10Dq-0006Ws-Je for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Jun 2015 22:36:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z10Dp-00070B-Sn for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Jun 2015 22:36:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z10Dn-0006w4-KC for pgsql-bugs@postgresql.org; Fri, 05 Jun 2015 22:36:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z10Dk-0004ya-HI for pgsql-bugs@postgresql.org; Fri, 05 Jun 2015 22:36:14 +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 t55Ma5O2025574; Fri, 5 Jun 2015 18:36:05 -0400 From: Tom Lane To: Alvaro Herrera cc: christianr@fastmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #13404: Docs do not mention "access/htup_details.h" for C functions using heap_form_tuple In-reply-to: <20150605215022.GA133018@postgresql.org> References: <20150605195349.22140.41708@wrigleys.postgresql.org> <20150605215022.GA133018@postgresql.org> Comments: In-reply-to Alvaro Herrera message dated "Fri, 05 Jun 2015 18:50:22 -0300" Date: Fri, 05 Jun 2015 18:36:05 -0400 Message-ID: <25573.1433543765@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera writes: > christianr@fastmail.com wrote: >> Is this a bug, or did I miss something? > Hmm. So there are two ways to fix this bug. One is to #include > "access/htup_details.h" in funcapi.h as you propose; the other is to > change the docs to state that heap_form_tuple is in htup_details and you > need to include that separately if you want it. > I could go both ways, but seeing as we changed this in 9.3 and many > people since then first complained and then tweaked their code to cope > by #including htup_details.h, I think changing the docs is the reasonable > option. You can write functions without using heap_form_tuple, after > all. Yeah. I don't think anyone's ever felt that that part of the documentation was more authoritative than the code (especially not where it's merely reporting an old and rather messy situation). And as you say, if we were going to change the code, the time for that was 2 releases back. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs