citus/src/backend/distributed/deparser
Cédric Villemain 8011824b1e Fix #7684 : order "planner" tree
Similar to other bugs affected by citus usage of ruletuils: the provided
tree as input is distinct from the tree expected in ruleutils in
PostgreSQL.
As a consequence, it is required in some places to re-order the tree
structure to make it compliant or "back" to the parser tree (before it's
rewritten and reordered by PostgreSQL to optimize execution). Or to
lookup the target list and ensure it's the one "we expect".
Fox this bug, the `get_rule_sortgroupclause()` is used to check if
target list entry `resname` is defined, and use it directly if it
exists.

No benchmark where run, it's not expected to impact a lot.
2024-09-25 08:28:00 +02:00
..
citus_deparseutils.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
citus_grantutils.c Fixes granted by cascade/restrict statements for revoke (#7517) 2024-02-19 15:44:21 +03:00
citus_ruleutils.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
citus_setutils.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse.c Add support for TEXT SEARCH CONFIGURATION objects (#5685) 2022-02-17 13:12:46 +01:00
deparse_attribute_stmts.c Introduce GetDistributeObjectOps to organize dispatch of logic dependent on node/object type 2020-01-09 18:24:29 +00:00
deparse_collation_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_comment_stmts.c Adds comment on database and role propagation (#7388) 2024-01-18 20:58:44 +03:00
deparse_database_stmts.c Test that we check unsupported options for CREATE DATABASE from non-main dbs (#7532) 2024-02-23 10:37:11 +00:00
deparse_domain_stmts.c get rid of {Push/Pop}OverrideSearchPath (#7145) 2023-09-05 17:40:22 +02:00
deparse_extension_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_foreign_data_wrapper_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_foreign_server_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_function_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_owned_stmts.c Adds REASSIGN OWNED BY propagation (#7319) 2023-12-28 15:15:58 +03:00
deparse_publication_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_role_stmts.c Fixes granted by cascade/restrict statements for revoke (#7517) 2024-02-19 15:44:21 +03:00
deparse_schema_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_seclabel_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_sequence_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_statistics_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
deparse_table_stmts.c Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522) 2024-03-20 11:06:05 +03:00
deparse_text_search.c Adds comment on database and role propagation (#7388) 2024-01-18 20:58:44 +03:00
deparse_type_stmts.c Drop PG13 Support Phase 2 - Remove PG13 specific paths/tests (#7007) 2023-06-21 14:18:23 +03:00
deparse_view_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
format_collate.c Remove unused functions that cppcheck found 2020-10-19 13:50:52 +03:00
objectaddress.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify.c Introduce GetDistributeObjectOps to organize dispatch of logic dependent on node/object type 2020-01-09 18:24:29 +00:00
qualify_aggregate_stmts.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_collation_stmt.c Fixes ALTER COLLATION encoding does not exist bug 2022-03-22 17:42:20 +03:00
qualify_domain.c Drop PG13 Support Phase 2 - Remove PG13 specific paths/tests (#7007) 2023-06-21 14:18:23 +03:00
qualify_function_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_publication_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_role_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_sequence_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_statistics_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_table_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_text_search_stmts.c qualify text dict and conf respect missingok (#6120) 2022-08-03 13:13:53 +03:00
qualify_type_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
qualify_view_stmt.c Sort includes (#7326) 2023-11-23 18:19:54 +01:00
ruleutils_14.c Fix #7684 : order "planner" tree 2024-09-25 08:28:00 +02:00
ruleutils_15.c Fix #7684 : order "planner" tree 2024-09-25 08:28:00 +02:00
ruleutils_16.c Fix #7684 : order "planner" tree 2024-09-25 08:28:00 +02:00