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 1m5a7c-0005Zv-ET for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 20:44:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5a7a-0004hs-HJ for pgsql-general@arkaria.postgresql.org; Mon, 19 Jul 2021 20:44:14 +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 1m5a7a-0004hk-6k for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 20:44:14 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m5a7Y-0003SU-1m for pgsql-general@lists.postgresql.org; Mon, 19 Jul 2021 20:44:13 +0000 Received: by mail-oi1-x231.google.com with SMTP id w188so22132207oif.10 for ; Mon, 19 Jul 2021 13:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=1HVJHM1qqSkgyf4u++UZgWjQSRdPu2NvD4faYqNG50E=; b=hsy4+xpbJTsGjXivb4j6xVSpemTKWiYAiRElKJ+/GPSFqLv0ra3UqFEMmI0YK9LQuO bzz4lFc5Xe8WprybWlWW5/24oAXdCvLYeBuUB7CFl3s1vlhVU6hKoz75Aw02hE7P109V Aci9CPCiPonqOEa82PMWszb41AMFOnNi2VgQEcHbHf1pA+4/51oJcGI+69n1hspn1+No LFDTVO2+w2V+t+tgB1lndNJty8mtywjgoMxa1QUh8v9ncJSrSA3gRTs5uB+1W1gsfWcW +W8bm6uTES9U0PVrINRfv5Cz74Y19dEGa/ZS8p/M9Vg7UEf0XSKR0KbQzq2HZnwBqeOb oqtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=1HVJHM1qqSkgyf4u++UZgWjQSRdPu2NvD4faYqNG50E=; b=GaS/yF98VlfQ5d7ad9XRvjgswwD9+uF+qdMvd6yw5VwDqzlKT13ToUx5O3Qvl0WAWC ll4JZE/CW7tSigRxv0qxUFuNoFHuH3mXCdkrvQpPs9K+dRlwkrFe7Oei0OaH4pc8F47c xfeidculFAqJ9PySx1fykiO5gmJ3gALERwkk8IQpEAF7/X7FUYWtNOkoP6ZfxHfKNedv cHx/1vx1hehsKPHQ/gccAfKXzP6XwXI+E1skNdBLn8i0zt9ZEwc3m9hdFwpLAf19Ux3K oHGxAKRQekfgY7UdQntCAVvWDegdjJLBCFibAJERsj1lQuD7UHy04Qv2WJoi+nS2K6KL em5A== X-Gm-Message-State: AOAM533QLd3+EOblzm5jnFd9hIVyFsaDduAM9iX+Q6p8I3whqy7LXczu z+Sx7hGF3eVJKm9NYe58T6NFJWULml4= X-Google-Smtp-Source: ABdhPJwZpnuLBX+NCh5VqOV36JAfjY853RtFvsEKJHKSPebAsUtP8Z34iyA8oZji8WDSpCURFITUdw== X-Received: by 2002:aca:47d6:: with SMTP id u205mr18773500oia.44.1626727449361; Mon, 19 Jul 2021 13:44:09 -0700 (PDT) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id b10sm3975046oiy.4.2021.07.19.13.44.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jul 2021 13:44:08 -0700 (PDT) Subject: Re: Formating psql query output To: pgsql-general@lists.postgresql.org References: <4f001abb-7f6d-d098-ed10-1c5445c0ba1c@aklaver.com> From: Ron Message-ID: <3605db8f-3df2-8e8d-a7e1-4776f4f72e65@gmail.com> Date: Mon, 19 Jul 2021 15:44:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/19/21 3:05 PM, Rich Shepard wrote: > On Mon, 19 Jul 2021, Adrian Klaver wrote: > >> You need them in the JOIN and/or WHERE sections, but not necessarily in >> the field list in the SELECT portion. > > Adrian, > > I wondered about that and thought I needed to include them in the SELECT > phrase. If that were the case, then there would be no purpose in enumerating columns instead of writing "SELECT T1.*, T2.*" -- Angular momentum makes the world go 'round.