PostgreSQL Source Code  git master
cmdtaglist.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------
2  *
3  * cmdtaglist.h
4  * Command tags
5  *
6  * The command tag list is kept in its own source file for possible use
7  * by automatic tools. The exact representation of a command tag is
8  * determined by the PG_CMDTAG macro, which is not defined in this file;
9  * it can be defined by the caller for special purposes.
10  *
11  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
12  * Portions Copyright (c) 1994, Regents of the University of California
13  *
14  * src/include/tcop/cmdtaglist.h
15  *
16  *----------------------------------------------------------------------
17  */
18 
19 /* there is deliberately not an #ifndef CMDTAGLIST_H here */
20 
21 /*
22  * List of command tags. The entries must be sorted alphabetically on their
23  * textual name, so that we can bsearch on it; see GetCommandTagEnum().
24  */
25 
26 /* symbol name, textual name, event_trigger_ok, table_rewrite_ok, rowcount */
27 PG_CMDTAG(CMDTAG_UNKNOWN, "???", false, false, false)
28 PG_CMDTAG(CMDTAG_ALTER_ACCESS_METHOD, "ALTER ACCESS METHOD", true, false, false)
29 PG_CMDTAG(CMDTAG_ALTER_AGGREGATE, "ALTER AGGREGATE", true, false, false)
30 PG_CMDTAG(CMDTAG_ALTER_CAST, "ALTER CAST", true, false, false)
31 PG_CMDTAG(CMDTAG_ALTER_COLLATION, "ALTER COLLATION", true, false, false)
32 PG_CMDTAG(CMDTAG_ALTER_CONSTRAINT, "ALTER CONSTRAINT", true, false, false)
33 PG_CMDTAG(CMDTAG_ALTER_CONVERSION, "ALTER CONVERSION", true, false, false)
34 PG_CMDTAG(CMDTAG_ALTER_DATABASE, "ALTER DATABASE", false, false, false)
35 PG_CMDTAG(CMDTAG_ALTER_DEFAULT_PRIVILEGES, "ALTER DEFAULT PRIVILEGES", true, false, false)
36 PG_CMDTAG(CMDTAG_ALTER_DOMAIN, "ALTER DOMAIN", true, false, false)
37 PG_CMDTAG(CMDTAG_ALTER_EVENT_TRIGGER, "ALTER EVENT TRIGGER", false, false, false)
38 PG_CMDTAG(CMDTAG_ALTER_EXTENSION, "ALTER EXTENSION", true, false, false)
39 PG_CMDTAG(CMDTAG_ALTER_FOREIGN_DATA_WRAPPER, "ALTER FOREIGN DATA WRAPPER", true, false, false)
40 PG_CMDTAG(CMDTAG_ALTER_FOREIGN_TABLE, "ALTER FOREIGN TABLE", true, false, false)
41 PG_CMDTAG(CMDTAG_ALTER_FUNCTION, "ALTER FUNCTION", true, false, false)
42 PG_CMDTAG(CMDTAG_ALTER_INDEX, "ALTER INDEX", true, false, false)
43 PG_CMDTAG(CMDTAG_ALTER_LANGUAGE, "ALTER LANGUAGE", true, false, false)
44 PG_CMDTAG(CMDTAG_ALTER_LARGE_OBJECT, "ALTER LARGE OBJECT", true, false, false)
45 PG_CMDTAG(CMDTAG_ALTER_MATERIALIZED_VIEW, "ALTER MATERIALIZED VIEW", true, false, false)
46 PG_CMDTAG(CMDTAG_ALTER_OPERATOR, "ALTER OPERATOR", true, false, false)
47 PG_CMDTAG(CMDTAG_ALTER_OPERATOR_CLASS, "ALTER OPERATOR CLASS", true, false, false)
48 PG_CMDTAG(CMDTAG_ALTER_OPERATOR_FAMILY, "ALTER OPERATOR FAMILY", true, false, false)
49 PG_CMDTAG(CMDTAG_ALTER_POLICY, "ALTER POLICY", true, false, false)
50 PG_CMDTAG(CMDTAG_ALTER_PROCEDURE, "ALTER PROCEDURE", true, false, false)
51 PG_CMDTAG(CMDTAG_ALTER_PUBLICATION, "ALTER PUBLICATION", true, false, false)
52 PG_CMDTAG(CMDTAG_ALTER_ROLE, "ALTER ROLE", false, false, false)
53 PG_CMDTAG(CMDTAG_ALTER_ROUTINE, "ALTER ROUTINE", true, false, false)
54 PG_CMDTAG(CMDTAG_ALTER_RULE, "ALTER RULE", true, false, false)
55 PG_CMDTAG(CMDTAG_ALTER_SCHEMA, "ALTER SCHEMA", true, false, false)
56 PG_CMDTAG(CMDTAG_ALTER_SEQUENCE, "ALTER SEQUENCE", true, false, false)
57 PG_CMDTAG(CMDTAG_ALTER_SERVER, "ALTER SERVER", true, false, false)
58 PG_CMDTAG(CMDTAG_ALTER_STATISTICS, "ALTER STATISTICS", true, false, false)
59 PG_CMDTAG(CMDTAG_ALTER_SUBSCRIPTION, "ALTER SUBSCRIPTION", true, false, false)
60 PG_CMDTAG(CMDTAG_ALTER_SYSTEM, "ALTER SYSTEM", false, false, false)
61 PG_CMDTAG(CMDTAG_ALTER_TABLE, "ALTER TABLE", true, true, false)
62 PG_CMDTAG(CMDTAG_ALTER_TABLESPACE, "ALTER TABLESPACE", false, false, false)
63 PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_CONFIGURATION, "ALTER TEXT SEARCH CONFIGURATION", true, false, false)
64 PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_DICTIONARY, "ALTER TEXT SEARCH DICTIONARY", true, false, false)
65 PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_PARSER, "ALTER TEXT SEARCH PARSER", true, false, false)
66 PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_TEMPLATE, "ALTER TEXT SEARCH TEMPLATE", true, false, false)
67 PG_CMDTAG(CMDTAG_ALTER_TRANSFORM, "ALTER TRANSFORM", true, false, false)
68 PG_CMDTAG(CMDTAG_ALTER_TRIGGER, "ALTER TRIGGER", true, false, false)
69 PG_CMDTAG(CMDTAG_ALTER_TYPE, "ALTER TYPE", true, true, false)
70 PG_CMDTAG(CMDTAG_ALTER_USER_MAPPING, "ALTER USER MAPPING", true, false, false)
71 PG_CMDTAG(CMDTAG_ALTER_VIEW, "ALTER VIEW", true, false, false)
72 PG_CMDTAG(CMDTAG_ANALYZE, "ANALYZE", false, false, false)
73 PG_CMDTAG(CMDTAG_BEGIN, "BEGIN", false, false, false)
74 PG_CMDTAG(CMDTAG_CALL, "CALL", false, false, false)
75 PG_CMDTAG(CMDTAG_CHECKPOINT, "CHECKPOINT", false, false, false)
76 PG_CMDTAG(CMDTAG_CLOSE, "CLOSE", false, false, false)
77 PG_CMDTAG(CMDTAG_CLOSE_CURSOR, "CLOSE CURSOR", false, false, false)
78 PG_CMDTAG(CMDTAG_CLOSE_CURSOR_ALL, "CLOSE CURSOR ALL", false, false, false)
79 PG_CMDTAG(CMDTAG_CLUSTER, "CLUSTER", false, false, false)
80 PG_CMDTAG(CMDTAG_COMMENT, "COMMENT", true, false, false)
81 PG_CMDTAG(CMDTAG_COMMIT, "COMMIT", false, false, false)
82 PG_CMDTAG(CMDTAG_COMMIT_PREPARED, "COMMIT PREPARED", false, false, false)
83 PG_CMDTAG(CMDTAG_COPY, "COPY", false, false, true)
84 PG_CMDTAG(CMDTAG_COPY_FROM, "COPY FROM", false, false, false)
85 PG_CMDTAG(CMDTAG_CREATE_ACCESS_METHOD, "CREATE ACCESS METHOD", true, false, false)
86 PG_CMDTAG(CMDTAG_CREATE_AGGREGATE, "CREATE AGGREGATE", true, false, false)
87 PG_CMDTAG(CMDTAG_CREATE_CAST, "CREATE CAST", true, false, false)
88 PG_CMDTAG(CMDTAG_CREATE_COLLATION, "CREATE COLLATION", true, false, false)
89 PG_CMDTAG(CMDTAG_CREATE_CONSTRAINT, "CREATE CONSTRAINT", true, false, false)
90 PG_CMDTAG(CMDTAG_CREATE_CONVERSION, "CREATE CONVERSION", true, false, false)
91 PG_CMDTAG(CMDTAG_CREATE_DATABASE, "CREATE DATABASE", false, false, false)
92 PG_CMDTAG(CMDTAG_CREATE_DOMAIN, "CREATE DOMAIN", true, false, false)
93 PG_CMDTAG(CMDTAG_CREATE_EVENT_TRIGGER, "CREATE EVENT TRIGGER", false, false, false)
94 PG_CMDTAG(CMDTAG_CREATE_EXTENSION, "CREATE EXTENSION", true, false, false)
95 PG_CMDTAG(CMDTAG_CREATE_FOREIGN_DATA_WRAPPER, "CREATE FOREIGN DATA WRAPPER", true, false, false)
96 PG_CMDTAG(CMDTAG_CREATE_FOREIGN_TABLE, "CREATE FOREIGN TABLE", true, false, false)
97 PG_CMDTAG(CMDTAG_CREATE_FUNCTION, "CREATE FUNCTION", true, false, false)
98 PG_CMDTAG(CMDTAG_CREATE_INDEX, "CREATE INDEX", true, false, false)
99 PG_CMDTAG(CMDTAG_CREATE_LANGUAGE, "CREATE LANGUAGE", true, false, false)
100 PG_CMDTAG(CMDTAG_CREATE_MATERIALIZED_VIEW, "CREATE MATERIALIZED VIEW", true, false, false)
101 PG_CMDTAG(CMDTAG_CREATE_OPERATOR, "CREATE OPERATOR", true, false, false)
102 PG_CMDTAG(CMDTAG_CREATE_OPERATOR_CLASS, "CREATE OPERATOR CLASS", true, false, false)
103 PG_CMDTAG(CMDTAG_CREATE_OPERATOR_FAMILY, "CREATE OPERATOR FAMILY", true, false, false)
104 PG_CMDTAG(CMDTAG_CREATE_POLICY, "CREATE POLICY", true, false, false)
105 PG_CMDTAG(CMDTAG_CREATE_PROCEDURE, "CREATE PROCEDURE", true, false, false)
106 PG_CMDTAG(CMDTAG_CREATE_PUBLICATION, "CREATE PUBLICATION", true, false, false)
107 PG_CMDTAG(CMDTAG_CREATE_ROLE, "CREATE ROLE", false, false, false)
108 PG_CMDTAG(CMDTAG_CREATE_ROUTINE, "CREATE ROUTINE", true, false, false)
109 PG_CMDTAG(CMDTAG_CREATE_RULE, "CREATE RULE", true, false, false)
110 PG_CMDTAG(CMDTAG_CREATE_SCHEMA, "CREATE SCHEMA", true, false, false)
111 PG_CMDTAG(CMDTAG_CREATE_SEQUENCE, "CREATE SEQUENCE", true, false, false)
112 PG_CMDTAG(CMDTAG_CREATE_SERVER, "CREATE SERVER", true, false, false)
113 PG_CMDTAG(CMDTAG_CREATE_STATISTICS, "CREATE STATISTICS", true, false, false)
114 PG_CMDTAG(CMDTAG_CREATE_SUBSCRIPTION, "CREATE SUBSCRIPTION", true, false, false)
115 PG_CMDTAG(CMDTAG_CREATE_TABLE, "CREATE TABLE", true, false, false)
116 PG_CMDTAG(CMDTAG_CREATE_TABLE_AS, "CREATE TABLE AS", true, false, false)
117 PG_CMDTAG(CMDTAG_CREATE_TABLESPACE, "CREATE TABLESPACE", false, false, false)
118 PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_CONFIGURATION, "CREATE TEXT SEARCH CONFIGURATION", true, false, false)
119 PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_DICTIONARY, "CREATE TEXT SEARCH DICTIONARY", true, false, false)
120 PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_PARSER, "CREATE TEXT SEARCH PARSER", true, false, false)
121 PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_TEMPLATE, "CREATE TEXT SEARCH TEMPLATE", true, false, false)
122 PG_CMDTAG(CMDTAG_CREATE_TRANSFORM, "CREATE TRANSFORM", true, false, false)
123 PG_CMDTAG(CMDTAG_CREATE_TRIGGER, "CREATE TRIGGER", true, false, false)
124 PG_CMDTAG(CMDTAG_CREATE_TYPE, "CREATE TYPE", true, false, false)
125 PG_CMDTAG(CMDTAG_CREATE_USER_MAPPING, "CREATE USER MAPPING", true, false, false)
126 PG_CMDTAG(CMDTAG_CREATE_VIEW, "CREATE VIEW", true, false, false)
127 PG_CMDTAG(CMDTAG_DEALLOCATE, "DEALLOCATE", false, false, false)
128 PG_CMDTAG(CMDTAG_DEALLOCATE_ALL, "DEALLOCATE ALL", false, false, false)
129 PG_CMDTAG(CMDTAG_DECLARE_CURSOR, "DECLARE CURSOR", false, false, false)
130 PG_CMDTAG(CMDTAG_DELETE, "DELETE", false, false, true)
131 PG_CMDTAG(CMDTAG_DISCARD, "DISCARD", false, false, false)
132 PG_CMDTAG(CMDTAG_DISCARD_ALL, "DISCARD ALL", false, false, false)
133 PG_CMDTAG(CMDTAG_DISCARD_PLANS, "DISCARD PLANS", false, false, false)
134 PG_CMDTAG(CMDTAG_DISCARD_SEQUENCES, "DISCARD SEQUENCES", false, false, false)
135 PG_CMDTAG(CMDTAG_DISCARD_TEMP, "DISCARD TEMP", false, false, false)
136 PG_CMDTAG(CMDTAG_DO, "DO", false, false, false)
137 PG_CMDTAG(CMDTAG_DROP_ACCESS_METHOD, "DROP ACCESS METHOD", true, false, false)
138 PG_CMDTAG(CMDTAG_DROP_AGGREGATE, "DROP AGGREGATE", true, false, false)
139 PG_CMDTAG(CMDTAG_DROP_CAST, "DROP CAST", true, false, false)
140 PG_CMDTAG(CMDTAG_DROP_COLLATION, "DROP COLLATION", true, false, false)
141 PG_CMDTAG(CMDTAG_DROP_CONSTRAINT, "DROP CONSTRAINT", true, false, false)
142 PG_CMDTAG(CMDTAG_DROP_CONVERSION, "DROP CONVERSION", true, false, false)
143 PG_CMDTAG(CMDTAG_DROP_DATABASE, "DROP DATABASE", false, false, false)
144 PG_CMDTAG(CMDTAG_DROP_DOMAIN, "DROP DOMAIN", true, false, false)
145 PG_CMDTAG(CMDTAG_DROP_EVENT_TRIGGER, "DROP EVENT TRIGGER", false, false, false)
146 PG_CMDTAG(CMDTAG_DROP_EXTENSION, "DROP EXTENSION", true, false, false)
147 PG_CMDTAG(CMDTAG_DROP_FOREIGN_DATA_WRAPPER, "DROP FOREIGN DATA WRAPPER", true, false, false)
148 PG_CMDTAG(CMDTAG_DROP_FOREIGN_TABLE, "DROP FOREIGN TABLE", true, false, false)
149 PG_CMDTAG(CMDTAG_DROP_FUNCTION, "DROP FUNCTION", true, false, false)
150 PG_CMDTAG(CMDTAG_DROP_INDEX, "DROP INDEX", true, false, false)
151 PG_CMDTAG(CMDTAG_DROP_LANGUAGE, "DROP LANGUAGE", true, false, false)
152 PG_CMDTAG(CMDTAG_DROP_MATERIALIZED_VIEW, "DROP MATERIALIZED VIEW", true, false, false)
153 PG_CMDTAG(CMDTAG_DROP_OPERATOR, "DROP OPERATOR", true, false, false)
154 PG_CMDTAG(CMDTAG_DROP_OPERATOR_CLASS, "DROP OPERATOR CLASS", true, false, false)
155 PG_CMDTAG(CMDTAG_DROP_OPERATOR_FAMILY, "DROP OPERATOR FAMILY", true, false, false)
156 PG_CMDTAG(CMDTAG_DROP_OWNED, "DROP OWNED", true, false, false)
157 PG_CMDTAG(CMDTAG_DROP_POLICY, "DROP POLICY", true, false, false)
158 PG_CMDTAG(CMDTAG_DROP_PROCEDURE, "DROP PROCEDURE", true, false, false)
159 PG_CMDTAG(CMDTAG_DROP_PUBLICATION, "DROP PUBLICATION", true, false, false)
160 PG_CMDTAG(CMDTAG_DROP_ROLE, "DROP ROLE", false, false, false)
161 PG_CMDTAG(CMDTAG_DROP_ROUTINE, "DROP ROUTINE", true, false, false)
162 PG_CMDTAG(CMDTAG_DROP_RULE, "DROP RULE", true, false, false)
163 PG_CMDTAG(CMDTAG_DROP_SCHEMA, "DROP SCHEMA", true, false, false)
164 PG_CMDTAG(CMDTAG_DROP_SEQUENCE, "DROP SEQUENCE", true, false, false)
165 PG_CMDTAG(CMDTAG_DROP_SERVER, "DROP SERVER", true, false, false)
166 PG_CMDTAG(CMDTAG_DROP_STATISTICS, "DROP STATISTICS", true, false, false)
167 PG_CMDTAG(CMDTAG_DROP_SUBSCRIPTION, "DROP SUBSCRIPTION", true, false, false)
168 PG_CMDTAG(CMDTAG_DROP_TABLE, "DROP TABLE", true, false, false)
169 PG_CMDTAG(CMDTAG_DROP_TABLESPACE, "DROP TABLESPACE", false, false, false)
170 PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_CONFIGURATION, "DROP TEXT SEARCH CONFIGURATION", true, false, false)
171 PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_DICTIONARY, "DROP TEXT SEARCH DICTIONARY", true, false, false)
172 PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_PARSER, "DROP TEXT SEARCH PARSER", true, false, false)
173 PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_TEMPLATE, "DROP TEXT SEARCH TEMPLATE", true, false, false)
174 PG_CMDTAG(CMDTAG_DROP_TRANSFORM, "DROP TRANSFORM", true, false, false)
175 PG_CMDTAG(CMDTAG_DROP_TRIGGER, "DROP TRIGGER", true, false, false)
176 PG_CMDTAG(CMDTAG_DROP_TYPE, "DROP TYPE", true, false, false)
177 PG_CMDTAG(CMDTAG_DROP_USER_MAPPING, "DROP USER MAPPING", true, false, false)
178 PG_CMDTAG(CMDTAG_DROP_VIEW, "DROP VIEW", true, false, false)
179 PG_CMDTAG(CMDTAG_EXECUTE, "EXECUTE", false, false, false)
180 PG_CMDTAG(CMDTAG_EXPLAIN, "EXPLAIN", false, false, false)
181 PG_CMDTAG(CMDTAG_FETCH, "FETCH", false, false, true)
182 PG_CMDTAG(CMDTAG_GRANT, "GRANT", true, false, false)
183 PG_CMDTAG(CMDTAG_GRANT_ROLE, "GRANT ROLE", false, false, false)
184 PG_CMDTAG(CMDTAG_IMPORT_FOREIGN_SCHEMA, "IMPORT FOREIGN SCHEMA", true, false, false)
185 PG_CMDTAG(CMDTAG_INSERT, "INSERT", false, false, true)
186 PG_CMDTAG(CMDTAG_LISTEN, "LISTEN", false, false, false)
187 PG_CMDTAG(CMDTAG_LOAD, "LOAD", false, false, false)
188 PG_CMDTAG(CMDTAG_LOCK_TABLE, "LOCK TABLE", false, false, false)
189 PG_CMDTAG(CMDTAG_MOVE, "MOVE", false, false, true)
190 PG_CMDTAG(CMDTAG_NOTIFY, "NOTIFY", false, false, false)
191 PG_CMDTAG(CMDTAG_PREPARE, "PREPARE", false, false, false)
192 PG_CMDTAG(CMDTAG_PREPARE_TRANSACTION, "PREPARE TRANSACTION", false, false, false)
193 PG_CMDTAG(CMDTAG_REASSIGN_OWNED, "REASSIGN OWNED", false, false, false)
194 PG_CMDTAG(CMDTAG_REFRESH_MATERIALIZED_VIEW, "REFRESH MATERIALIZED VIEW", true, false, false)
195 PG_CMDTAG(CMDTAG_REINDEX, "REINDEX", false, false, false)
196 PG_CMDTAG(CMDTAG_RELEASE, "RELEASE", false, false, false)
197 PG_CMDTAG(CMDTAG_RESET, "RESET", false, false, false)
198 PG_CMDTAG(CMDTAG_REVOKE, "REVOKE", true, false, false)
199 PG_CMDTAG(CMDTAG_REVOKE_ROLE, "REVOKE ROLE", false, false, false)
200 PG_CMDTAG(CMDTAG_ROLLBACK, "ROLLBACK", false, false, false)
201 PG_CMDTAG(CMDTAG_ROLLBACK_PREPARED, "ROLLBACK PREPARED", false, false, false)
202 PG_CMDTAG(CMDTAG_SAVEPOINT, "SAVEPOINT", false, false, false)
203 PG_CMDTAG(CMDTAG_SECURITY_LABEL, "SECURITY LABEL", true, false, false)
204 PG_CMDTAG(CMDTAG_SELECT, "SELECT", false, false, true)
205 PG_CMDTAG(CMDTAG_SELECT_FOR_KEY_SHARE, "SELECT FOR KEY SHARE", false, false, false)
206 PG_CMDTAG(CMDTAG_SELECT_FOR_NO_KEY_UPDATE, "SELECT FOR NO KEY UPDATE", false, false, false)
207 PG_CMDTAG(CMDTAG_SELECT_FOR_SHARE, "SELECT FOR SHARE", false, false, false)
208 PG_CMDTAG(CMDTAG_SELECT_FOR_UPDATE, "SELECT FOR UPDATE", false, false, false)
209 PG_CMDTAG(CMDTAG_SELECT_INTO, "SELECT INTO", true, false, false)
210 PG_CMDTAG(CMDTAG_SET, "SET", false, false, false)
211 PG_CMDTAG(CMDTAG_SET_CONSTRAINTS, "SET CONSTRAINTS", false, false, false)
212 PG_CMDTAG(CMDTAG_SHOW, "SHOW", false, false, false)
213 PG_CMDTAG(CMDTAG_START_TRANSACTION, "START TRANSACTION", false, false, false)
214 PG_CMDTAG(CMDTAG_TRUNCATE_TABLE, "TRUNCATE TABLE", false, false, false)
215 PG_CMDTAG(CMDTAG_UNLISTEN, "UNLISTEN", false, false, false)
216 PG_CMDTAG(CMDTAG_UPDATE, "UPDATE", false, false, true)
217 PG_CMDTAG(CMDTAG_VACUUM, "VACUUM", false, false, false)
#define false
Definition: c.h:387
static void COPY(mp_digit *P, mp_digit *Q, mp_size S)
Definition: imath.c:141
#define true
Definition: c.h:383
#define CLOSE
Definition: _int.h:165
Definition: lock.h:297
#define TEMP(K)
Definition: imath.c:234
#define SET(c)
Definition: regc_lex.c:43
#define DISCARD
Definition: regguts.h:58
#define DO(field)
#define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt)
Definition: cmdtag.c:28