Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJYqM-0005yg-3U for pgsql-docs@arkaria.postgresql.org; Wed, 11 Sep 2013 01:03:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VJYqL-0002WK-HY for pgsql-docs@arkaria.postgresql.org; Wed, 11 Sep 2013 01:03:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJYqJ-0002TD-7f for pgsql-docs@postgresql.org; Wed, 11 Sep 2013 01:03:39 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VJYqF-0002Js-Vu for pgsql-docs@postgresql.org; Wed, 11 Sep 2013 01:03:38 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VJYqC-0007Di-Tg; Tue, 10 Sep 2013 21:03:32 -0400 Date: Tue, 10 Sep 2013 21:03:32 -0400 From: Bruce Momjian To: Josh Kupershmidt Cc: Peter Eisentraut , Magnus Hagander , pgsql-docs Subject: Re: old testlo example code Message-ID: <20130911010332.GM16378@momjian.us> References: <1360895431.20348.4.camel@vanquo.pezone.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Tue, Feb 26, 2013 at 08:18:40PM -0700, Josh Kupershmidt wrote: > On Thu, Feb 14, 2013 at 7:30 PM, Peter Eisentraut wrote: > > On Sat, 2013-01-05 at 15:14 +0100, Magnus Hagander wrote: > >> ISTM we should either remove the example programs and replace them > >> with just a reference, or find a way to include the source code into > >> the documentation with some kind of include statement instead of > >> haivng a copy of it. That should be done the same way for all the > >> example programs, not just the testlo ones of course. > >> > >> Not sure if it's possible to create such an include though - someone > >> who knows our toolchain better can hopefully comment on that? > > > > I've been looking into this. It's not easily possible with the current > > SGML setup. (XInclude with XML would probably work.) So for now it > > would be best if someone could just sync up the docs with the code until > > we figure out a better way. > > OK, here's a patch to update the example code in the docs to match the > example programs in ./src/test/examples . In addition to the testlo > example discussed, I updated the libpq examples as well. There's a > fair amount of whitespace churn in the diff, though I assume that's > from a pgindent change of the test code at some point. Patch applied, and tabs converted to 4 spaces. Thanks. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs