summaryrefslogtreecommitdiff
path: root/src/include/commands/tablecmds.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/commands/tablecmds.h')
-rw-r--r--src/include/commands/tablecmds.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h
index 6832470d387..e9b0fab0767 100644
--- a/src/include/commands/tablecmds.h
+++ b/src/include/commands/tablecmds.h
@@ -21,7 +21,8 @@
#include "storage/lock.h"
#include "utils/relcache.h"
-struct AlterTableUtilityContext; /* avoid including tcop/utility.h here */
+typedef struct AlterTableUtilityContext AlterTableUtilityContext; /* avoid including
+ * tcop/utility.h here */
extern ObjectAddress DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
@@ -34,7 +35,7 @@ extern void RemoveRelations(DropStmt *drop);
extern Oid AlterTableLookupRelation(AlterTableStmt *stmt, LOCKMODE lockmode);
extern void AlterTable(AlterTableStmt *stmt, LOCKMODE lockmode,
- struct AlterTableUtilityContext *context);
+ AlterTableUtilityContext *context);
extern LOCKMODE AlterTableGetLockLevel(List *cmds);