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 19:11:48
Message-ID: ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/19/21 11:58 AM, Rich Shepard wrote:
> On Mon, 19 Jul 2021, Adrian Klaver wrote:
>
>> Is there a reason you can't just restrict the query to the columns you
>> want?
>
> Adrian,
>
> As far as I know I need to specify FK and PK columns when tables are
> joined;

You need them in the JOIN and/or WHERE sections, but not necessarily in
the field list in the SELECT portion.

> I don't need those key columns in the output.
>
> Thanks,
>
> Rich
>
>

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2021-07-19 19:12:02 Re: Formating psql query output
Previous Message Rob Sargent 2021-07-19 19:11:09 Re: Formating psql query output