github.com/jackc/pgx breaking changes

go

12 curated breaking changes across major versions of github.com/jackc/pgx. Use this as a migration checklist before bumping dependencies.

12
changes
Breaking changes by transition
  • 5.1.0 \u2192 5.1.1breaking

    Fix simple query sanitizer where query text contains a Unicode replacement character.

  • 5.1.0 \u2192 5.1.1removed

    Remove erroneous `name` argument from `DeallocateAll()`. Technically, this is a breaking change, but given that method was only added 5 days ago this change was accepted. (Bodo Kaiser)

  • 5.0.4 \u2192 5.1.0behavior

    DateCodec.DecodeValue can return `pgtype.InfinityModifier` instead of `string` for infinite values. This now matches the behavior of the timestamp types.

  • 5.0.4 \u2192 5.1.0breaking

    Expose `GetSSLPassword` support to pgx.

  • 5.0.4 \u2192 5.1.0breaking

    Fix encode `ErrorResponse` unknown field handling. This would only affect pgproto3 being used directly as a proxy with a non-PostgreSQL server that included additional error fields.

  • 5.0.4 \u2192 5.1.0breaking

    Fix date text format encoding with 5 digit years.

  • 5.0.4 \u2192 5.1.0breaking

    Fix date values passed to a `sql.Scanner` as `string` instead of `time.Time`.

  • 5.0.4 \u2192 5.1.0breaking

    Add domain type support to `Conn.LoadType()`.

  • 5.0.4 \u2192 5.1.0breaking

    Add `RowToStructByName` and `RowToAddrOfStructByName`. (Pavlo Golub)

  • 5.0.4 \u2192 5.1.0breaking

    Add `Conn.DeallocateAll()` to clear all prepared statements including the statement cache. (Bodo Kaiser)

  • 5.0.4 \u2192 5.1.0breaking

    Update puddle to v2.1.2. This resolves a race condition and a deadlock in pgxpool.

  • 5.0.4 \u2192 5.1.0breaking

    `QueryRewriter.RewriteQuery` now returns an error. Technically, this is a breaking change for any external implementers, but given the minimal likelihood that there are actually any external implementers this change was accepted.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/go/github.com/jackc/pgx