From: Robert Haas Date: Tue, 24 Jun 2025 16:24:29 +0000 (-0400) Subject: more comments X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=32fa86dcf343aefaca9619004984d86ac4429ef1;p=users%2Frhaas%2Fpostgres.git more comments --- diff --git a/contrib/pg_plan_advice/pgpa_join.c b/contrib/pg_plan_advice/pgpa_join.c index 81fec87169..c73df0b8d7 100644 --- a/contrib/pg_plan_advice/pgpa_join.c +++ b/contrib/pg_plan_advice/pgpa_join.c @@ -776,6 +776,9 @@ pgpa_debug_out_join_member(StringInfo buf, pgpa_join_member *member) appendStringInfo(buf, "%d", member->rti); } +/* + * Get a C string that corresponds to the specified join clump strategy. + */ static char * pgpa_cstring_join_clump_strategy(pgpa_join_clump_strategy strategy) { @@ -792,6 +795,9 @@ pgpa_cstring_join_clump_strategy(pgpa_join_clump_strategy strategy) Assert(false); } +/* + * Get a C string that corresponds to the specified join strategy. + */ static char * pgpa_cstring_join_strategy(pgpa_join_strategy strategy) { @@ -814,12 +820,18 @@ pgpa_cstring_join_strategy(pgpa_join_strategy strategy) Assert(false); } +/* + * Is this a Result node that has a child? + */ static bool is_result_node_with_child(Plan *plan) { return IsA(plan, Result) && plan->lefttree != NULL; } +/* + * Is this a Plan node whose purpose is put the data in a certain order? + */ static bool is_sorting_plan(Plan *plan) {