Re: Add \pset options for boolean value display

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, "a.kozhemyakin" <a.kozhemyakin@postgrespro.ru>
Date: 2026-04-21T17:43:02Z
Lists: pgsql-hackers

Attachments

On Mon, Apr 20, 2026 at 11:30 PM David G. Johnston <
david.g.johnston@gmail.com> wrote:

> On Monday, April 20, 2026, a.kozhemyakin <a.kozhemyakin@postgrespro.ru>
> wrote:
>>
>> The following script, when built with addresssanitizer, fails with a
>> DoubleFree error. reproduce on master (d3bba0415435)
>>
>
> Thanks for the report.  To be honest, I’m not sure where to start
> debugging it - but I plan to give it a go.  I’m curious if it fails for
> “\pset null ‘N’” “\g (null=csv)” too and I just got bit by inheriting its
> layout.  Don’t see why these new ones would be different.
>
>
Had issues getting a server to run meson+asan but did get psql to do so and
confirmed.

I just didn't find all of the patterns.

savePsetInfo and restorePsetInfo need explicit knowledge of these options
as well to clean up the popt struct.

Attached.

David J.

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. psql: save/restore truePrint/falsePrint printQueryOpt values

  2. Add \pset options for boolean value display