Skip to content

fix(deps): update module github.com/lib/pq to v1.12.3#109

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-lib-pq-1.x
Open

fix(deps): update module github.com/lib/pq to v1.12.3#109
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-lib-pq-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 18, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/lib/pq v1.11.2v1.12.3 age confidence

Release Notes

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

v1.12.3

Compare Source

  • Send datestyle startup parameter, improving compatbility with database engines
    that use a different default datestyle such as EnterpriseDB (#​1312).

v1.12.2

Compare Source

  • Treat io.ErrUnexpectedEOF as driver.ErrBadConn so database/sql discards the
    connection. Since v1.12.0 this could result in permanently broken connections,
    especially with CockroachDB which frequently sends partial messages (#​1299).

v1.12.1

Compare Source

  • Look for pgpass file in ~/.pgpass instead of ~/.postgresql/pgpass (#​1300).

  • Don't clear password if directly set on pq.Config (#​1302).

v1.12.0

Compare Source

  • The next release may change the default sslmode from require to prefer.
    See #​1271 for details.

  • CopyIn() and CopyInToSchema() have been marked as deprecated. These are
    simple query builders and not needed for COPY [..] FROM STDIN support (which
    is not deprecated). (#​1279)

    // Old
    tx.Prepare(CopyIn("temp", "num", "text", "blob", "nothing"))
    
    // Replacement
    tx.Prepare(`copy temp (num, text, blob, nothing) from stdin`)
    
Features
  • Support protocol 3.2, and the min_protocol_version and
    max_protocol_version DSN parameters (#​1258).

  • Support sslmode=prefer and sslmode=allow (#​1270).

  • Support ssl_min_protocol_version and ssl_max_protocol_version (#​1277).

  • Support connection service file to load connection details (#​1285).

  • Support sslrootcert=system and use ~/.postgresql/root.crt as the default
    value of sslrootcert (#​1280, #​1281).

  • Add a new pqerror package with PostgreSQL error codes (#​1275).

    For example, to test if an error is a UNIQUE constraint violation:

    if pqErr, ok := errors.AsType[*pq.Error](err); ok && pqErr.Code == pqerror.UniqueViolation {
        log.Fatalf("email %q already exsts", email)
    }
    

    To make this a bit more convenient, it also adds a pq.As() function:

    pqErr := pq.As(err, pqerror.UniqueViolation)
    if pqErr != nil {
        log.Fatalf("email %q already exsts", email)
    }
    
Fixes
  • Fix SSL key permission check to allow modes stricter than 0600/0640#1265 (#​1265).

  • Fix Hstore to work with binary parameters (#​1278).

  • Clearer error when starting a new query while pq is still processing another
    query (#​1272).

  • Send intermediate CAs with client certificates, so they can be signed by an
    intermediate CA (#​1267).

  • Use time.UTC for UTC aliases such as Etc/UTC (#​1282).


Configuration

📅 Schedule: (UTC)

  • 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 was generated by Mend Renovate. View the repository job log.

@peter-svensson peter-svensson enabled auto-merge (squash) March 18, 2026 17:39
@renovate renovate Bot changed the title fix(deps): update module github.com/lib/pq to v1.12.0 fix(deps): update module github.com/lib/pq to v1.12.1 Mar 30, 2026
@renovate renovate Bot force-pushed the renovate/github.com-lib-pq-1.x branch from c334e55 to 43cb59f Compare March 30, 2026 15:07
@renovate renovate Bot changed the title fix(deps): update module github.com/lib/pq to v1.12.1 fix(deps): update module github.com/lib/pq to v1.12.2 Apr 2, 2026
@renovate renovate Bot force-pushed the renovate/github.com-lib-pq-1.x branch from 43cb59f to 22603b5 Compare April 2, 2026 13:45
@renovate renovate Bot changed the title fix(deps): update module github.com/lib/pq to v1.12.2 fix(deps): update module github.com/lib/pq to v1.12.3 Apr 3, 2026
@renovate renovate Bot force-pushed the renovate/github.com-lib-pq-1.x branch from 22603b5 to 39a417a Compare April 3, 2026 17:22
@renovate renovate Bot changed the title fix(deps): update module github.com/lib/pq to v1.12.3 fix(deps): update module github.com/lib/pq to v1.12.3 - autoclosed Apr 10, 2026
@renovate renovate Bot closed this Apr 10, 2026
auto-merge was automatically disabled April 10, 2026 20:50

Pull request was closed

@renovate renovate Bot deleted the renovate/github.com-lib-pq-1.x branch April 10, 2026 20:50
@renovate renovate Bot changed the title fix(deps): update module github.com/lib/pq to v1.12.3 - autoclosed fix(deps): update module github.com/lib/pq to v1.12.3 Apr 11, 2026
@renovate renovate Bot reopened this Apr 11, 2026
@renovate renovate Bot force-pushed the renovate/github.com-lib-pq-1.x branch 2 times, most recently from 39a417a to 602d4d4 Compare April 11, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants