postgres.git / summary / log / commit / refs
commit 5951bf2ba56cd4806955fb6299529bde026de1ac
Author: Etsuro Fujita <efujita@postgresql.org>
Date: Sat Jul 18 18:50:01 2026 +0000
Further cleanup for commit 54cd6fc83.
Commit 54cd6fc83 set the version argument for the stats-import functions
introduced by that commit, which is of type int, using UInt32GetDatum,
not Int32GetDatum. This would be completely harmless as it's positive
and currently ignored in the functions, but let's fix that code to use
Int32GetDatum for consistency.
Author: Etsuro Fujita <etsuro.fujita@gmail.com>
Discussion: https://postgr.es/m/CAPmGK14aremJGrPezVwFqWt7dnrMhD3KF1DgzsRygAUPETBU7w%40mail.gmail.com
Backpatch-through: 19
contrib/postgres_fdw/postgres_fdw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 70de942de12..8b660a6c02c 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -6029,7 +6029,7 @@ import_fetched_statistics(Relation relation,
NullableDatum args[ATTSTATS_NUM_FIELDS];
/* Set the 'version' parameter, which is common to both statistics. */
- args[0].value = UInt32GetDatum(remstats->version);
+ args[0].value = Int32GetDatum(remstats->version);
args[0].isnull = false;
/*
[parent: 8bc479627ec4]