Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zwyw1-0001De-J3 for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Nov 2015 20:57:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zwyw1-0008Jb-5a for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Nov 2015 20:57:33 +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.84) (envelope-from ) id 1Zwyuf-00060O-9o for pgsql-hackers@postgresql.org; Thu, 12 Nov 2015 20:56:09 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Zwyuc-0002vq-Co for pgsql-hackers@postgresql.org; Thu, 12 Nov 2015 20:56:08 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M4Wwq-1aJqKF32zc-00ykAo for ; Thu, 12 Nov 2015 21:56:03 +0100 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id DFDA120617 for ; Thu, 12 Nov 2015 15:56:01 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 12 Nov 2015 15:56:01 -0500 X-Sasl-enc: Tmdi/BrUic2CIsN9PnOhyMb5qPNfxfPbqP5U9NpkcxMn 1447361761 Received: from [192.168.1.59] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 7F2DB6800FD; Thu, 12 Nov 2015 15:56:01 -0500 (EST) Subject: Re: psql: add \pset true/false To: Tom Lane , Marko Tiikkaja References: <0949c317-3ec4-4516-a3aa-33a6cfbf5267@mm> <5631FCAF.9060204@joh.to> <27336.1446126627@sss.pgh.pa.us> Cc: Daniel Verite , PostgreSQL hackers From: Peter Eisentraut Message-ID: <5644FCE0.2030405@gmx.net> Date: Thu, 12 Nov 2015 15:56:00 -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: <27336.1446126627@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:9yV0qXcBtShuKRHeDKaND4gwSpLXOkqmyF6xWNTHucol4fQd5mc DzEurg9+hbVOniKJZ6fHtld0+027Rc6xPCYEodksW7DMBgcekk7UnUb5uxQd/z78hn/LkP2 tq5X5S7/3T1mDOvlZUo/K/WmFBiFqlwL9PC6LQToep52a1l29dFUmGI28Qv9atUxc2yIGYL 0QhL1TyUEwJM7CBHSg1FQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:fYT04WaE9M0=:IbZlbtEGU9/gFQNwH+Y3Hk pOAjAoJuiHBL1EoM0wViOGsk3aWFA4FcT9yMhDT0RMWyc7rruOtKOjh1SeRl0MIi2zlObTOBE I6u2GRieyqeXcg75COJSwvaXCwGYxo1cEoL0AZL7fPthm30HAvaJ2fInBxLf43dMOXy54faIK ecvudb66RcLkLDPM4zUslxMgpsBgsLa1wAqRxzJgm4G1Onn3ZexF7W3zBnMNM+NFniAQR9KkO iUYN6pM1UQ3h3s3MKuvUtN9//chT7BwDMr2ofkfuKRJUk5Mtb7K0PRI7saV9/9YJl5kY9lvuY I3VdqMj+psPMXDClBL7MJbUKJDy9tSAfvB9/PEmgKd9ei4SSzu77pr+wm7FfYyFTneQufFQXR MTBLeHJ52oJKPMJJEA5thY3wAkV6gNiwQkLiK6byQtXlTHUlpR6JX2cBjoFiYoiGFAgkNWrPA dB0iflDCw5Ea+dh2KORwjGg7P05z6yE9t9q9Sr/HGRd4rpTdOuxIl6U49tkUKRAnWKGClZz1N UaD6av6o+C2X5/88Kd4QtS7v2wfwOzj7fj3Y3xZBXcO7W5/igK57MvModbULXBytzuN7aSRoW AsRe0o3xtNjcC4HuEb1UxVXxdqacbm7cbX3yVJRuFD3WLW77XT+TQLTGCoYgZkFdFGqQrSI6V ssDVZDWHJxgmUuKWa1GpjmUcXC2iOSnf3ULvs5xdE65JeLH2rtat6tp8ahwPZfbNGxGeSPJ2s VhLKpyUty5hE+7GJ84RfVj3MtRDQ6AlS6J/asE6ovZ4LNQeBPR/K2/PL2pcsdk9rTcAm2O3JU E84O4G4 X-Pg-Spam-Score: -3.0 (---) 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 10/29/15 9:50 AM, Tom Lane wrote: > The really key argument that hasn't been addressed here is why does such > a behavior belong in psql, rather than elsewhere? Because it is the job of the client to mangle the data so that it suits the purposes of the client. What comes over the wire is part of the protocol, not part of the client display. Language drivers do this sort of mangling all the time. > Surely legibility problems aren't unique to psql users. But the way to deal with it is specific to psql. In a graphical environment you might want a checkbox instead, say. Different clients will have different requirements and preferences. > Moreover, there are exactly > parallel facilities for other datatypes on the server side: think > DateStyle or bytea_output. Surely DateStyle is legacy, and bytea_output was actually a performance feature. And clients will still mangle either type into their own formats. Plus we already have \pset numericlocale as a similar feature in psql. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers