Hopefully make libpq_pipeline's new cancel test more reliable
Alvaro Herrera <alvherre@alvh.no-ip.org>
Hopefully make libpq_pipeline's new cancel test more reliable The newly introduced cancel test in libpq_pipeline was flaky. It's not completely clear why, but one option is that the check for "active" was actually seeing the active state for the previous query. This change should address any such race condition by first waiting until the connection is reported as idle. Author: Jelte Fennema-Nio <me@jeltef.nl> Discussion: https://postgr.es/m/CAGECzQRvmUK5-d68A+cm+fgmfht9Dv2uZ28-qq3QiaF6EAZqPQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/modules/libpq_pipeline/libpq_pipeline.c | modified | +49 −29 |
Discussion
- Add non-blocking version of PQcancel 146 messages · 2022-01-12 → 2024-12-23