Moves struct to the header

pull/4513/head
Halil Ozan Akgul 2021-01-14 16:35:44 +03:00
parent 4b9285353d
commit 9407965817
2 changed files with 13 additions and 15 deletions

View File

@ -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 *);

View File

@ -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 */