Update module github.com/lib/pq to v1.11.0 #6

Merged
pieter merged 1 commit from renovate/github.com-lib-pq-1.x into main 2026-01-29 08:28:16 +01:00
Collaborator

This PR contains the following updates:

Package Change Age Confidence
github.com/lib/pq v1.10.9v1.11.0 age confidence

Release Notes

lib/pq (github.com/lib/pq)

v1.11.0

Compare Source

This version of pq requires Go 1.21 or newer.

pq now supports only maintained PostgreSQL releases, which is PostgreSQL 14 and
newer. Previously PostgreSQL 8.4 and newer were supported.

Features
  • The pq.Error.Error() text includes the position of the error (if reported
    by PostgreSQL) and SQLSTATE code (#​1219, #​1224):

    pq: column "columndoesntexist" does not exist at column 8 (42703)
    pq: syntax error at or near ")" at position 2:71 (42601)
    
  • The pq.Error.ErrorWithDetail() method prints a more detailed multiline
    message, with the Detail, Hint, and error position (if any) (#​1219):

    ERROR:   syntax error at or near ")" (42601)
    CONTEXT: line 12, column 1:
    
         10 |     name           varchar,
         11 |     version        varchar,
         12 | );
              ^
    
  • Add Config, NewConfig(), and NewConnectorConfig() to supply connection
    details in a more structured way (#​1240).

  • Support hostaddr and $PGHOSTADDR (#​1243).

  • Support multiple values in host, port, and hostaddr, which are each
    tried in order, or randomly if load_balance_hosts=random is set (#​1246).

  • Support target_session_attrs connection parameter (#​1246).

  • Support sslnegotiation to use SSL without negotiation (#​1180).

  • Allow using a custom tls.Config, for example for encrypted keys (#​1228).

  • Add PQGO_DEBUG=1 print the communication with PostgreSQL to stderr, to aid
    in debugging, testing, and bug reports (#​1223).

  • Add support for NamedValueChecker interface (#​1125, #​1238).

Fixes
  • Match HOME directory lookup logic with libpq: prefer $HOME over /etc/passwd,
    ignore ENOTDIR errors, and use APPDATA on Windows (#​1214).

  • Fix sslmode=verify-ca verifying the hostname anyway when connecting to a DNS
    name (rather than IP) (#​1226).

  • Correctly detect pre-protocol errors such as the server not being able to fork
    or running out of memory (#​1248).

  • Fix build with wasm (#​1184), appengine (#​745), and Plan 9 (#​1133).

  • Deprecate and type alias pq.NullTime to sql.NullTime (#​1211).

  • Enforce integer limits of the Postgres wire protocol (#​1161).

  • Accept the passfile connection parameter to override PGPASSFILE (#​1129).

  • Fix connecting to socket on Windows systems (#​1179).

  • Don't perform a permission check on the .pgpass file on Windows (#​595).

  • Warn about incorrect .pgpass permissions (#​595).

  • Don't set extra_float_digits (#​1212).

  • Decode bpchar into a string (#​949).

  • Fix panic in Ping() by not requiring CommandComplete or EmptyQueryResponse in
    simpleQuery() (#​1234)

  • Recognize bit/varbit (#​743) and float types (#​1166) in ColumnTypeScanType().

  • Accept PGGSSLIB and PGKRBSRVNAME environment variables (#​1143).

  • Handle ErrorResponse in readReadyForQuery and return proper error (#​1136).

  • CopyIn() and CopyInSchema() now work if the list of columns is empty, in which
    case it will copy all columns (#​1239).

  • Treat nil []byte in query parameters as nil/NULL rather than "" (#​838).

  • Accept multiple authentication methods before checking AuthOk, which improves
    compatibility with PgPool-II (#​1188).


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/lib/pq](https://github.com/lib/pq) | `v1.10.9` → `v1.11.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2flib%2fpq/v1.11.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2flib%2fpq/v1.10.9/v1.11.0?slim=true) | --- ### Release Notes <details> <summary>lib/pq (github.com/lib/pq)</summary> ### [`v1.11.0`](https://github.com/lib/pq/blob/HEAD/CHANGELOG.md#v1110-2025-01-28) [Compare Source](https://github.com/lib/pq/compare/v1.10.9...v1.11.0) This version of pq requires Go 1.21 or newer. pq now supports only maintained PostgreSQL releases, which is PostgreSQL 14 and newer. Previously PostgreSQL 8.4 and newer were supported. ##### Features - The `pq.Error.Error()` text includes the position of the error (if reported by PostgreSQL) and SQLSTATE code ([#&#8203;1219], [#&#8203;1224]): ``` pq: column "columndoesntexist" does not exist at column 8 (42703) pq: syntax error at or near ")" at position 2:71 (42601) ``` - The `pq.Error.ErrorWithDetail()` method prints a more detailed multiline message, with the Detail, Hint, and error position (if any) ([#&#8203;1219]): ``` ERROR: syntax error at or near ")" (42601) CONTEXT: line 12, column 1: 10 | name varchar, 11 | version varchar, 12 | ); ^ ``` - Add `Config`, `NewConfig()`, and `NewConnectorConfig()` to supply connection details in a more structured way ([#&#8203;1240]). - Support `hostaddr` and `$PGHOSTADDR` ([#&#8203;1243]). - Support multiple values in `host`, `port`, and `hostaddr`, which are each tried in order, or randomly if `load_balance_hosts=random` is set ([#&#8203;1246]). - Support `target_session_attrs` connection parameter ([#&#8203;1246]). - Support [`sslnegotiation`] to use SSL without negotiation ([#&#8203;1180]). - Allow using a custom `tls.Config`, for example for encrypted keys ([#&#8203;1228]). - Add `PQGO_DEBUG=1` print the communication with PostgreSQL to stderr, to aid in debugging, testing, and bug reports ([#&#8203;1223]). - Add support for NamedValueChecker interface ([#&#8203;1125], [#&#8203;1238]). ##### Fixes - Match HOME directory lookup logic with libpq: prefer $HOME over /etc/passwd, ignore ENOTDIR errors, and use APPDATA on Windows ([#&#8203;1214]). - Fix `sslmode=verify-ca` verifying the hostname anyway when connecting to a DNS name (rather than IP) ([#&#8203;1226]). - Correctly detect pre-protocol errors such as the server not being able to fork or running out of memory ([#&#8203;1248]). - Fix build with wasm ([#&#8203;1184]), appengine ([#&#8203;745]), and Plan 9 ([#&#8203;1133]). - Deprecate and type alias `pq.NullTime` to `sql.NullTime` ([#&#8203;1211]). - Enforce integer limits of the Postgres wire protocol ([#&#8203;1161]). - Accept the `passfile` connection parameter to override `PGPASSFILE` ([#&#8203;1129]). - Fix connecting to socket on Windows systems ([#&#8203;1179]). - Don't perform a permission check on the .pgpass file on Windows ([#&#8203;595]). - Warn about incorrect .pgpass permissions ([#&#8203;595]). - Don't set extra\_float\_digits ([#&#8203;1212]). - Decode bpchar into a string ([#&#8203;949]). - Fix panic in Ping() by not requiring CommandComplete or EmptyQueryResponse in simpleQuery() ([#&#8203;1234]) - Recognize bit/varbit ([#&#8203;743]) and float types ([#&#8203;1166]) in ColumnTypeScanType(). - Accept `PGGSSLIB` and `PGKRBSRVNAME` environment variables ([#&#8203;1143]). - Handle ErrorResponse in readReadyForQuery and return proper error ([#&#8203;1136]). - CopyIn() and CopyInSchema() now work if the list of columns is empty, in which case it will copy all columns ([#&#8203;1239]). - Treat nil \[]byte in query parameters as nil/NULL rather than `""` ([#&#8203;838]). - Accept multiple authentication methods before checking AuthOk, which improves compatibility with PgPool-II ([#&#8203;1188]). [`sslnegotiation`]: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION [#&#8203;595]: https://github.com/lib/pq/pull/595 [#&#8203;745]: https://github.com/lib/pq/pull/745 [#&#8203;743]: https://github.com/lib/pq/pull/743 [#&#8203;838]: https://github.com/lib/pq/pull/838 [#&#8203;949]: https://github.com/lib/pq/pull/949 [#&#8203;1125]: https://github.com/lib/pq/pull/1125 [#&#8203;1129]: https://github.com/lib/pq/pull/1129 [#&#8203;1133]: https://github.com/lib/pq/pull/1133 [#&#8203;1136]: https://github.com/lib/pq/pull/1136 [#&#8203;1143]: https://github.com/lib/pq/pull/1143 [#&#8203;1161]: https://github.com/lib/pq/pull/1161 [#&#8203;1166]: https://github.com/lib/pq/pull/1166 [#&#8203;1179]: https://github.com/lib/pq/pull/1179 [#&#8203;1180]: https://github.com/lib/pq/pull/1180 [#&#8203;1184]: https://github.com/lib/pq/pull/1184 [#&#8203;1188]: https://github.com/lib/pq/pull/1188 [#&#8203;1211]: https://github.com/lib/pq/pull/1211 [#&#8203;1212]: https://github.com/lib/pq/pull/1212 [#&#8203;1214]: https://github.com/lib/pq/pull/1214 [#&#8203;1219]: https://github.com/lib/pq/pull/1219 [#&#8203;1223]: https://github.com/lib/pq/pull/1223 [#&#8203;1224]: https://github.com/lib/pq/pull/1224 [#&#8203;1226]: https://github.com/lib/pq/pull/1226 [#&#8203;1228]: https://github.com/lib/pq/pull/1228 [#&#8203;1234]: https://github.com/lib/pq/pull/1234 [#&#8203;1238]: https://github.com/lib/pq/pull/1238 [#&#8203;1239]: https://github.com/lib/pq/pull/1239 [#&#8203;1240]: https://github.com/lib/pq/pull/1240 [#&#8203;1243]: https://github.com/lib/pq/pull/1243 [#&#8203;1246]: https://github.com/lib/pq/pull/1246 [#&#8203;1248]: https://github.com/lib/pq/pull/1248 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45My4xIiwidXBkYXRlZEluVmVyIjoiNDIuOTMuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Update module github.com/lib/pq to v1.11.0
Some checks failed
Build Docker image / build (pull_request) Failing after 3m2s
Build Golang packages / test (pull_request) Successful in 1m26s
Build Golang packages / test (push) Successful in 53s
Build Docker image / build (push) Failing after 3m2s
Build Golang packages / release (pull_request) Has been skipped
Build Golang packages / release (push) Has been skipped
c9428d8632
pieter merged commit 69bd33c099 into main 2026-01-29 08:28:16 +01:00
pieter deleted branch renovate/github.com-lib-pq-1.x 2026-01-29 08:28:16 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
energy/opendtu-logger!6
No description provided.