Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZraOF-0005QF-3t for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2015 23:44:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZraOE-0004uY-GR for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2015 23:44:22 +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 1ZraMv-0003RQ-QE for pgsql-hackers@postgresql.org; Wed, 28 Oct 2015 23:43:01 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZraMt-00054w-2H for pgsql-hackers@postgresql.org; Wed, 28 Oct 2015 23:43:00 +0000 Received: from intern.anarazel.de (unknown [37.85.20.96]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 6B0C2860002; Thu, 29 Oct 2015 00:42:57 +0100 (CET) Date: Thu, 29 Oct 2015 00:42:56 +0100 From: Andres Freund To: Greg Stark Cc: Robert Haas , Marko Tiikkaja , PostgreSQL hackers Subject: Re: psql: add \pset true/false Message-ID: <20151028234256.GM29811@alap3.anarazel.de> References: <56308F56.8060908@joh.to> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.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 2015-10-28 23:38:45 +0000, Greg Stark wrote: > On Wed, Oct 28, 2015 at 10:52 PM, Robert Haas wrote: > > 3. I really don't want to end up with a bunch of features of this type > > for a variety of different data types. > > We already have \pset null which feels very similar. It's data type neutral, and there's no representation of NULL that's definitely discernible from the corresponding string. So I don't see those being the same. This seems like opening a can of worms to me. Why not add formatting options in psql for other data types? - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers