Skip to content

fix: fail pipelined queries when the connection dies instead of hanging - #3736

Open
nigrosimone wants to merge 1 commit into
brianc:masterfrom
nigrosimone:fix-pipeline-connection-loss
Open

fix: fail pipelined queries when the connection dies instead of hanging#3736
nigrosimone wants to merge 1 commit into
brianc:masterfrom
nigrosimone:fix-pipeline-connection-loss

Conversation

@nigrosimone

@nigrosimone nigrosimone commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

When a pipelined batch is in flight and the connection goes away, the batch never call back, so every query queued behind it wait forever.

There is also a related bug in node-libpq, brianc/node-libpq#137 The fixes here are independent from that one, but both are needed to survive a lost connection.

@nigrosimone
nigrosimone marked this pull request as ready for review August 9, 2026 10:51
@nigrosimone nigrosimone changed the title Fail pipelined queries when the connection dies instead of hanging fix: fail pipelined queries when the connection dies instead of hanging Aug 10, 2026
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.

1 participant