diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 8f47f15226d..fe70a9b0123 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -5165,7 +5165,7 @@ postgresAcquireSampleRowsFunc(Relation relation, int elevel, * Error-out if explicitly required one of the TABLESAMPLE methods, but * the server does not support it. */ - if ((server_version_num < 95000) && + if ((server_version_num < 90500) && (method == ANALYZE_SAMPLE_SYSTEM || method == ANALYZE_SAMPLE_BERNOULLI)) ereport(ERROR, @@ -5242,7 +5242,7 @@ postgresAcquireSampleRowsFunc(Relation relation, int elevel, */ if (method == ANALYZE_SAMPLE_AUTO) { - if (server_version_num < 95000) + if (server_version_num < 90500) method = ANALYZE_SAMPLE_RANDOM; else method = ANALYZE_SAMPLE_BERNOULLI;