pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-docs@postgresql.org
Subject: Re: Plug in docs
Date: Sun, 16 Dec 2007 12:59:52 -0500
Message-ID: <27293.1197827992@sss.pgh.pa.us> (raw)
In-Reply-To: <1197826806.12912.37.camel@ebony.site>
References: <200712160812.lBG8C5x15519@momjian.us>
	<47654B3A.7030206@commandprompt.com>
	<1197826806.12912.37.camel@ebony.site>

Simon Riggs <simon@2ndquadrant.com> writes:
> On Sun, 2007-12-16 at 07:58 -0800, Joshua D. Drake wrote:
>> Bruce Momjian wrote:
>>> I think these are
>>> documented-in-the-source-code type issues.
>> 
>> If they are an API they need to be documented. Code is poor (even well 
>> documented code) substitute for good old fashioned docs.

> Agreed.

I don't agree --- I think the above opinion is rooted in closed-source
documentation practices where you *have to* document things without
reference to the code.  In an open-source situation the ground rules
are completely different, and we shouldn't make unnecessary work for
ourselves.

In particular, for all three of the hooks at hand, it would be out of
the question for anyone to make real use of them without a great deal
of code-reading.  There is never going to be extensive documentation
in the SGML manual of all internal planner APIs, for example, and yet
you're not going to accomplish anything very useful with either of
the planner hooks unless you understand that stuff.

Also, if you think any of these are APIs in the sense that we promise
never to change them, you're mistaken.  (Again, it's not so much the
hook itself that's the problem, as all the stuff that the hooked-in
function needs to know about.)

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <27293.1197827992@sss.pgh.pa.us>
Permalink:  ../27293.1197827992@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27293.1197827992@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com, jd@commandprompt.com, bruce@momjian.us
  Subject: Re: Plug in docs
  In-Reply-To: <27293.1197827992@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox