citus/src
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
..
backend Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522) 2024-04-16 17:46:42 +02:00
include Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522) 2024-04-16 17:46:42 +02:00
test Fix crash caused by some form of ALTER TABLE ADD COLUMN statements. (#7522) 2024-04-16 17:46:42 +02:00