postgres.git / summary / log / commit / refs
commit 104ac65e4bd6c97da7c19061463c6df85a0c9969
Author: Etsuro Fujita <efujita@postgresql.org>
Date: Tue Oct 06 09:30:05 2026 +0000
First released in: 16.16, 17.12, 18.7, 19.0
postgres_fdw: Fix typo in server version check in AcquireSampleRowsFunc.
s/95000/90500/g
Oversight in commit 8ad51b5f4.
Author: Etsuro Fujita <etsuro.fujita@gmail.com>
Reviewed-by: Chao Li <lic@highgo.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
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 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;
[parent: 7fb765945b51]