Re: 001_password.pl fails with --without-readline
Soumya S Murali <soumyamurali.work@gmail.com>
From: Soumya S Murali <soumyamurali.work@gmail.com>
To: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Date: 2026-01-02T10:09:40Z
Lists: pgsql-hackers
Attachments
- 0001-Fix-authentication-test-failure-with-or-without-read.patch (text/x-patch) patch 0001
Hi, I reapplied the patch and tested the patch with (enable-tap-tests + readline and enable-tap-tests + without-readline). I think the issue was caused by differences in how psql emits prompts and echoed output without readline which could lead to banner interleaving, timeouts or premature TAP termination. In my patch I included the fixes that make banner detection in BackgroundPsql.pm to be tolerant while keeping strict line-based cleanup to preserve correct TAP behavior. The fix is behavior-based and does not rely on configuration variables or test skipping. Kindly review my patch attached herewith and please let me know the feedback. Regards Soumya
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