diff --git a/client/trino-jdbc/src/test/java/io/trino/jdbc/TestJdbcVendorCompatibility.java b/client/trino-jdbc/src/test/java/io/trino/jdbc/TestJdbcVendorCompatibility.java index 9a77450e05df..fb8bfca56233 100644 --- a/client/trino-jdbc/src/test/java/io/trino/jdbc/TestJdbcVendorCompatibility.java +++ b/client/trino-jdbc/src/test/java/io/trino/jdbc/TestJdbcVendorCompatibility.java @@ -570,7 +570,7 @@ private static class PostgresqlReferenceDriver PostgresqlReferenceDriver() { // Use the current latest PostgreSQL version as the reference - postgresqlContainer = new PostgreSQLContainer<>("postgres:12.4"); + postgresqlContainer = new PostgreSQLContainer<>("postgres:15"); postgresqlContainer.start(); } diff --git a/docs/src/main/sphinx/connector/postgresql.md b/docs/src/main/sphinx/connector/postgresql.md index 3a8b41eda771..7cf619367355 100644 --- a/docs/src/main/sphinx/connector/postgresql.md +++ b/docs/src/main/sphinx/connector/postgresql.md @@ -19,7 +19,7 @@ PostgreSQL instances. To connect to PostgreSQL, you need: -- PostgreSQL 10.x or higher. +- PostgreSQL 11.x or higher. - Network access from the Trino coordinator and workers to PostgreSQL. Port 5432 is the default port. diff --git a/plugin/trino-postgresql/src/test/java/io/trino/plugin/postgresql/TestingPostgreSqlServer.java b/plugin/trino-postgresql/src/test/java/io/trino/plugin/postgresql/TestingPostgreSqlServer.java index f62a92f15ccb..9c73e85b69d5 100644 --- a/plugin/trino-postgresql/src/test/java/io/trino/plugin/postgresql/TestingPostgreSqlServer.java +++ b/plugin/trino-postgresql/src/test/java/io/trino/plugin/postgresql/TestingPostgreSqlServer.java @@ -65,7 +65,7 @@ public TestingPostgreSqlServer() public TestingPostgreSqlServer(boolean shouldExposeFixedPorts) { // Use the oldest supported PostgreSQL version - dockerContainer = new PostgreSQLContainer<>("postgres:10.20") + dockerContainer = new PostgreSQLContainer<>("postgres:11") .withStartupAttempts(3) .withDatabaseName(DATABASE) .withUsername(USER) diff --git a/plugin/trino-resource-group-managers/src/test/java/io/trino/plugin/resourcegroups/db/TestDbResourceGroupsPostgresqlFlywayMigration.java b/plugin/trino-resource-group-managers/src/test/java/io/trino/plugin/resourcegroups/db/TestDbResourceGroupsPostgresqlFlywayMigration.java index f3a94acae523..6bda1c6a2008 100644 --- a/plugin/trino-resource-group-managers/src/test/java/io/trino/plugin/resourcegroups/db/TestDbResourceGroupsPostgresqlFlywayMigration.java +++ b/plugin/trino-resource-group-managers/src/test/java/io/trino/plugin/resourcegroups/db/TestDbResourceGroupsPostgresqlFlywayMigration.java @@ -24,7 +24,7 @@ public class TestDbResourceGroupsPostgresqlFlywayMigration @Override protected final JdbcDatabaseContainer startContainer() { - JdbcDatabaseContainer container = new PostgreSQLContainer<>("postgres:10.20"); + JdbcDatabaseContainer container = new PostgreSQLContainer<>("postgres:11"); container.start(); return container; } diff --git a/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePostgresql.java b/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePostgresql.java index 43ca4b3249db..33e06b58d094 100644 --- a/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePostgresql.java +++ b/testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/environment/EnvMultinodePostgresql.java @@ -60,7 +60,7 @@ public void extendEnvironment(Environment.Builder builder) private DockerContainer createPostgreSql() { // Use the oldest supported PostgreSQL version - DockerContainer container = new DockerContainer("postgres:10.20", "postgresql") + DockerContainer container = new DockerContainer("postgres:11", "postgresql") .withEnv("POSTGRES_PASSWORD", "test") .withEnv("POSTGRES_USER", "test") .withEnv("POSTGRES_DB", "test")