Re: Cognitive dissonance - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Cognitive dissonance
Date
Msg-id 201006121601.o5CG1wL21141@momjian.us
Whole thread Raw
In response to Re: Cognitive dissonance  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Cognitive dissonance
List pgsql-general
Peter Eisentraut wrote:
> On l?r, 2010-06-12 at 09:10 -0400, Tom Lane wrote:
> > Peter Eisentraut <peter_e@gmx.net> 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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + None of us is going to be here forever. +
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 $<

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Cognitive dissonance
Next
From: Merlin Moncure
Date:
Subject: 2010 eclipse community survey