From 12f0658daf3051b768672eab120ef6cdbfbe4164 Mon Sep 17 00:00:00 2001 From: "Anton A. Melnikov" Date: Thu, 26 Sep 2024 12:52:59 +0300 Subject: [PATCH 1/2] PGPRO-10866: Add static decoration to avoid error: "no previous extern declaration for non-static variable [-Wmissing-variable-declarations]" Tags: vops --- vops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vops.c b/vops.c index 8f3952d..0722b6d 100644 --- a/vops.c +++ b/vops.c @@ -2772,7 +2772,7 @@ vops_last_combine(PG_FUNCTION_ARGS) } -const size_t vops_sizeof[] = +static const size_t vops_sizeof[] = { sizeof(vops_bool), sizeof(vops_char), From bc43f499b4c1fc4f93f53300ee44cdc6e67ebeb3 Mon Sep 17 00:00:00 2001 From: "Anton A. Melnikov" Date: Thu, 26 Sep 2024 12:58:31 +0300 Subject: [PATCH 2/2] PGPRO-10866: Update create_foreignscan_path() calls. Caused by: - e22253467942fdb100087787c3e1e3a8620c54b2 (PostgreSQL) Treat number of disabled nodes in a path as a separate cost metric. - a9375a9e79f8115dc3b2ee9045fb656ebe271b6c (Postgres Pro Enterprise) [PGPRO-5825]: Port contrib/in_memory to EE15 Tags: vops --- vops_fdw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vops_fdw.c b/vops_fdw.c index e84e790..ce0f11f 100644 --- a/vops_fdw.c +++ b/vops_fdw.c @@ -438,6 +438,7 @@ postgresGetForeignPaths(PlannerInfo *root, baserel, NULL, /* default pathtarget */ fpinfo->rows, + 0, fpinfo->startup_cost, fpinfo->total_cost, NIL, /* no pathkeys */ @@ -1408,6 +1409,7 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel, grouped_rel, grouped_rel->reltarget, rows, + 0, startup_cost, total_cost, NIL, /* no pathkeys */