From fa1f15f9ab6dd30cca4d767288a3420a4646701b Mon Sep 17 00:00:00 2001 From: "Sami Imseih (AWS)" Date: Thu, 12 Mar 2026 20:01:34 +0000 Subject: [PATCH v1 1/1] pg_plan_advice: Fix compilation waning 5883ff30b0 declared an RTEKind variable uninitialized. Initialize it to RTE_RELATION to suppress the compiler warning, as it will always be set correctly in the loop before use. --- contrib/pg_plan_advice/pgpa_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_plan_advice/pgpa_scan.c b/contrib/pg_plan_advice/pgpa_scan.c index 14bde3e149a..05479c535a9 100644 --- a/contrib/pg_plan_advice/pgpa_scan.c +++ b/contrib/pg_plan_advice/pgpa_scan.c @@ -243,7 +243,7 @@ unique_nonjoin_rtekind(Bitmapset *relids, List *rtable) { int rti = -1; bool first = true; - RTEKind rtekind; + RTEKind rtekind = RTE_RELATION; /* keep compiler happy */ Assert(relids != NULL); -- 2.47.3