Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zy8kj-00020q-0d for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Nov 2015 01:38:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zy8ki-0005GH-Ij for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Nov 2015 01:38:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zy8jO-0003na-MD for pgsql-hackers@postgresql.org; Mon, 16 Nov 2015 01:37:18 +0000 Received: from mout.gmx.net ([212.227.15.15]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Zy8jM-0003WA-1P for pgsql-hackers@postgresql.org; Mon, 16 Nov 2015 01:37:17 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MJjvw-1ZzFC219rI-0016Ge for ; Mon, 16 Nov 2015 02:37:14 +0100 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 048AF201BE for ; Sun, 15 Nov 2015 20:37:12 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sun, 15 Nov 2015 20:37:13 -0500 X-Sasl-enc: uvzzKxfEO8zJsN3g8gs3C5RH40h2FsoseGQ9SUBZXGcR 1447637832 Received: from [10.0.0.7] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id 8FF306800E8; Sun, 15 Nov 2015 20:37:12 -0500 (EST) Subject: Re: psql: add \pset true/false To: Jim Nasby , Tom Lane References: <0949c317-3ec4-4516-a3aa-33a6cfbf5267@mm> <5631FCAF.9060204@joh.to> <27336.1446126627@sss.pgh.pa.us> <5644FCE0.2030405@gmx.net> <20643.1447362580@sss.pgh.pa.us> <5648E8F3.7070202@BlueTreble.com> Cc: Marko Tiikkaja , Daniel Verite , PostgreSQL hackers From: Peter Eisentraut Message-ID: <5649334C.50902@gmx.net> Date: Sun, 15 Nov 2015 20:37:16 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5648E8F3.7070202@BlueTreble.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:yX5kj1m9z4y1JgDJ2TSUnVL9n/DMZJWTmnRPil6orGqKSiSTFTC 62jRtWFOFgeJyxtJzgBSm+BqcDs+teU0s+SuKFr+X8nxxNdYF3dhaV73Aku6Ed3WK3W1zz8 ZmGqUNHc8Y2ZWOlA9OAn6cg1zbZ8gRxuXsyhCDNCRofI8Mb7hA8lLvyY5Km1oNK8MTJR/79 kUk1LX/20hY7yYwEIThfg== X-UI-Out-Filterresults: notjunk:1;V01:K0:bywnNSSiXyU=:2U/AWBqddZ3yTW5V0uv419 kVOE6Kr7sfvgz0caO4e+CTTnNX4kCcBminc5SAFsI2RE2MpB9ZSk3VjASVCxmSDQjXLm4uVqW JnVPg4dDS3AbswFK7BANoVO/sh4J8XjKY+o18DGksvJ31XgcrN7UfBtvX1nqo/mcIVJxJOwMd ZXT0OrJBXa69evc0aJ24GeOmFji8emoZDXoK0MiGZNCmjLbzIWAAyI4lLmPo2IoxYJJwUgQ6K oopvPU/h8wnq4B53cfszhdPBFYOTlJAcbT/2rnj05bDLvtKuMV17VMUxhaF9P268lcpmlHjxz bcYwaeqvc2Z9V6MlHSkTN5vUwNvbXFxmBxt2t39ARE4RbvSA2GVpnP9qe0K3Yc58AeQuTjZ3V Pf6ig8QdUcd7N0oYQy2QNeDi/knUdVo/yTVC5fHoCXVpQsYgU+tE1IdICKpnYq8p5ggUhaCB1 6RpT+xBzmXAooMnqCJC+HW7+OSTDNcypDyfAhnaBLVgrzYDr1+GuZm764vlAq232PtpYfGnCS rbD0Vi0tp7vIn8SjruyZjG8xlJT9gNwGn9lUG9OCHIUSn9rbAvamqzZFJX+xZAl+lh2ccD3vP SIGvQhKRCcFMbxJrBpgV+ZhE5/NqZTYUXw1H92TELXsqOGecfj660UFaQAHEcb2QNzcOuSs+x APHfjRl8TWC1SqJQtcSV5hqBc4/W7ItDXWFkcA3oCOtcvV07fgYqLjts1runLqMbeLbh0SV9E ThHRFlRVFvXyPmJEq32+2muq3+hUtfVK1X+lG8CRxc88CAt2PJU4I6tvpCzlSxtCZl/jcpddQ /7iKrNc X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 11/15/15 3:20 PM, Jim Nasby wrote: > As to the argument about displaying a check or an X, why should that > capability only exist for boolean types? For example, why not allow psql > to convert a numeric value into a bar of varying sizes? I've frequently > emulated that with something like SELECT repeat( '*', blah * 30 / > max_of_blah ). I'm sure there's other examples people could think of. Well, why not? The question there is only how many marginal features you want to stuff into psql, not whether it's the right place to stuff them. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers