Обсуждение: pgsql: Hopefully make libpq_pipeline's new cancel test more reliable

Поиск
Список
Период
Сортировка

pgsql: Hopefully make libpq_pipeline's new cancel test more reliable

От
Alvaro Herrera
Дата:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1ee910ce437188eab40eddf32dc7d81952e99f82

Modified Files
--------------
src/test/modules/libpq_pipeline/libpq_pipeline.c | 78 +++++++++++++++---------
1 file changed, 49 insertions(+), 29 deletions(-)