Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5YTf-00014x-39 for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 18:58:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5YTe-0000ju-3L for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 18:58:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5YTd-0000iJ-Qd for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 18:58:53 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5YTb-0002cY-PK for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 18:58:53 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id E33DC2A0107 for ; Mon, 19 Jul 2021 11:58:49 -0700 (PDT) Date: Mon, 19 Jul 2021 11:58:49 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Formating psql query output In-Reply-To: <4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com> Message-ID: References: <4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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; I don't need those key columns in the output. Thanks, Rich