Thread: html table output of table space

html table output of table space

From
pierre@desertmoon.com
Date:
All,

  Before I spend my time working up a perl tool to html-ize the output
  of the \d command to document in html my data dictionary, is there

  a) Already a tool in existance?

  -or-

  b) A way to get the output of \d in html table format?


  Thanks.

  -=pierre

Re: [SQL] html table output of table space

From
Bruce Momjian
Date:
> All,
>
>   Before I spend my time working up a perl tool to html-ize the output
>   of the \d command to document in html my data dictionary, is there
>
>   a) Already a tool in existance?
>
>   -or-
>
>   b) A way to get the output of \d in html table format?

psql has an html mode, so you can use that, and run the query that
psql.c has for \d.

The only reason \d doesn't work work with the html mode automatically is
that we do some special handling for varlena types in psql.c.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026