Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-05-22 12:23:06 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-05-22 15:44:44 +0300
commit8ec73603f202bf8d261fac95882f9bd184f75f79 (patch)
tree9fffa91552c95deb27b0d58d552225da2caa21db /go.mod
parent25747c90707aed83e5ca3ebf85fc522a258f1392 (diff)
datastore: Convert pgx library to v5
Upgrade the pgx library to v5. The most notable change that we need to adapt to is that the old "prefer_simple_protocol=true" connection option has been reworked to "default_query_exec_mode". Other than that, the major release has also introduced support for generics. Unfortunately, we cannot really use them given that we use the `database/sql` interface instead of the native pgx one. Ideally, we'd thus migrate to use the native interface, but we can't easily do that because the `rubenv/sql-migrate` library depends on the `database/sql` interface directly. Note that this does not yet migrate the pgtypes dependency. This will be done in the next commit.
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod6
1 files changed, 2 insertions, 4 deletions
diff --git a/go.mod b/go.mod
index f7ef99864..4a618f99c 100644
--- a/go.mod
+++ b/go.mod
@@ -22,9 +22,8 @@ require (
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/hashicorp/golang-lru/v2 v2.0.2
github.com/hashicorp/yamux v0.1.1
- github.com/jackc/pgconn v1.14.0
github.com/jackc/pgtype v1.14.0
- github.com/jackc/pgx/v4 v4.18.1
+ github.com/jackc/pgx/v5 v5.3.1
github.com/kelseyhightower/envconfig v1.4.0
github.com/libgit2/git2go/v34 v34.0.0
github.com/miekg/dns v1.1.54
@@ -133,11 +132,10 @@ require (
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hhatto/gorst v0.0.0-20181029133204-ca9f730cac5b // indirect
github.com/imdario/mergo v0.3.13 // indirect
- github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
- github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
+ github.com/jackc/pgx/v4 v4.18.1 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect