Re: 001_password.pl fails with --without-readline
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Soumya S Murali <soumyamurali.work@gmail.com>
Cc: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>,
pgsql-hackers@postgresql.org
Date: 2026-01-17T00:19:38Z
Lists: pgsql-hackers
Attachments
- v4-0001-background-psql-without-readline.patch (text/x-diff) patch v4-0001
- v4-0002-030-pager-fix.patch (text/x-diff) patch v4-0002
I wrote: > There are various ways that could be done, but what I propose in the > attached v3 is to break the banner into two psql variables, like so: > \set part1 something > \set part2 else > \echo :part1 :part2 > Then, if we match for "something else", there is no possibility > whatsoever that that will match echoed commands, only the real > output of the \echo. On second thought, that's far more complicated than necessary. It should be sufficient to insert quote marks in the echo commands. regards, tom lane
Commits
-
Make psql/t/030_pager.pl more robust.
- 6918434a4acb 19 (unreleased) landed
-
Improve guards against false regex matches in BackgroundPsql.pm.
- fc84b3977e20 14.21 landed
- f356e2888cdb 17.8 landed
- bb6aedeca8d4 15.16 landed
- a1d7ae2b2e38 19 (unreleased) landed
- 92b3cc5a28f1 18.2 landed
- 6548e4a10d18 16.12 landed
-
Fix unsafe pushdown of quals referencing grouping Vars
- 34740b90bc12 19 (unreleased) cited
-
tests: BackgroundPsql: Fix potential for lost errors on windows
- 8b886a4e3488 18.0 cited