Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fftL6-0000JW-15 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Jul 2018 20:46:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fftL4-0000dZ-1z for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Jul 2018 20:46:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fftL3-0000dS-RQ for pgsql-hackers@lists.postgresql.org; Wed, 18 Jul 2018 20:46:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fftL0-0000vc-KJ for pgsql-hackers@lists.postgresql.org; Wed, 18 Jul 2018 20:46:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6IKkGUS024242; Wed, 18 Jul 2018 16:46:16 -0400 From: Tom Lane To: Alvaro Herrera cc: "David G. Johnston" , PostgreSQL Hackers Subject: Re: psql's \d versus included-index-column feature In-reply-to: <20180718202632.i6lsh3dlzj6ygury@alvherre.pgsql> References: <20180718202632.i6lsh3dlzj6ygury@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 18 Jul 2018 16:26:32 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24240.1531946776.1@sss.pgh.pa.us> Date: Wed, 18 Jul 2018 16:46:16 -0400 Message-ID: <24241.1531946776@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2018-Jul-18, David G. Johnston wrote: >> -1 for printing a boolean t/f; would rather spell it out: >> >> CASE WHEN "Key" THEN 'Key' ELSE 'Included' END AS "Data" > +1 I can sympathize with the eyestrain argument against t/f, but the above doesn't seem like an improvement --- in particular, "Data" as the column header seems quite content-free. My counterproposal is to keep "Key" as the header and use "Yes"/"No" as the values. I'd be OK with "Key"/"Included" as the values if someone can propose an on-point column header to go with those. regards, tom lane