Don't require -DEXPERIMENTAL when building against PG17

This commit is contained in:
Sven Klemm 2024-09-12 18:10:10 +02:00 committed by Sven Klemm
parent 153b689bf5
commit abd637beaa
2 changed files with 2 additions and 3 deletions

View File

@ -186,7 +186,6 @@ m["include"].append(
{
"pg": "17",
"snapshot": "snapshot",
"tsdb_build_args": "-DEXPERIMENTAL=ON",
}
)
)

View File

@ -350,9 +350,9 @@ message(
# Ensure that PostgreSQL version is supported and consistent with src/compat.h
# version check
if((${PG_VERSION_MAJOR} LESS "14")
OR (${PG_VERSION_MAJOR} GREATER "16")
OR (${PG_VERSION_MAJOR} GREATER "17")
AND NOT (${EXPERIMENTAL}))
message(FATAL_ERROR "TimescaleDB only supports PostgreSQL 14, 15 and 16")
message(FATAL_ERROR "TimescaleDB only supports PostgreSQL 14, 15, 16 and 17")
endif()
# Get PostgreSQL configuration from pg_config