From 0cf80707ac7f4e375b63a58ea12c607ee861f4d5 Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 4 Sep 2026 23:40:40 -0400 Subject: [PATCH] fix(pglite): do not resend Terminate, which never gets a reply --- db/pglite/pglite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/pglite/pglite.go b/db/pglite/pglite.go index 81fae3bb6..0d2bb0b62 100644 --- a/db/pglite/pglite.go +++ b/db/pglite/pglite.go @@ -547,7 +547,7 @@ func (pg *PGlite) forwardWire(packet []byte, outFile string) ([][]byte, error) { if !producedBefore && !producedAfter { // No output at all means the backend did not run the packet (a run always emits at // least a completion); seen right after handshakes. Hand it over again, twice at most. - if len(packet) > 0 && len(replies) == 0 && resends < 2 { + if len(packet) > 0 && packet[0] != 'X' && len(replies) == 0 && resends < 2 { resends++ fmt.Fprintf(pg.cfg.Stderr, "# bridge: empty reply to %s; resending (%d)\n", wireTags(packet), resends) if err := pg.send(packet, strings.TrimSuffix(outFile, ".out")); err != nil {