Re: Fix \crosstabview to honor \pset display_true/display_false - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Fix \crosstabview to honor \pset display_true/display_false
Date
Msg-id CAKFQuwYOb2F-zuae+Q-epDOVR5YPaqKEZiaeJpbB96uNQMF+kw@mail.gmail.com
Whole thread
Responses Re: Fix \crosstabview to honor \pset display_true/display_false
List pgsql-hackers
On Thu, Jun 18, 2026 at 6:36 PM Chao Li <li.evan.chao@gmail.com> wrote:
PFA v2: addressed David’s comments.

Looked a bit closer at printQuery this time; disliking that the if condition has an awareness of the implementation of printQueryOptDisplayValue since it lists !isnull and ftype != BOOLOID explicitly.

How about not touching print.c at all with this patch, moving the printQueryOptDisplayValue into crosstabview.c and leaving printQuery alone since it is already correct?

David J.

P.S. When we do get to cleaning this up it seems annoying/odd that we determine whether to apply numeric locale based upon whether the display alignment for the column is right-aligned or not as opposed to the data type of the value.

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: fix pg_mkdir_p to tolerate concurrent directory creation
Next
From: "Tristan Partin"
Date:
Subject: Re: Fix publisher-side sequence permission reporting