1 /*-------------------------------------------------------------------------
5 * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
8 * src/include/tcop/deparse_utility.h
10 *-------------------------------------------------------------------------
12 #ifndef DEPARSE_UTILITY_H
13 #define DEPARSE_UTILITY_H
15 #include "access/attnum.h"
16 #include "catalog/objectaddress.h"
17 #include "nodes/nodes.h"
18 #include "utils/aclchk_internal.h"
22 * Support for keeping track of collected commands.
24 typedef enum CollectedCommandType
30 SCT_AlterDefaultPrivileges
,
33 } CollectedCommandType
;
36 * For ALTER TABLE commands, we keep a list of the subcommands therein.
38 typedef struct CollectedATSubcmd
40 ObjectAddress address
; /* affected column, constraint, index, ... */
44 typedef struct CollectedCommand
46 CollectedCommandType type
;
56 ObjectAddress address
;
57 ObjectAddress secondaryObject
;
60 /* ALTER TABLE, and internal uses thereof */
74 /* ALTER OPERATOR FAMILY */
77 ObjectAddress address
;
82 /* CREATE OPERATOR CLASS */
85 ObjectAddress address
;
90 /* ALTER TEXT SEARCH CONFIGURATION ADD/ALTER/DROP MAPPING */
93 ObjectAddress address
;
98 /* ALTER DEFAULT PRIVILEGES */
105 struct CollectedCommand
*parent
; /* when nested */
108 #endif /* DEPARSE_UTILITY_H */