Re: Formating psql query output [RESOLVED]

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Formating psql query output [RESOLVED]
Date: 2021-07-19 18:57:25
Message-ID: alpine.LNX.2.20.2107191156140.13362@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

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