citus/src/backend/distributed/deparser
Emel Şimşek 3c4b10b804 Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522)
DESCRIPTION: Fixes a crash caused by some form of ALTER TABLE ADD COLUMN
statements. When adding multiple columns, if one of the ADD COLUMN
statements contains a FOREIGN constraint ommitting the referenced
columns in the statement, a SEGFAULT occurs.

For instance, the following statement results in a crash:

```
  ALTER TABLE lt ADD COLUMN new_col1 bool,
                          ADD COLUMN new_col2 int references rt;

```

Fixes #7520.

(cherry picked from commit fdd658acec)
2024-04-16 17:46:42 +02:00
..
citus_grantutils.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
citus_ruleutils.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02: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 Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_database_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_domain_stmts.c get rid of {Push/Pop}OverrideSearchPath (#7145) 2023-09-05 17:40:22 +02:00
deparse_extension_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_foreign_data_wrapper_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_foreign_server_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_function_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_owned_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_publication_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_role_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_schema_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_sequence_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_statistics_stmts.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
deparse_table_stmts.c Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522) 2024-04-16 17:46:42 +02:00
deparse_text_search.c PG15: Value -> String, Integer, Float. 2022-05-02 10:12:03 -07: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 Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
format_collate.c Remove unused functions that cppcheck found 2020-10-19 13:50:52 +03:00
objectaddress.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02: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 Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02: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 Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
qualify_publication_stmt.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
qualify_role_stmt.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
qualify_sequence_stmt.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
qualify_statistics_stmt.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
qualify_table_stmt.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02: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 Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
qualify_view_stmt.c Actually sort includes after cherry-pick 2024-04-16 17:46:15 +02:00
ruleutils_14.c move pg_version_constants.h to toplevel include (#7335) 2024-04-16 17:34:25 +02:00
ruleutils_15.c move pg_version_constants.h to toplevel include (#7335) 2024-04-16 17:34:25 +02:00
ruleutils_16.c move pg_version_constants.h to toplevel include (#7335) 2024-04-16 17:34:25 +02:00