Skip to content

Commit e2f2275

Browse files
author
ferguss
committed
Add support for Postgres 17 and update default version
1 parent 4fb7ddc commit e2f2275

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

config.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type Config struct {
3636
// StartTimeout: 15 Seconds
3737
func DefaultConfig() Config {
3838
return Config{
39-
version: V16,
39+
version: V17,
4040
port: 5432,
4141
database: "postgres",
4242
username: "postgres",
@@ -153,11 +153,12 @@ type PostgresVersion string
153153

154154
// Predefined supported Postgres versions.
155155
const (
156-
V16 = PostgresVersion("16.4.0")
157-
V15 = PostgresVersion("15.8.0")
158-
V14 = PostgresVersion("14.13.0")
159-
V13 = PostgresVersion("13.16.0")
160-
V12 = PostgresVersion("12.20.0")
156+
V17 = PostgresVersion("17.5.0")
157+
V16 = PostgresVersion("16.9.0")
158+
V15 = PostgresVersion("15.13.0")
159+
V14 = PostgresVersion("14.18.0")
160+
V13 = PostgresVersion("13.21.0")
161+
V12 = PostgresVersion("12.22.0")
161162
V11 = PostgresVersion("11.22.0")
162163
V10 = PostgresVersion("10.23.0")
163164
V9 = PostgresVersion("9.6.24")

platform-test/platform_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414

1515
func Test_AllMajorVersions(t *testing.T) {
1616
allVersions := []embeddedpostgres.PostgresVersion{
17+
embeddedpostgres.V17,
1718
embeddedpostgres.V16,
1819
embeddedpostgres.V15,
1920
embeddedpostgres.V14,

0 commit comments

Comments
 (0)