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);