diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-03-13 19:53:49 +0100 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2024-03-13 19:55:09 +0100 |
commit | 1ee910ce437188eab40eddf32dc7d81952e99f82 (patch) | |
tree | 1630625fd490b9c8b4e9de57486dfdd99006093a /src/backend/commands/cluster.c | |
parent | dbfc44716596073b99e093a04e29e774a518f520 (diff) | |
download | postgresql-1ee910ce437188eab40eddf32dc7d81952e99f82.tar.gz postgresql-1ee910ce437188eab40eddf32dc7d81952e99f82.zip |
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
Diffstat (limited to 'src/backend/commands/cluster.c')
0 files changed, 0 insertions, 0 deletions