chore(deps): update lib/pq to v1.11.2 to fix Supabase PostgreSQL connection regression (#1644)

* fix: update lib/pq to v1.11.2 to fix Supabase PostgreSQL connection regression

lib/pq v1.11.0 introduced a Config struct refactor that unconditionally
sends an empty 'options' parameter during the PostgreSQL startup handshake.
Supabase's Supavisor connection pooler rejects startup messages containing
empty parameters, returning :bad_startup_payload and causing an EOF panic
during Gatus initialization.

This bump to lib/pq v1.11.2 (commit 1412805) fixes the issue by omitting
empty startup parameters from the handshake.

Fixes TwiN/gatus#1633
See: https://github.com/lib/pq/issues/1259

Changes:
- go.mod: bump github.com/lib/pq v1.11.1 -> v1.11.2
- go.sum: update checksums for lib/pq v1.11.2
- storage/store/sql/supabase_test.go: add regression test

This contribution was AI-assisted.

* Remove regression test per maintainer feedback

@TwiN requested removal of the test - version bumps rarely need regression tests since they don't get bumped back down.

---------

Co-authored-by: Wahaj Ahmed <wahajahmed010@gmail.com>
Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
Wahaj Ahmed 2026-05-16 00:34:34 +02:00 committed by GitHub
parent fba833f64b
commit 9095a5254e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

2
go.mod
View File

@ -20,7 +20,7 @@ require (
github.com/google/uuid v1.6.0
github.com/gorilla/websocket v1.5.3
github.com/ishidawataru/sctp v0.0.0-20251114114122-19ddcbc6aae2
github.com/lib/pq v1.11.1
github.com/lib/pq v1.11.2
github.com/miekg/dns v1.1.72
github.com/prometheus-community/pro-bing v0.8.0
github.com/prometheus/client_golang v1.23.2

4
go.sum
View File

@ -123,8 +123,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/lib/pq v1.11.1 h1:wuChtj2hfsGmmx3nf1m7xC2XpK6OtelS2shMY+bGMtI=
github.com/lib/pq v1.11.1/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA=
github.com/lib/pq v1.11.2 h1:x6gxUeu39V0BHZiugWe8LXZYZ+Utk7hSJGThs8sdzfs=
github.com/lib/pq v1.11.2/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA=
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=