Re: Formating psql query output

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Formating psql query output
Date: 2021-07-19 18:59:16
Message-ID: 59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Jul 19, 2021, at 12:53 PM, Rich Shepard <rshepard(at)appl-ecosys(dot)com> wrote:
>
> On Mon, 19 Jul 2021, Basques, Bob (CI-StPaul) wrote:
>
>> -F separator
>> --field-separator=separator
>> Use separator as the field separator for unaligned output. This is equivalent to \pset fieldsep or \f.
>
> Bobb,
>
> I should have mentioned that I tried that. Without the --csv option the results
> have the headings and separator. With --csv the field separator is ignored
> regardless of postion within the command string.
Can we see on line of the csv output? The field with commas should be in quotes, no? You’ll have write a “real” csv importer. awk =F”\”*,*\”” might, heavy on the might.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2021-07-19 19:07:08 Re: Formating psql query output
Previous Message Rich Shepard 2021-07-19 18:58:49 Re: Formating psql query output