Skip to content

Revert "Clearer error starting a query when already processing a query"#1329

Merged
arp242 merged 1 commit into
masterfrom
unsync
Jul 11, 2026
Merged

Revert "Clearer error starting a query when already processing a query"#1329
arp242 merged 1 commit into
masterfrom
unsync

Conversation

@arp242

@arp242 arp242 commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

This reverts #1272 as there are too many subtle errors with keeping a flag on the connection: #1299, #1320, and possibly more. When I added this I thought this should be fairly safe to do because it adapted a long-existing mechanism, but it seems I was wrong about that – I guess that was always a bit buggy but no one noticed because it's used fairly infrequently.

I find it too complex to follow, and it doesn't really fix anything: it just gives a nicer error message on wrong usage. That's nice, but not critical. Correct behaviour is.

So just revert it for now. Can come back to this at some point, but I don't really have the time for it now. Also stop tracking it for COPY, as that wasn't entirely correct either.

Fixes #1320
Closes #1321

This reverts #1272 as there are too many subtle errors with keeping a
flag on the connection: #1299, #1320, and possibly more. When I added
this I thought this should be fairly safe to do because it adapted a
long-existing mechanism, but it seems I was wrong about that – I guess
that was always a bit buggy but no one noticed because it's used fairly
infrequently.

I find it too complex to follow, and it doesn't really fix anything: it
just gives a nicer error message on wrong usage. That's nice, but not
critical. Correct behaviour is.

So just revert it for now. Can come back to this at some point, but I
don't really have the time for it now. Also stop tracking it for COPY,
as that wasn't entirely correct either.

Fixes #1320
Closes #1321
@arp242 arp242 merged commit d70e699 into master Jul 11, 2026
14 checks passed
@arp242 arp242 deleted the unsync branch July 11, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discarded readReadyForQuery() EOF causes connection pool poisoning via stuck inProgress flag

1 participant