pgsql: Fix thinko in PQisBusy().

2022-02-12 Thread Tom Lane
Fix thinko in PQisBusy(). In commit 1f39a1c06 I made PQisBusy consider conn->write_failed, but that is now looking like complete brain fade. In the first place, the logic is quite wrong: it ought to be like "and not" rather than "or". This meant that once we'd gotten into a write_failed state, PQ

pgsql: Fix thinko in PQisBusy().

2022-02-12 Thread Tom Lane
Fix thinko in PQisBusy(). In commit 1f39a1c06 I made PQisBusy consider conn->write_failed, but that is now looking like complete brain fade. In the first place, the logic is quite wrong: it ought to be like "and not" rather than "or". This meant that once we'd gotten into a write_failed state, PQ

pgsql: Fix thinko in PQisBusy().

2022-02-12 Thread Tom Lane
Fix thinko in PQisBusy(). In commit 1f39a1c06 I made PQisBusy consider conn->write_failed, but that is now looking like complete brain fade. In the first place, the logic is quite wrong: it ought to be like "and not" rather than "or". This meant that once we'd gotten into a write_failed state, PQ

pgsql: Fix thinko in PQisBusy().

2022-02-12 Thread Tom Lane
Fix thinko in PQisBusy(). In commit 1f39a1c06 I made PQisBusy consider conn->write_failed, but that is now looking like complete brain fade. In the first place, the logic is quite wrong: it ought to be like "and not" rather than "or". This meant that once we'd gotten into a write_failed state, PQ