Re: Formating psql query output

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Formating psql query output
Date: 2021-07-19 17:49:34
Message-ID: 4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/19/21 10:33 AM, Rich Shepard wrote:
> Until I finish building the python/tkinter/psycopg2 front end to my
> business
> tracking tool I continue to work using the psql shell.'
>
> I have a working .sql script that reports my contacts between two dates;
> the
> script returns more columns than I want included in the report. I want to
> pipe the output through an awk script to extract, in order, the columns I
> need. I'm stuck at the point of defining options to psql.

Is there a reason you can't just restrict the query to the columns you want?

>
> TIA,
>
> Rich
>
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2021-07-19 18:01:22 Re: Formating psql query output
Previous Message David Santamauro 2021-07-19 17:42:03 Re: Formating psql query output