Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0F5476324C1 for ; Sat, 12 Jun 2010 13:02:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 09025-05 for ; Sat, 12 Jun 2010 16:02:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 7BA9D632369 for ; Sat, 12 Jun 2010 13:02:02 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o5CG1wL21141; Sat, 12 Jun 2010 12:01:58 -0400 (EDT) From: Bruce Momjian Message-Id: <201006121601.o5CG1wL21141@momjian.us> Subject: Re: Cognitive dissonance In-Reply-To: <1276357344.10097.9.camel@vanquo.pezone.net> To: Peter Eisentraut Date: Sat, 12 Jun 2010 12:01:58 -0400 (EDT) CC: Tom Lane , John Gage , PostgreSQL - General , =?ISO-8859-1?Q?Robert_Gravsj=F6?= X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1276358518-22265-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/545 X-Sequence-Number: 164082 --ELM1276358518-22265-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Peter Eisentraut wrote: > On l?r, 2010-06-12 at 09:10 -0400, Tom Lane wrote: > > Peter Eisentraut writes: > > > On l?r, 2010-06-12 at 11:18 +0200, John Gage wrote: > > >> A one file html version would be a godsend. > > > > > I've committed a build target for that now. Use 'make postgres.html' in > > > doc/src/sgml/. > > > > Huh, is that actually worth anything? How many browsers will open it > > without crashing, or will navigate the page with decent performance > > if they do manage to open it? > > Text output is generated by going through HTML. I haven't figured out > the best way to do the second step yet. We use lynx for INSTALL and > HISTORY, but the results for this big file aren't very clean. > > Browsers seem to handle the file OK, btw. Well, I tried lynx and the output looked fine to me, so I applied the attached patch to allow single-page text output. You can see the HTML and text file results here: http://momjian.us/expire/ The new rule name is postgres.txt. The file size are: 7,789,730 postgres.html 5,155,672 postgres.txt -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. + --ELM1276358518-22265-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" Index: doc/src/sgml/Makefile =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/Makefile,v retrieving revision 1.145 diff -c -c -r1.145 Makefile *** doc/src/sgml/Makefile 12 Jun 2010 15:42:44 -0000 1.145 --- doc/src/sgml/Makefile 12 Jun 2010 15:57:31 -0000 *************** *** 108,113 **** --- 108,117 ---- postgres.html: postgres.sgml $(ALLSGML) stylesheet.dsl $(JADE.html.call) -V nochunks -V rootchunk -V '(define %root-filename% #f)' -V '(define use-output-dir #f)' -i include-index $< + # single-page text + postgres.txt: postgres.html + $(LYNX) -force_html -dump -nolist -stdin $< > $@ + HTML.index: postgres.sgml $(ALMOSTALLSGML) stylesheet.dsl @$(MKDIR_P) html $(JADE.html.call) -V html-index $< --ELM1276358518-22265-0_--