pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Formating psql query output
Date: Mon, 19 Jul 2021 12:11:48 -0700
Message-ID: <ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.2107191157370.13362@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2107191021180.13362@salmo.appl-ecosys.com>
	<4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com>
	<alpine.LNX.2.20.2107191157370.13362@salmo.appl-ecosys.com>

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.klaver@aklaver.com





view thread (16+ messages)  latest in thread

Message-ID: <ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.com>
Permalink:  ../ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.com/
Also on:    postgresql.org/message-id/ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
  Subject: Re: Formating psql query output
  In-Reply-To: <ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.com>
  References: <alpine.LNX.2.20.2107191021180.13362@salmo.appl-ecosys.com> <4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com> <alpine.LNX.2.20.2107191157370.13362@salmo.appl-ecosys.com> <ab964598-22ac-5bcf-bc4a-3ff7166de5f1@aklaver.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