Skip to content

chore(deps): bump github.com/jackc/pgx/v5 from 5.12.0 to 5.13.0 - #5587

Merged
chrisgacsal merged 2 commits into
mainfrom
dependabot/go_modules/github.com/jackc/pgx/v5-5.13.0
Nov 20, 2026
Merged

chrisgacsal merged 2 commits into
mainfrom
dependabot/go_modules/github.com/jackc/pgx/v5-5.13.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/jackc/pgx/v5 from 5.12.0 to 5.13.0.

Changelog

Sourced from github.com/jackc/pgx/v5's changelog.

5.13.0 (November 11, 2026)

This release adds automatic client certificate reloading and temporal precision metadata for database/sql. It also fixes a panic on malformed server responses, unsafe retries after connection failures, and range encoding. See Changes for client certificate configuration behavior that may affect existing applications.

Security Fixes

  • Panic in Rows.Values on malformed server responses (GHSA-w9rp-vfrh-q8vv). A server response containing fewer row values than declared fields could cause an index-out-of-range panic in Rows.Values. It now returns an error and closes the rows when the counts differ, including when there are extra values, matching Rows.Scan validation.

Features

  • pgconn: reload client certificates and keys configured through sslcert and sslkey for each TLS certificate request, allowing new connections to pick up rotated credentials without recreating the configuration or restarting the application. Files are still validated during configuration parsing. Relative paths retain their parse-time directory, and reloads follow symlinks (Erin Shepherd)
  • stdlib: expose fractional seconds precision for timestamp, timestamptz, time, timetz, and interval through ColumnTypePrecisionScale and database/sql.ColumnType.DecimalSize. These return precision 0, the fractional seconds precision as scale, and ok=true. The scale defaults to 6 when no fractional seconds precision is declared; precision 0 means numeric precision is not applicable (Danny Xu)

Changes

  • pgconn: file-backed client certificates are no longer stored in the parsed TLSConfig.Certificates slice. Setting TLSConfig.Certificates (including a non-nil empty slice) or TLSConfig.GetClientCertificate overrides automatic reloading. Replacing TLSConfig, including with a direct TLSConfig.Clone, discards the file-backed certificate settings; use pgconn.Config.Copy to preserve them when copying a configuration. Certificate and key files must remain readable for subsequent TLS certificate requests. Encrypted keys reuse the password resolved during configuration parsing; GetSSLPassword is not called again on reload.

Bug Fixes

  • pgconn: do not mark a connection-closed error encountered while receiving a response as safe to retry, since the request may already have reached the server. This prevents database/sql from automatically repeating a statement that may already have executed. The error still supports errors.Is(err, pgconn.ErrConnClosed) (Aayush Shah)
  • pgconn: skip sending a cancel request when a connection fails during startup, avoiding an unnecessary second connection attempt (felipe stival)
  • pgconn: accept unencrypted combined certificate/key PEM files with the certificate before the key, as well as key-first files (Erin Shepherd)
  • pgtype: encode Range[any] values returned by RangeCodec.DecodeValue and Rows.Values in both binary and text formats, allowing decoded ranges and multiranges to be reused as query arguments or in CopyFrom (waw666waw666)
  • stdlib: report ok=false for the precision and scale of unconstrained numeric columns instead of bogus values (Danny Xu)
  • stdlib: report math.MaxInt64 for the lengths of unconstrained varchar, bpchar, and varbit columns instead of negative lengths (PerryLink)

... (truncated)

Commits
  • 1e38d71 Update changelog for v5.13.0
  • e2bb010 Fix Rows.Values panic on mismatched field counts
  • 5b0fd94 Merge pull request #2709 from waw666waw666/fix-range-any-encode
  • 427f50d Merge pull request #2715 from v0idpwn/pgconn-no-cancel-on-failed-connect
  • 86b4411 Merge pull request #2713 from ksamirdev/fix-append-rows-by-name-bench
  • a3b88dc Merge pull request #2714 from PerryLink/stdlib-column-type-length-unbounded
  • 2f429e5 Merge pull request #2710 from dajiaohuang/codex/2705-pingtimeout-docs
  • 85c3e62 stdlib: close rows in precision and scale test
  • 4f41feb stdlib: clarify zero precision for temporal types
  • 22ccfd1 stdlib: document temporal precision and scale metadata
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from a team as a code owner November 19, 2026 11:55
@dependabot dependabot Bot added area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code release-note/dependency-update Release note: Dependency Updates labels Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chrisgacsal

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/jackc/pgx/v5-5.13.0 branch from 51a1b1d to bbd0d01 Compare November 19, 2026 12:33
@chrisgacsal
chrisgacsal force-pushed the dependabot/go_modules/github.com/jackc/pgx/v5-5.13.0 branch from bbd0d01 to 50123b7 Compare November 20, 2026 09:11
dependabot Bot and others added 2 commits November 20, 2026 13:25
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.12.0 to 5.13.0.
- [Release notes](https://github.com/jackc/pgx/releases)
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](jackc/pgx@v5.12.0...v5.13.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@chrisgacsal
chrisgacsal force-pushed the dependabot/go_modules/github.com/jackc/pgx/v5-5.13.0 branch from 50123b7 to 1ba5890 Compare November 20, 2026 12:25
@chrisgacsal
chrisgacsal enabled auto-merge (squash) November 20, 2026 12:27
@chrisgacsal
chrisgacsal merged commit fa13eb4 into main Nov 20, 2026
28 checks passed
@chrisgacsal
chrisgacsal deleted the dependabot/go_modules/github.com/jackc/pgx/v5-5.13.0 branch November 20, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Pull requests that update a dependency file dependency/go Pull requests that update Go code release-note/dependency-update Release note: Dependency Updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant