From cfb6f26f57421077bee6c34932cbabd7c4e86a3a Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 3 Dec 2026 11:52:57 +0100 Subject: [PATCH 3/5] postgres_fdw: Fix function argument type adjust_foreign_grouping_path_cost() argument "width" should be of type int, not double. The input comes from an int variable and the value is used to pass it to another function taking int, so using double here was just a mistake. --- 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 ccc97d53286..c455bbb80c2 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -527,7 +527,7 @@ static void get_remote_estimate(const char *sql, static void adjust_foreign_grouping_path_cost(PlannerInfo *root, List *pathkeys, double retrieved_rows, - double width, + int width, double limit_tuples, int *p_disabled_nodes, Cost *p_startup_cost, @@ -3963,7 +3963,7 @@ static void adjust_foreign_grouping_path_cost(PlannerInfo *root, List *pathkeys, double retrieved_rows, - double width, + int width, double limit_tuples, int *p_disabled_nodes, Cost *p_startup_cost, -- 2.56.0