Re: psql -et - Mailing list pgsql-general

From nolan@celery.tssi.com
Subject Re: psql -et
Date
Msg-id 20030724160801.11379.qmail@celery.tssi.com
Whole thread Raw
In response to Re: psql -e  (Dennis Gearon <gearond@cvc.net>)
List pgsql-general
>
> A macro for the print, which substitutes:
>
>     print()
>     fflush()
>
> for a bare print is a good idea.

In addition to print(), fputs() is also used in several places.

Most of the \ commands appear to have their own formatting sections,
so changing them to use a macro or possibly a function would be desirable,
and a function would make separating terminal and \o output into
independent streams easier.

It may get even more complicated when considering laTex and HTML output.

As long as features are on the table, would there be any interest in
having an option to output in XML?  (This may raise a number of XML
design questions, though, and I'm just starting to read 'XML in a Nutshell'.)
--
Mike Nolan

pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: psql -e
Next
From: Greg Stark
Date:
Subject: Postgres unique index checking and atomic transactions