PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2024, 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 */
27PG_CMDTAG(CMDTAG_UNKNOWN, "???", false, false, false)
28PG_CMDTAG(CMDTAG_ALTER_ACCESS_METHOD, "ALTER ACCESS METHOD", true, false, false)
29PG_CMDTAG(CMDTAG_ALTER_AGGREGATE, "ALTER AGGREGATE", true, false, false)
30PG_CMDTAG(CMDTAG_ALTER_CAST, "ALTER CAST", true, false, false)
31PG_CMDTAG(CMDTAG_ALTER_COLLATION, "ALTER COLLATION", true, false, false)
32PG_CMDTAG(CMDTAG_ALTER_CONSTRAINT, "ALTER CONSTRAINT", true, false, false)
33PG_CMDTAG(CMDTAG_ALTER_CONVERSION, "ALTER CONVERSION", true, false, false)
34PG_CMDTAG(CMDTAG_ALTER_DATABASE, "ALTER DATABASE", false, false, false)
35PG_CMDTAG(CMDTAG_ALTER_DEFAULT_PRIVILEGES, "ALTER DEFAULT PRIVILEGES", true, false, false)
36PG_CMDTAG(CMDTAG_ALTER_DOMAIN, "ALTER DOMAIN", true, false, false)
37PG_CMDTAG(CMDTAG_ALTER_EVENT_TRIGGER, "ALTER EVENT TRIGGER", false, false, false)
38PG_CMDTAG(CMDTAG_ALTER_EXTENSION, "ALTER EXTENSION", true, false, false)
39PG_CMDTAG(CMDTAG_ALTER_FOREIGN_DATA_WRAPPER, "ALTER FOREIGN DATA WRAPPER", true, false, false)
40PG_CMDTAG(CMDTAG_ALTER_FOREIGN_TABLE, "ALTER FOREIGN TABLE", true, false, false)
41PG_CMDTAG(CMDTAG_ALTER_FUNCTION, "ALTER FUNCTION", true, false, false)
42PG_CMDTAG(CMDTAG_ALTER_INDEX, "ALTER INDEX", true, false, false)
43PG_CMDTAG(CMDTAG_ALTER_LANGUAGE, "ALTER LANGUAGE", true, false, false)
44PG_CMDTAG(CMDTAG_ALTER_LARGE_OBJECT, "ALTER LARGE OBJECT", true, false, false)
45PG_CMDTAG(CMDTAG_ALTER_MATERIALIZED_VIEW, "ALTER MATERIALIZED VIEW", true, true, false)
46PG_CMDTAG(CMDTAG_ALTER_OPERATOR, "ALTER OPERATOR", true, false, false)
47PG_CMDTAG(CMDTAG_ALTER_OPERATOR_CLASS, "ALTER OPERATOR CLASS", true, false, false)
48PG_CMDTAG(CMDTAG_ALTER_OPERATOR_FAMILY, "ALTER OPERATOR FAMILY", true, false, false)
49PG_CMDTAG(CMDTAG_ALTER_POLICY, "ALTER POLICY", true, false, false)
50PG_CMDTAG(CMDTAG_ALTER_PROCEDURE, "ALTER PROCEDURE", true, false, false)
51PG_CMDTAG(CMDTAG_ALTER_PUBLICATION, "ALTER PUBLICATION", true, false, false)
52PG_CMDTAG(CMDTAG_ALTER_ROLE, "ALTER ROLE", false, false, false)
53PG_CMDTAG(CMDTAG_ALTER_ROUTINE, "ALTER ROUTINE", true, false, false)
54PG_CMDTAG(CMDTAG_ALTER_RULE, "ALTER RULE", true, false, false)
55PG_CMDTAG(CMDTAG_ALTER_SCHEMA, "ALTER SCHEMA", true, false, false)
56PG_CMDTAG(CMDTAG_ALTER_SEQUENCE, "ALTER SEQUENCE", true, false, false)
57PG_CMDTAG(CMDTAG_ALTER_SERVER, "ALTER SERVER", true, false, false)
58PG_CMDTAG(CMDTAG_ALTER_STATISTICS, "ALTER STATISTICS", true, false, false)
59PG_CMDTAG(CMDTAG_ALTER_SUBSCRIPTION, "ALTER SUBSCRIPTION", true, false, false)
60PG_CMDTAG(CMDTAG_ALTER_SYSTEM, "ALTER SYSTEM", false, false, false)
61PG_CMDTAG(CMDTAG_ALTER_TABLE, "ALTER TABLE", true, true, false)
62PG_CMDTAG(CMDTAG_ALTER_TABLESPACE, "ALTER TABLESPACE", false, false, false)
63PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_CONFIGURATION, "ALTER TEXT SEARCH CONFIGURATION", true, false, false)
64PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_DICTIONARY, "ALTER TEXT SEARCH DICTIONARY", true, false, false)
65PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_PARSER, "ALTER TEXT SEARCH PARSER", true, false, false)
66PG_CMDTAG(CMDTAG_ALTER_TEXT_SEARCH_TEMPLATE, "ALTER TEXT SEARCH TEMPLATE", true, false, false)
67PG_CMDTAG(CMDTAG_ALTER_TRANSFORM, "ALTER TRANSFORM", true, false, false)
68PG_CMDTAG(CMDTAG_ALTER_TRIGGER, "ALTER TRIGGER", true, false, false)
69PG_CMDTAG(CMDTAG_ALTER_TYPE, "ALTER TYPE", true, true, false)
70PG_CMDTAG(CMDTAG_ALTER_USER_MAPPING, "ALTER USER MAPPING", true, false, false)
71PG_CMDTAG(CMDTAG_ALTER_VIEW, "ALTER VIEW", true, false, false)
72PG_CMDTAG(CMDTAG_ANALYZE, "ANALYZE", false, false, false)
73PG_CMDTAG(CMDTAG_BEGIN, "BEGIN", false, false, false)
74PG_CMDTAG(CMDTAG_CALL, "CALL", false, false, false)
75PG_CMDTAG(CMDTAG_CHECKPOINT, "CHECKPOINT", false, false, false)
76PG_CMDTAG(CMDTAG_CLOSE, "CLOSE", false, false, false)
77PG_CMDTAG(CMDTAG_CLOSE_CURSOR, "CLOSE CURSOR", false, false, false)
78PG_CMDTAG(CMDTAG_CLOSE_CURSOR_ALL, "CLOSE CURSOR ALL", false, false, false)
79PG_CMDTAG(CMDTAG_CLUSTER, "CLUSTER", false, false, false)
80PG_CMDTAG(CMDTAG_COMMENT, "COMMENT", true, false, false)
81PG_CMDTAG(CMDTAG_COMMIT, "COMMIT", false, false, false)
82PG_CMDTAG(CMDTAG_COMMIT_PREPARED, "COMMIT PREPARED", false, false, false)
83PG_CMDTAG(CMDTAG_COPY, "COPY", false, false, true)
84PG_CMDTAG(CMDTAG_COPY_FROM, "COPY FROM", false, false, false)
85PG_CMDTAG(CMDTAG_CREATE_ACCESS_METHOD, "CREATE ACCESS METHOD", true, false, false)
86PG_CMDTAG(CMDTAG_CREATE_AGGREGATE, "CREATE AGGREGATE", true, false, false)
87PG_CMDTAG(CMDTAG_CREATE_CAST, "CREATE CAST", true, false, false)
88PG_CMDTAG(CMDTAG_CREATE_COLLATION, "CREATE COLLATION", true, false, false)
89PG_CMDTAG(CMDTAG_CREATE_CONSTRAINT, "CREATE CONSTRAINT", true, false, false)
90PG_CMDTAG(CMDTAG_CREATE_CONVERSION, "CREATE CONVERSION", true, false, false)
91PG_CMDTAG(CMDTAG_CREATE_DATABASE, "CREATE DATABASE", false, false, false)
92PG_CMDTAG(CMDTAG_CREATE_DOMAIN, "CREATE DOMAIN", true, false, false)
93PG_CMDTAG(CMDTAG_CREATE_EVENT_TRIGGER, "CREATE EVENT TRIGGER", false, false, false)
94PG_CMDTAG(CMDTAG_CREATE_EXTENSION, "CREATE EXTENSION", true, false, false)
95PG_CMDTAG(CMDTAG_CREATE_FOREIGN_DATA_WRAPPER, "CREATE FOREIGN DATA WRAPPER", true, false, false)
96PG_CMDTAG(CMDTAG_CREATE_FOREIGN_TABLE, "CREATE FOREIGN TABLE", true, false, false)
97PG_CMDTAG(CMDTAG_CREATE_FUNCTION, "CREATE FUNCTION", true, false, false)
98PG_CMDTAG(CMDTAG_CREATE_INDEX, "CREATE INDEX", true, false, false)
99PG_CMDTAG(CMDTAG_CREATE_LANGUAGE, "CREATE LANGUAGE", true, false, false)
100PG_CMDTAG(CMDTAG_CREATE_MATERIALIZED_VIEW, "CREATE MATERIALIZED VIEW", true, false, false)
101PG_CMDTAG(CMDTAG_CREATE_OPERATOR, "CREATE OPERATOR", true, false, false)
102PG_CMDTAG(CMDTAG_CREATE_OPERATOR_CLASS, "CREATE OPERATOR CLASS", true, false, false)
103PG_CMDTAG(CMDTAG_CREATE_OPERATOR_FAMILY, "CREATE OPERATOR FAMILY", true, false, false)
104PG_CMDTAG(CMDTAG_CREATE_POLICY, "CREATE POLICY", true, false, false)
105PG_CMDTAG(CMDTAG_CREATE_PROCEDURE, "CREATE PROCEDURE", true, false, false)
106PG_CMDTAG(CMDTAG_CREATE_PUBLICATION, "CREATE PUBLICATION", true, false, false)
107PG_CMDTAG(CMDTAG_CREATE_ROLE, "CREATE ROLE", false, false, false)
108PG_CMDTAG(CMDTAG_CREATE_ROUTINE, "CREATE ROUTINE", true, false, false)
109PG_CMDTAG(CMDTAG_CREATE_RULE, "CREATE RULE", true, false, false)
110PG_CMDTAG(CMDTAG_CREATE_SCHEMA, "CREATE SCHEMA", true, false, false)
111PG_CMDTAG(CMDTAG_CREATE_SEQUENCE, "CREATE SEQUENCE", true, false, false)
112PG_CMDTAG(CMDTAG_CREATE_SERVER, "CREATE SERVER", true, false, false)
113PG_CMDTAG(CMDTAG_CREATE_STATISTICS, "CREATE STATISTICS", true, false, false)
114PG_CMDTAG(CMDTAG_CREATE_SUBSCRIPTION, "CREATE SUBSCRIPTION", true, false, false)
115PG_CMDTAG(CMDTAG_CREATE_TABLE, "CREATE TABLE", true, false, false)
116PG_CMDTAG(CMDTAG_CREATE_TABLE_AS, "CREATE TABLE AS", true, false, false)
117PG_CMDTAG(CMDTAG_CREATE_TABLESPACE, "CREATE TABLESPACE", false, false, false)
118PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_CONFIGURATION, "CREATE TEXT SEARCH CONFIGURATION", true, false, false)
119PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_DICTIONARY, "CREATE TEXT SEARCH DICTIONARY", true, false, false)
120PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_PARSER, "CREATE TEXT SEARCH PARSER", true, false, false)
121PG_CMDTAG(CMDTAG_CREATE_TEXT_SEARCH_TEMPLATE, "CREATE TEXT SEARCH TEMPLATE", true, false, false)
122PG_CMDTAG(CMDTAG_CREATE_TRANSFORM, "CREATE TRANSFORM", true, false, false)
123PG_CMDTAG(CMDTAG_CREATE_TRIGGER, "CREATE TRIGGER", true, false, false)
124PG_CMDTAG(CMDTAG_CREATE_TYPE, "CREATE TYPE", true, false, false)
125PG_CMDTAG(CMDTAG_CREATE_USER_MAPPING, "CREATE USER MAPPING", true, false, false)
126PG_CMDTAG(CMDTAG_CREATE_VIEW, "CREATE VIEW", true, false, false)
127PG_CMDTAG(CMDTAG_DEALLOCATE, "DEALLOCATE", false, false, false)
128PG_CMDTAG(CMDTAG_DEALLOCATE_ALL, "DEALLOCATE ALL", false, false, false)
129PG_CMDTAG(CMDTAG_DECLARE_CURSOR, "DECLARE CURSOR", false, false, false)
130PG_CMDTAG(CMDTAG_DELETE, "DELETE", false, false, true)
131PG_CMDTAG(CMDTAG_DISCARD, "DISCARD", false, false, false)
132PG_CMDTAG(CMDTAG_DISCARD_ALL, "DISCARD ALL", false, false, false)
133PG_CMDTAG(CMDTAG_DISCARD_PLANS, "DISCARD PLANS", false, false, false)
134PG_CMDTAG(CMDTAG_DISCARD_SEQUENCES, "DISCARD SEQUENCES", false, false, false)
135PG_CMDTAG(CMDTAG_DISCARD_TEMP, "DISCARD TEMP", false, false, false)
136PG_CMDTAG(CMDTAG_DO, "DO", false, false, false)
137PG_CMDTAG(CMDTAG_DROP_ACCESS_METHOD, "DROP ACCESS METHOD", true, false, false)
138PG_CMDTAG(CMDTAG_DROP_AGGREGATE, "DROP AGGREGATE", true, false, false)
139PG_CMDTAG(CMDTAG_DROP_CAST, "DROP CAST", true, false, false)
140PG_CMDTAG(CMDTAG_DROP_COLLATION, "DROP COLLATION", true, false, false)
141PG_CMDTAG(CMDTAG_DROP_CONSTRAINT, "DROP CONSTRAINT", true, false, false)
142PG_CMDTAG(CMDTAG_DROP_CONVERSION, "DROP CONVERSION", true, false, false)
143PG_CMDTAG(CMDTAG_DROP_DATABASE, "DROP DATABASE", false, false, false)
144PG_CMDTAG(CMDTAG_DROP_DOMAIN, "DROP DOMAIN", true, false, false)
145PG_CMDTAG(CMDTAG_DROP_EVENT_TRIGGER, "DROP EVENT TRIGGER", false, false, false)
146PG_CMDTAG(CMDTAG_DROP_EXTENSION, "DROP EXTENSION", true, false, false)
147PG_CMDTAG(CMDTAG_DROP_FOREIGN_DATA_WRAPPER, "DROP FOREIGN DATA WRAPPER", true, false, false)
148PG_CMDTAG(CMDTAG_DROP_FOREIGN_TABLE, "DROP FOREIGN TABLE", true, false, false)
149PG_CMDTAG(CMDTAG_DROP_FUNCTION, "DROP FUNCTION", true, false, false)
150PG_CMDTAG(CMDTAG_DROP_INDEX, "DROP INDEX", true, false, false)
151PG_CMDTAG(CMDTAG_DROP_LANGUAGE, "DROP LANGUAGE", true, false, false)
152PG_CMDTAG(CMDTAG_DROP_MATERIALIZED_VIEW, "DROP MATERIALIZED VIEW", true, false, false)
153PG_CMDTAG(CMDTAG_DROP_OPERATOR, "DROP OPERATOR", true, false, false)
154PG_CMDTAG(CMDTAG_DROP_OPERATOR_CLASS, "DROP OPERATOR CLASS", true, false, false)
155PG_CMDTAG(CMDTAG_DROP_OPERATOR_FAMILY, "DROP OPERATOR FAMILY", true, false, false)
156PG_CMDTAG(CMDTAG_DROP_OWNED, "DROP OWNED", true, false, false)
157PG_CMDTAG(CMDTAG_DROP_POLICY, "DROP POLICY", true, false, false)
158PG_CMDTAG(CMDTAG_DROP_PROCEDURE, "DROP PROCEDURE", true, false, false)
159PG_CMDTAG(CMDTAG_DROP_PUBLICATION, "DROP PUBLICATION", true, false, false)
160PG_CMDTAG(CMDTAG_DROP_ROLE, "DROP ROLE", false, false, false)
161PG_CMDTAG(CMDTAG_DROP_ROUTINE, "DROP ROUTINE", true, false, false)
162PG_CMDTAG(CMDTAG_DROP_RULE, "DROP RULE", true, false, false)
163PG_CMDTAG(CMDTAG_DROP_SCHEMA, "DROP SCHEMA", true, false, false)
164PG_CMDTAG(CMDTAG_DROP_SEQUENCE, "DROP SEQUENCE", true, false, false)
165PG_CMDTAG(CMDTAG_DROP_SERVER, "DROP SERVER", true, false, false)
166PG_CMDTAG(CMDTAG_DROP_STATISTICS, "DROP STATISTICS", true, false, false)
167PG_CMDTAG(CMDTAG_DROP_SUBSCRIPTION, "DROP SUBSCRIPTION", true, false, false)
168PG_CMDTAG(CMDTAG_DROP_TABLE, "DROP TABLE", true, false, false)
169PG_CMDTAG(CMDTAG_DROP_TABLESPACE, "DROP TABLESPACE", false, false, false)
170PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_CONFIGURATION, "DROP TEXT SEARCH CONFIGURATION", true, false, false)
171PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_DICTIONARY, "DROP TEXT SEARCH DICTIONARY", true, false, false)
172PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_PARSER, "DROP TEXT SEARCH PARSER", true, false, false)
173PG_CMDTAG(CMDTAG_DROP_TEXT_SEARCH_TEMPLATE, "DROP TEXT SEARCH TEMPLATE", true, false, false)
174PG_CMDTAG(CMDTAG_DROP_TRANSFORM, "DROP TRANSFORM", true, false, false)
175PG_CMDTAG(CMDTAG_DROP_TRIGGER, "DROP TRIGGER", true, false, false)
176PG_CMDTAG(CMDTAG_DROP_TYPE, "DROP TYPE", true, false, false)
177PG_CMDTAG(CMDTAG_DROP_USER_MAPPING, "DROP USER MAPPING", true, false, false)
178PG_CMDTAG(CMDTAG_DROP_VIEW, "DROP VIEW", true, false, false)
179PG_CMDTAG(CMDTAG_EXECUTE, "EXECUTE", false, false, false)
180PG_CMDTAG(CMDTAG_EXPLAIN, "EXPLAIN", false, false, false)
181PG_CMDTAG(CMDTAG_FETCH, "FETCH", false, false, true)
182PG_CMDTAG(CMDTAG_GRANT, "GRANT", true, false, false)
183PG_CMDTAG(CMDTAG_GRANT_ROLE, "GRANT ROLE", false, false, false)
184PG_CMDTAG(CMDTAG_IMPORT_FOREIGN_SCHEMA, "IMPORT FOREIGN SCHEMA", true, false, false)
185PG_CMDTAG(CMDTAG_INSERT, "INSERT", false, false, true)
186PG_CMDTAG(CMDTAG_LISTEN, "LISTEN", false, false, false)
187PG_CMDTAG(CMDTAG_LOAD, "LOAD", false, false, false)
188PG_CMDTAG(CMDTAG_LOCK_TABLE, "LOCK TABLE", false, false, false)
189PG_CMDTAG(CMDTAG_LOGIN, "LOGIN", true, false, false)
190PG_CMDTAG(CMDTAG_MERGE, "MERGE", false, false, true)
191PG_CMDTAG(CMDTAG_MOVE, "MOVE", false, false, true)
192PG_CMDTAG(CMDTAG_NOTIFY, "NOTIFY", false, false, false)
193PG_CMDTAG(CMDTAG_PREPARE, "PREPARE", false, false, false)
194PG_CMDTAG(CMDTAG_PREPARE_TRANSACTION, "PREPARE TRANSACTION", false, false, false)
195PG_CMDTAG(CMDTAG_REASSIGN_OWNED, "REASSIGN OWNED", false, false, false)
196PG_CMDTAG(CMDTAG_REFRESH_MATERIALIZED_VIEW, "REFRESH MATERIALIZED VIEW", true, false, false)
197PG_CMDTAG(CMDTAG_REINDEX, "REINDEX", true, false, false)
198PG_CMDTAG(CMDTAG_RELEASE, "RELEASE", false, false, false)
199PG_CMDTAG(CMDTAG_RESET, "RESET", false, false, false)
200PG_CMDTAG(CMDTAG_REVOKE, "REVOKE", true, false, false)
201PG_CMDTAG(CMDTAG_REVOKE_ROLE, "REVOKE ROLE", false, false, false)
202PG_CMDTAG(CMDTAG_ROLLBACK, "ROLLBACK", false, false, false)
203PG_CMDTAG(CMDTAG_ROLLBACK_PREPARED, "ROLLBACK PREPARED", false, false, false)
204PG_CMDTAG(CMDTAG_SAVEPOINT, "SAVEPOINT", false, false, false)
205PG_CMDTAG(CMDTAG_SECURITY_LABEL, "SECURITY LABEL", true, false, false)
206PG_CMDTAG(CMDTAG_SELECT, "SELECT", false, false, true)
207PG_CMDTAG(CMDTAG_SELECT_FOR_KEY_SHARE, "SELECT FOR KEY SHARE", false, false, false)
208PG_CMDTAG(CMDTAG_SELECT_FOR_NO_KEY_UPDATE, "SELECT FOR NO KEY UPDATE", false, false, false)
209PG_CMDTAG(CMDTAG_SELECT_FOR_SHARE, "SELECT FOR SHARE", false, false, false)
210PG_CMDTAG(CMDTAG_SELECT_FOR_UPDATE, "SELECT FOR UPDATE", false, false, false)
211PG_CMDTAG(CMDTAG_SELECT_INTO, "SELECT INTO", true, false, false)
212PG_CMDTAG(CMDTAG_SET, "SET", false, false, false)
213PG_CMDTAG(CMDTAG_SET_CONSTRAINTS, "SET CONSTRAINTS", false, false, false)
214PG_CMDTAG(CMDTAG_SHOW, "SHOW", false, false, false)
215PG_CMDTAG(CMDTAG_START_TRANSACTION, "START TRANSACTION", false, false, false)
216PG_CMDTAG(CMDTAG_TRUNCATE_TABLE, "TRUNCATE TABLE", false, false, false)
217PG_CMDTAG(CMDTAG_UNLISTEN, "UNLISTEN", false, false, false)
218PG_CMDTAG(CMDTAG_UPDATE, "UPDATE", false, false, true)
219PG_CMDTAG(CMDTAG_VACUUM, "VACUUM", false, false, false)
#define CLOSE
Definition: _int.h:165
#define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt)
Definition: cmdtag.c:30
return false
Definition: isn.c:130
return true
Definition: isn.c:125
#define SET(c)
Definition: regc_lex.c:43
#define DISCARD
Definition: regguts.h:58
Definition: lock.h:309
#define KEY(...)
Definition: syscache.c:79
#define DO(field)