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 CAKFQuwaYEq5sQsWZZZn-u3Fx4UQL2TFMVbG8HnxrL-=KFM2AjA@mail.gmail.com
Whole thread
In response to Re: Add \pset options for boolean value display  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
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.

Attachment

pgsql-hackers by date:

Previous
From: Yura Sokolov
Date:
Subject: Re: PoC: Add condition variable support to WaitEventSetWait()
Next
From: Alexander Lakhin
Date:
Subject: Re: Incorrect checksum in control file with pg_rewind test