Skip to content
CCPEDIAby Unity Nodes
CLOSEDPull Request

Commit the transaction opened while wrapping a new pooled connection

#282by mateusz-borek-daCreated 04-12-2026

The pool turns autocommit off as soon as a connection is opened, and zio-jdbc's wrapper then calls getSchema(), whose select current_schema() starts a transaction that stayed open until the connection's first use. When PQS creates --target-postgres-schema itself, that transaction can start before the schema exists, and a routine call in it fails with function/procedure ... does not exist, which PQS doesn't retry. The pool now commits that transaction right after wrapping the connection.

Fixes #203