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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Hopefully make libpq_pipeline's new cancel test more reliable
Дата
Msg-id E1rkTlo-003dUT-M4@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Expose new function get_controlfile_by_exact_path().
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Add the system identifier to backup manifests.