Skip to content

deps: bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1#58

Merged
ako merged 1 commit intomainfrom
dependabot/go_modules/github.com/jackc/pgx/v5-5.9.1
Mar 30, 2026
Merged

deps: bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1#58
ako merged 1 commit intomainfrom
dependabot/go_modules/github.com/jackc/pgx/v5-5.9.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 30, 2026

Bumps github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1.

Changelog

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

5.9.1 (March 22, 2026)

  • Fix: batch result format corruption when using cached prepared statements (reported by Dirkjan Bussink)

5.9.0 (March 21, 2026)

This release includes a number of new features such as SCRAM-SHA-256-PLUS support, OAuth authentication support, and PostgreSQL protocol 3.2 support.

It significantly reduces the amount of network traffic when using prepared statements (which are used automatically by default) by avoiding unnecessary Describe Portal messages. This also reduces local memory usage.

It also includes multiple fixes for potential DoS due to panic or OOM if connected to a malicious server that sends deliberately malformed messages.

  • Require Go 1.25+
  • Add SCRAM-SHA-256-PLUS support (Adam Brightwell)
  • Add OAuth authentication support for PostgreSQL 18 (David Schneider)
  • Add PostgreSQL protocol 3.2 support (Dirkjan Bussink)
  • Add tsvector type support (Adam Brightwell)
  • Skip Describe Portal for cached prepared statements reducing network round trips
  • Make LoadTypes query easier to support on "postgres-like" servers (Jelte Fennema-Nio)
  • Default empty user to current OS user matching libpq behavior (ShivangSrivastava)
  • Optimize LRU statement cache with custom linked list and node pooling (Mathias Bogaert)
  • Optimize date scanning by replacing regex with manual parsing (Mathias Bogaert)
  • Optimize pgio append/set functions with direct byte shifts (Mathias Bogaert)
  • Make RowsAffected faster (Abhishek Chanda)
  • Fix: Pipeline.Close panic when server sends multiple FATAL errors (Varun Chawla)
  • Fix: ContextWatcher goroutine leak (Hank Donnay)
  • Fix: stdlib discard connections with open transactions in ResetSession (Jeremy Schneider)
  • Fix: pipelineBatchResults.Exec silently swallowing lastRows error
  • Fix: ColumnTypeLength using BPCharArrayOID instead of BPCharOID
  • Fix: TSVector text encoding returning nil for valid empty tsvector
  • Fix: wrong error messages for Int2 and Int4 underflow
  • Fix: Numeric nil Int pointer dereference with Valid: true
  • Fix: reversed strings.ContainsAny arguments in Numeric.ScanScientific
  • Fix: message length parsing on 32-bit platforms
  • Fix: FunctionCallResponse.Decode mishandling of signed result size
  • Fix: returning wrong error in configTLS when DecryptPEMBlock fails (Maxim Motyshen)
  • Fix: misleading ParseConfig error when default_query_exec_mode is invalid (Skarm)
  • Fix: missed Unwatch in Pipeline error paths
  • Clarify too many failed acquire attempts error message
  • Better error wrapping with context and SQL statement (Aneesh Makala)
  • Enable govet and ineffassign linters (Federico Guerinoni)
  • Guard against various malformed binary messages (arrays, hstore, multirange, protocol messages)
  • Fix various godoc comments (ferhat elmas)
  • Fix typos in comments (Oleksandr Redko)
Commits
  • 4e4eaed Release v5.9.1
  • 6273188 Fix batch result format corruption when using cached prepared statements
  • f7b90c2 Merge pull request #2524 from dbussink/pipeline-result-format-reuse
  • 3ce6d75 Add failing test: batch scan corrupted in cache_statement mode
  • b4d8e62 Release v5.9.0
  • c227cd4 Bump minimum Go version from 1.24 to 1.25
  • f492c14 Use reflect.TypeFor instead of reflect.TypeOf for static types
  • ad8fb08 Use sync.WaitGroup.Go to simplify goroutine spawning
  • 3033773 Remove go1.26 build tag from synctest test
  • 83ffb3c Validate multirange element count against source length before allocating
  • Additional commits viewable in compare view

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 30, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@github-actions
Copy link
Copy Markdown

AI Code Review

Review Summary

This PR updates the github.com/jackc/pgx/v5 dependency from v5.8.0 to v5.9.1. It's a standard dependency bump with no code changes in the project itself.

Moderate Issues- Go version requirement: The pgx/v5 v5.9.0+ release requires Go 1.25+ (as stated in the changelog: "Require Go 1.25+"). The diff doesn't show any change to the project's Go version in go.mod. If the project currently builds with Go <1.25, this update will break the build. Please verify the project's Go version compatibility.

What Looks Good

  • Important fixes included: The update includes critical fixes like batch result format corruption resolution, DoS protections against malicious servers, and various correctness improvements.
  • Performance improvements: Features like skipping Describe Portal for cached prepared statements reduce network traffic and memory usage.
  • Security enhancements: Multiple fixes for potential panics/O

Automated review via OpenRouter (Nemotron Super 120B) — workflow source

Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.8.0 to 5.9.1.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](jackc/pgx@v5.8.0...v5.9.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/jackc/pgx/v5-5.9.1 branch from a2c79dd to 2bdda3b Compare March 30, 2026 13:29
@github-actions
Copy link
Copy Markdown

AI Code Review

Minor Issues

  • The update to github.com/jackc/pgx/v5 v5.9.1 requires Go 1.25+ (as stated in the changelog). While the PR doesn't modify the Go version in go.mod, reviewers should verify the project's Go version compatibility (typically checked in CI or via go.mod's go directive). No changes to the Go version are visible in this diff, so assume existing configuration is sufficient.

What Looks Good

  • The dependency bump includes important bug fixes (e.g., batch result format corruption fix, DoS mitigations) and features (SCRAM-SHA-256-PLUS, OAuth, PostgreSQL protocol 3.2 support).
  • The change is limited to version updates in go.mod and go.sum—no code modifications, reducing risk of introducing bugs.
  • The update aligns with the project's use of pgx/v5 for external SQL connectivity (in the sql/ package) and maintains API compatibility.

Recommendation

Approve the PR. The dependency update is safe, beneficial, and follows standard version-bump practices. No further action needed.


Automated review via OpenRouter (Nemotron Super 120B) — workflow source

@ako ako merged commit f9878ea into main Mar 30, 2026
4 checks passed
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/jackc/pgx/v5-5.9.1 branch March 30, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant