Re: psql: add \pset true/false - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: psql: add \pset true/false
Date
Msg-id 5644AC1F.8080005@2ndquadrant.fr
Whole thread Raw
In response to psql: add \pset true/false  (Marko Tiikkaja <marko@joh.to>)
List pgsql-hackers
On 10/28/2015 10:03 AM, Marko Tiikkaja wrote:
> Hello hello,
> 
> Since the default t/f output for booleans is not very user friendly,
> attached is a patch which enables you to do for example the following:
> 
> =# \pset true TRUE
> Boolean TRUE display is "TRUE".
> =# \pset false FALSE
> Boolean FALSE display is "FALSE".
> =# select true, false;
>   bool | bool
> ------+-------
>   TRUE | FALSE
> (1 row)

I think the battle is already lost, but I'm casting my vote in favor of
this patch anyway.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: LLVM miscompiles numeric.c access to short numeric var headers
Next
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan