From: Rob Sargent <robjsargent@gmail.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Formating psql query output
Date: Mon, 19 Jul 2021 12:59:16 -0600
Message-ID: <59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.20.2107191149120.13362@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2107191021180.13362@salmo.appl-ecosys.com>
<DM8PR09MB634240AB2B28E3EED80F6F48F7E19@DM8PR09MB6342.namprd09.prod.outlook.com>
<alpine.LNX.2.20.2107191149120.13362@salmo.appl-ecosys.com>
> On Jul 19, 2021, at 12:53 PM, Rich Shepard <rshepard@appl-ecosys.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, rshepard@appl-ecosys.com
Subject: Re: Formating psql query output
In-Reply-To: <59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com>
References: <alpine.LNX.2.20.2107191021180.13362@salmo.appl-ecosys.com> <DM8PR09MB634240AB2B28E3EED80F6F48F7E19@DM8PR09MB6342.namprd09.prod.outlook.com> <alpine.LNX.2.20.2107191149120.13362@salmo.appl-ecosys.com> <59681104-A02E-46C3-8402-9A5F13DF9AE2@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox