From 55332e4c5e9fdd474239dc247402de8377b37807 Mon Sep 17 00:00:00 2001 From: Anthonin Bonnefoy Date: Tue, 9 May 2023 17:08:42 +0200 Subject: [PATCH] Fix version check --- postgres/tests/compose/resources/03_load_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/tests/compose/resources/03_load_data.sh b/postgres/tests/compose/resources/03_load_data.sh index 5399e2bf985f37..aee6a034aec155 100755 --- a/postgres/tests/compose/resources/03_load_data.sh +++ b/postgres/tests/compose/resources/03_load_data.sh @@ -19,7 +19,7 @@ psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" datadog_test <<-EOSQL GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO blocking_bob; EOSQL -if [[ "$PG_MAJOR" != "9" && "$PG_MAJOR" != "10" ]]; then +if [[ !("$PG_MAJOR" == 9.*) && !("$PG_MAJOR" == 10) ]]; then psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" datadog_test <<-EOSQL CREATE TABLE test_part (id SERIAL PRIMARY KEY, filler text) PARTITION BY RANGE (id); CREATE TABLE test_part1 PARTITION OF test_part FOR VALUES FROM (MINVALUE) TO (500);