From: | Vik Fearing <vik(at)postgresfriends(dot)org> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal \gcsv |
Date: | 2020-03-01 14:49:32 |
Message-ID: | 3ac353a3-730d-f945-cd53-fc3ab711d4fd@postgresfriends.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 01/03/2020 13:29, Pavel Stehule wrote:
> so 29. 2. 2020 v 11:34 odesílatel Vik Fearing <vik(at)postgresfriends(dot)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
I snuck this into the commitfest that starts today while no one was
looking. https://commitfest.postgresql.org/27/2503/
And I added myself as reviewer.
--
Vik Fearing
From | Date | Subject | |
---|---|---|---|
Next Message | legrand legrand | 2020-03-01 14:55:36 | Re: Planning counters in pg_stat_statements (using pgss_store) |
Previous Message | Amit Langote | 2020-03-01 14:21:29 | Re: d25ea01275 and partitionwise join |