From eb8098eb148dc74fa8fffbf877d27955b76513b1 Mon Sep 17 00:00:00 2001 From: Etsuro Fujita Date: Tue, 6 Oct 2026 18:30:01 +0900 Subject: [PATCH] postgres_fdw: Fix typo in server version check in AcquireSampleRowsFunc. s/95000/90500/g Oversight in commit 8ad51b5f4. Author: Etsuro Fujita Reviewed-by: Chao Li Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/CAPmGK143-FdvSCmKc3bqfAQeGNs_aqVqF3op25TR_NTfBmL4BQ%40mail.gmail.com Backpatch-through: 16 --- contrib/postgres_fdw/postgres_fdw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 7796a4144a5..788cd1eb29d 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -5199,7 +5199,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, @@ -5276,7 +5276,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;