diff --git a/src/backend/distributed/commands/alter_table.c b/src/backend/distributed/commands/alter_table.c index 87fe80cca..9a27c8f3c 100644 --- a/src/backend/distributed/commands/alter_table.c +++ b/src/backend/distributed/commands/alter_table.c @@ -67,20 +67,6 @@ "a foreign key relationship with %s by executing SELECT " \ "undistribute_table($$%s$$, cascade_via_foreign_keys=>true)" -typedef struct TableConversionReturn -{ - /* - * commands to create foreign keys for the table - * - * When the table conversion is cascaded we can recreate - * some of the foreign keys of the cascaded tables. So with this - * list we can return it to the initial conversion operation so - * foreign keys can be created after every colocated table is - * converted. - */ - List *foreignKeyCommands; -}TableConversionReturn; - typedef TableConversionReturn *(*TableConversionFunction)(struct TableConversionParameters *); diff --git a/src/include/distributed/metadata_utility.h b/src/include/distributed/metadata_utility.h index 4d41a7149..2fc8474ff 100644 --- a/src/include/distributed/metadata_utility.h +++ b/src/include/distributed/metadata_utility.h @@ -155,7 +155,19 @@ typedef struct TableConversionParameters bool cascadeViaForeignKeys; } TableConversionParameters; -typedef struct TableConversionReturn TableConversionReturn; +typedef struct TableConversionReturn +{ + /* + * commands to create foreign keys for the table + * + * When the table conversion is cascaded we can recreate + * some of the foreign keys of the cascaded tables. So with this + * list we can return it to the initial conversion operation so + * foreign keys can be created after every colocated table is + * converted. + */ + List *foreignKeyCommands; +}TableConversionReturn; /* Config variable managed via guc.c */