pgx v4.1.0 Release Notes

Release Date: 2019-10-12 // over 4 years ago
  • Potentially Breaking Changes

    Technically, two changes are breaking changes, but in practice these are extremely unlikely to break existing code.

    • Conn.Begin and Conn.BeginTx return a Tx interface instead of the internal dbTx struct. This is necessary for the Conn.Begin method to signature as other methods that begin a transaction.
    • ➕ Add Conn() to Tx interface. This is necessary to allow code using a Tx to access the *Conn (and pgconn.PgConn) on which the Tx is executing.

    🛠 Fixes

    • Releasing a busy connection closes the connection instead of returning an unusable connection to the pool
    • Do not mutate config.Config.OnNotification in connect