Re: csv format for psql

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Daniel Verite <daniel(at)manitou-mail(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: csv format for psql
Date: 2018-03-07 18:41:52
Message-ID: CAFj8pRD1GkPy2m0oSnT4Zuku4z2_P+6bWTc1XzE37f+9a_56KQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2018-03-07 19:40 GMT+01:00 Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>:

>
> Hello Pavel,
>
> psql --csv 'TABLE Stuff;' > stuff.csv
>>>
>>
>> There is commad -c and it should be used. The --csv options should not to
>> have a parameter. I don't like a idea to have more options for query
>> execution.
>>
>
> Yes, I agree and that is indeed what I meant, sorry for the typo. The
> cleaner example would be something like:
>
> psql --csv -c 'TABLE foo' > foo.csv
>
> With a -c to introduce the command.
>

ok :) it has sense now

Regards

Pavel

>
> --
> Fabien.
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2018-03-07 18:48:22 Re: csv format for psql
Previous Message Fabien COELHO 2018-03-07 18:40:49 Re: csv format for psql