Re: pgsql and asciidoc output
От | Bruce Momjian |
---|---|
Тема | Re: pgsql and asciidoc output |
Дата | |
Msg-id | 20140212141243.GA3242@momjian.us обсуждение исходный текст |
Ответ на | Re: pgsql and asciidoc output (Steve Atkins <steve@blighty.com>) |
Список | pgsql-general |
On Tue, Feb 11, 2014 at 03:32:32PM -0800, Steve Atkins wrote: > > On Feb 11, 2014, at 2:56 PM, Bruce Momjian <bruce@momjian.us> wrote: > > > Someone suggested that 'asciidoc' > > (http://en.wikipedia.org/wiki/AsciiDoc) would be a good output format > > for psql, similar to the existing output formats of html, latex, and > > troff. > > > > Would this be useful? > > Less so than Markdown[1], IMO. (Or CSV or xlsx, come to that.) > > There’s a long list of potentially useful output formats. How pluggable > is the output formatter? It isn't hard to add new formats --- you are passed a table structure and you printf the output. Here is the HTML format output function: http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/psql/print.c;h=79fc43eeda3330873acbea4ad1c555e051e81d00;hb=HEAD#l1394 I did the latex-longtable format for PG 9.3. The difficulty was understanding the latex-longtable format specification, not writing the C code. -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. +
В списке pgsql-general по дате отправления: