From: Bruce Momjian Date: Tue, 12 May 2026 22:28:20 +0000 (-0400) Subject: psql: save/restore truePrint/falsePrint printQueryOpt values X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34be85f65746da83cebaf874f236605c28ec0fe5;p=thirdparty%2Fpostgresql.git psql: save/restore truePrint/falsePrint printQueryOpt values Reported-by: a.kozhemyakin Author: David G. Johnston Discussion: https://postgr.es/m/83e247ed-0b2d-4aba-bc42-e7bbc20be0d6@postgrespro.ru --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 493400f9090..01b8f11aadd 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -5680,6 +5680,10 @@ savePsetInfo(const printQueryOpt *popt) save->topt.tableAttr = pg_strdup(popt->topt.tableAttr); if (popt->nullPrint) save->nullPrint = pg_strdup(popt->nullPrint); + if (popt->truePrint) + save->truePrint = pg_strdup(popt->truePrint); + if (popt->falsePrint) + save->falsePrint = pg_strdup(popt->falsePrint); if (popt->title) save->title = pg_strdup(popt->title); @@ -5707,6 +5711,8 @@ restorePsetInfo(printQueryOpt *popt, printQueryOpt *save) free(popt->topt.recordSep.separator); free(popt->topt.tableAttr); free(popt->nullPrint); + free(popt->truePrint); + free(popt->falsePrint); free(popt->title); /*