Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E92F49F98CB for ; Mon, 3 Sep 2007 21:29:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 93317-04 for ; Mon, 3 Sep 2007 21:29:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 436349F964C for ; Mon, 3 Sep 2007 21:29:19 -0300 (ADT) Received: (qmail invoked by alias); 04 Sep 2007 00:29:15 -0000 Received: from xdsl-87-79-227-246.netcologne.de (EHLO colt.pezone.net) [87.79.227.246] by mail.gmx.net (mp003) with SMTP; 04 Sep 2007 02:29:15 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX199SLVytvR9xNUVunCfQvIh3FZNnyIx4XT/DMZHnG t6ZX8RL1HP1yDO From: Peter Eisentraut To: pgsql-docs@postgresql.org Subject: Re: Code examples Date: Tue, 4 Sep 2007 02:29:28 +0200 User-Agent: KMail/1.9.5 Cc: Decibel! , Tom Lane , Oleg Bartunov , Pavel Stehule References: <162867790709021328i7771aa9jfe79268bccbf123d@mail.gmail.com> <18259.1188773171@sss.pgh.pa.us> <20070903171858.GV38801@decibel.org> In-Reply-To: <20070903171858.GV38801@decibel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709040229.29591.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/2 X-Sequence-Number: 4400 Decibel! wrote: > Couldn't we come up with some method of specifying code examples in > the docs and then having the doc build process actually run those > examples and put that into the doc build? While that seems very tempting, I think you need manual review to check whether the examples make didactic sense. For example, I seem to recall that we had to change some examples about how operator precendence or type casting gives unexpected results several times over the years because the unexpected results had turned into expected results in response to new features. If you'd just produce the documentation examples automatically, you'd be left with quite embarrassing nonsense in there. -- Peter Eisentraut http://developer.postgresql.org/~petere/