Re: Add \pset options for boolean value display - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Add \pset options for boolean value display
Date
Msg-id CAKFQuwbJ+Fn9u0a4hYWoyxA8FK-fD=+xGisrs6rjgeqcRtEf5w@mail.gmail.com
Whole thread Raw
In response to Re: Add \pset options for boolean value display  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: Add \pset options for boolean value display
Re: Add \pset options for boolean value display
List pgsql-hackers
On Monday, October 20, 2025, Chao Li <li.evan.chao@gmail.com> wrote:
The other thing I am thinking is that, with this patch, users are allowed to display arbitrary strings for true/false, if a user mistakenly set display_true to f and display_false to t, which will load to misunderstanding.

Sympathetic to the concern but opposed to taking on such responsibility.  They could probably modify their own query to do that if they really wanted to fool someone and I’m having trouble accepting this happening by accident.  Do we test for yes/no; oui/non (i.e., foreign language choices); checkmark/X?

David J.

pgsql-hackers by date:

Previous
From: Shinya Kato
Date:
Subject: Re: [PATCH] Remove make_temptable_name_n()
Next
From: "David G. Johnston"
Date:
Subject: Re: Add \pset options for boolean value display