From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Formating psql query output [RESOLVED]
Date: Mon, 19 Jul 2021 11:57:25 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.2107191156140.13362@salmo.appl-ecosys.com> (raw)
In-Reply-To: <BL0PR02MB47060457028EC865DB81CEB2FCE19@BL0PR02MB4706.namprd02.prod.outlook.com>
References: <alpine.LNX.2.20.2107191021180.13362@salmo.appl-ecosys.com>
<BL0PR02MB47060457028EC865DB81CEB2FCE19@BL0PR02MB4706.namprd02.prod.outlook.com>
On Mon, 19 Jul 2021, David Santamauro wrote:
> echo 'select 1,2,3,4;' | psql -At -F'|'
> 1|2|3|4
>
> -A Switches to unaligned output mode. (The default output mode is aligned.) This is equivalent to \pset format unaligned.
> -t Turn off printing of column names and result row count footers, etc. This is equivalent to \t or \pset tuples_only.
> -F Use separator as the field separator for unaligned output. This is equivalent to \pset fieldsep or \f.
David,
> HTH
Sure enough, it does. And I learned more on using psql options.
Thank you very much,
Rich
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: rshepard@appl-ecosys.com
Subject: Re: Formating psql query output [RESOLVED]
In-Reply-To: <alpine.LNX.2.20.2107191156140.13362@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2107191021180.13362@salmo.appl-ecosys.com> <BL0PR02MB47060457028EC865DB81CEB2FCE19@BL0PR02MB4706.namprd02.prod.outlook.com> <alpine.LNX.2.20.2107191156140.13362@salmo.appl-ecosys.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