Re: proposal \gcsv - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal \gcsv
Date
Msg-id CAFj8pRCezHjPxGzppkWnvZ_=xz=z5BkhBFaNDYCkRePmxbV17A@mail.gmail.com
Whole thread Raw
In response to Re: proposal \gcsv  (Vik Fearing <vik@postgresfriends.org>)
Responses Re: proposal \gcsv  (Vik Fearing <vik@postgresfriends.org>)
List pgsql-hackers


so 29. 2. 2020 v 11:34 odesílatel Vik Fearing <vik@postgresfriends.org> napsal:
On 29/02/2020 06:43, Pavel Stehule wrote:
> Hi
>
> I would to enhance \g command about variant \gcsv
>
> proposed command has same behave like \g, only the result will be every
> time in csv format.
>
> It can helps with writing psql macros wrapping \g command.
>
> Options, notes?

But then we would need \ghtml and \glatex etc.  If we want a shortcut
for setting a one-off format, I would go for \gf or something.

    \gf csv
    \gf html
    \gf latex

ok. I implemented \gf. See a attached patch

Regards

Pavel


-1 on \gcsv
--
Vik Fearing
Attachment

pgsql-hackers by date:

Previous
From: Ivan Panchenko
Date:
Subject: Re[2]: bool_plperl transform
Next
From: Pavel Stehule
Date:
Subject: Re: proposal \gcsv