Skip to content

Commit d15aa7d

Browse files
committed
Bumping PGX version to 5.2
1 parent 4f82927 commit d15aa7d

File tree

11 files changed

+21
-58
lines changed

11 files changed

+21
-58
lines changed

cmd/standby_cleaner/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/fly-apps/postgres-flex/internal/flypg"
1010
"github.com/fly-apps/postgres-flex/internal/flypg/admin"
11-
"github.com/jackc/pgx/v4"
11+
"github.com/jackc/pgx/v5"
1212

1313
"golang.org/x/exp/maps"
1414
)

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ require (
77
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
88
github.com/hashicorp/consul/api v1.18.0
99
github.com/jackc/pgconn v1.10.0
10-
github.com/jackc/pgx/v4 v4.13.0
10+
github.com/jackc/pgx/v5 v5.2.0
1111
github.com/pkg/errors v0.9.1
1212
github.com/pkg/term v1.1.0
1313
github.com/superfly/fly-checks v0.0.0-20221220181621-bcbf6f4dc6d7
1414
golang.org/x/exp v0.0.0-20230105202349-8879d0199aa3
15-
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
15+
golang.org/x/sync v0.0.0-20220923202941-7f9b1623fab7
1616
)
1717

1818
require (
@@ -30,13 +30,12 @@ require (
3030
github.com/jackc/pgpassfile v1.0.0 // indirect
3131
github.com/jackc/pgproto3/v2 v2.1.1 // indirect
3232
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
33-
github.com/jackc/pgtype v1.8.1 // indirect
3433
github.com/mattn/go-colorable v0.1.6 // indirect
3534
github.com/mattn/go-isatty v0.0.12 // indirect
3635
github.com/mitchellh/go-homedir v1.1.0 // indirect
3736
github.com/mitchellh/mapstructure v1.4.1 // indirect
3837
github.com/stretchr/testify v1.8.1 // indirect
39-
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
38+
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90 // indirect
4039
golang.org/x/sys v0.2.0 // indirect
41-
golang.org/x/text v0.3.6 // indirect
40+
golang.org/x/text v0.3.8 // indirect
4241
)

go.sum

Lines changed: 8 additions & 44 deletions
Large diffs are not rendered by default.

internal/api/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/fly-apps/postgres-flex/internal/flycheck"
99
"github.com/fly-apps/postgres-flex/internal/flypg"
1010
"github.com/go-chi/chi/v5"
11-
"github.com/jackc/pgx/v4"
11+
"github.com/jackc/pgx/v5"
1212
)
1313

1414
const Port = 5500

internal/api/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77

88
"github.com/jackc/pgconn"
9-
"github.com/jackc/pgx/v4"
9+
"github.com/jackc/pgx/v5"
1010
)
1111

1212
func renderJSON(w http.ResponseWriter, data interface{}, status int) {

internal/flycheck/pg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
"github.com/fly-apps/postgres-flex/internal/flypg"
8-
"github.com/jackc/pgx/v4"
8+
"github.com/jackc/pgx/v5"
99
"github.com/pkg/errors"
1010
"github.com/superfly/fly-checks/check"
1111
)

internal/flypg/admin/admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77
"strings"
88

9-
"github.com/jackc/pgx/v4"
9+
"github.com/jackc/pgx/v5"
1010
)
1111

1212
func GrantAccess(ctx context.Context, pg *pgx.Conn, username string) error {

internal/flypg/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/fly-apps/postgres-flex/internal/flypg/state"
1919
"github.com/fly-apps/postgres-flex/internal/privnet"
2020
"github.com/fly-apps/postgres-flex/internal/utils"
21-
"github.com/jackc/pgx/v4"
21+
"github.com/jackc/pgx/v5"
2222
)
2323

2424
type Credentials struct {

internal/flypg/pg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/fly-apps/postgres-flex/internal/flypg/admin"
1414
"github.com/fly-apps/postgres-flex/internal/utils"
15-
"github.com/jackc/pgx/v4"
15+
"github.com/jackc/pgx/v5"
1616
"github.com/pkg/errors"
1717
)
1818

internal/flypg/pgbouncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/fly-apps/postgres-flex/internal/utils"
1111

12-
"github.com/jackc/pgx/v4"
12+
"github.com/jackc/pgx/v5"
1313
)
1414

1515
type PGBouncer struct {

0 commit comments

Comments
 (0)