Line data Source code
1 : /*
2 : * *** Do not change this file by hand. It is automatically
3 : * *** generated from the DocBook documentation.
4 : *
5 : * generated by src/bin/psql/create_help.pl
6 : *
7 : */
8 :
9 : #define N_(x) (x) /* gettext noop */
10 :
11 : #include "postgres_fe.h"
12 : #include "sql_help.h"
13 :
14 : static void
15 0 : sql_help_ABORT(PQExpBuffer buf)
16 : {
17 0 : appendPQExpBuffer(buf,
18 : "ABORT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]");
19 0 : }
20 :
21 : static void
22 0 : sql_help_ALTER_AGGREGATE(PQExpBuffer buf)
23 : {
24 0 : appendPQExpBuffer(buf,
25 : "ALTER AGGREGATE %s ( %s ) RENAME TO %s\n"
26 : "ALTER AGGREGATE %s ( %s )\n"
27 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
28 : "ALTER AGGREGATE %s ( %s ) SET SCHEMA %s\n"
29 : "\n"
30 : "%s\n"
31 : "\n"
32 : "* |\n"
33 : "[ %s ] [ %s ] %s [ , ... ] |\n"
34 : "[ [ %s ] [ %s ] %s [ , ... ] ] ORDER BY [ %s ] [ %s ] %s [ , ... ]",
35 : _("name"),
36 : _("aggregate_signature"),
37 : _("new_name"),
38 : _("name"),
39 : _("aggregate_signature"),
40 : _("new_owner"),
41 : _("name"),
42 : _("aggregate_signature"),
43 : _("new_schema"),
44 : _("where aggregate_signature is:"),
45 : _("argmode"),
46 : _("argname"),
47 : _("argtype"),
48 : _("argmode"),
49 : _("argname"),
50 : _("argtype"),
51 : _("argmode"),
52 : _("argname"),
53 : _("argtype"));
54 0 : }
55 :
56 : static void
57 0 : sql_help_ALTER_COLLATION(PQExpBuffer buf)
58 : {
59 0 : appendPQExpBuffer(buf,
60 : "ALTER COLLATION %s REFRESH VERSION\n"
61 : "\n"
62 : "ALTER COLLATION %s RENAME TO %s\n"
63 : "ALTER COLLATION %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
64 : "ALTER COLLATION %s SET SCHEMA %s",
65 : _("name"),
66 : _("name"),
67 : _("new_name"),
68 : _("name"),
69 : _("new_owner"),
70 : _("name"),
71 : _("new_schema"));
72 0 : }
73 :
74 : static void
75 0 : sql_help_ALTER_CONVERSION(PQExpBuffer buf)
76 : {
77 0 : appendPQExpBuffer(buf,
78 : "ALTER CONVERSION %s RENAME TO %s\n"
79 : "ALTER CONVERSION %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
80 : "ALTER CONVERSION %s SET SCHEMA %s",
81 : _("name"),
82 : _("new_name"),
83 : _("name"),
84 : _("new_owner"),
85 : _("name"),
86 : _("new_schema"));
87 0 : }
88 :
89 : static void
90 0 : sql_help_ALTER_DATABASE(PQExpBuffer buf)
91 : {
92 0 : appendPQExpBuffer(buf,
93 : "ALTER DATABASE %s [ [ WITH ] %s [ ... ] ]\n"
94 : "\n"
95 : "%s\n"
96 : "\n"
97 : " ALLOW_CONNECTIONS %s\n"
98 : " CONNECTION LIMIT %s\n"
99 : " IS_TEMPLATE %s\n"
100 : "\n"
101 : "ALTER DATABASE %s RENAME TO %s\n"
102 : "\n"
103 : "ALTER DATABASE %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
104 : "\n"
105 : "ALTER DATABASE %s SET TABLESPACE %s\n"
106 : "\n"
107 : "ALTER DATABASE %s REFRESH COLLATION VERSION\n"
108 : "\n"
109 : "ALTER DATABASE %s SET %s { TO | = } { %s | DEFAULT }\n"
110 : "ALTER DATABASE %s SET %s FROM CURRENT\n"
111 : "ALTER DATABASE %s RESET %s\n"
112 : "ALTER DATABASE %s RESET ALL",
113 : _("name"),
114 : _("option"),
115 : _("where option can be:"),
116 : _("allowconn"),
117 : _("connlimit"),
118 : _("istemplate"),
119 : _("name"),
120 : _("new_name"),
121 : _("name"),
122 : _("new_owner"),
123 : _("name"),
124 : _("new_tablespace"),
125 : _("name"),
126 : _("name"),
127 : _("configuration_parameter"),
128 : _("value"),
129 : _("name"),
130 : _("configuration_parameter"),
131 : _("name"),
132 : _("configuration_parameter"),
133 : _("name"));
134 0 : }
135 :
136 : static void
137 0 : sql_help_ALTER_DEFAULT_PRIVILEGES(PQExpBuffer buf)
138 : {
139 0 : appendPQExpBuffer(buf,
140 : "ALTER DEFAULT PRIVILEGES\n"
141 : " [ FOR { ROLE | USER } %s [, ...] ]\n"
142 : " [ IN SCHEMA %s [, ...] ]\n"
143 : " %s\n"
144 : "\n"
145 : "%s\n"
146 : "\n"
147 : "GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER | MAINTAIN }\n"
148 : " [, ...] | ALL [ PRIVILEGES ] }\n"
149 : " ON TABLES\n"
150 : " TO { [ GROUP ] %s | PUBLIC } [, ...] [ WITH GRANT OPTION ]\n"
151 : "\n"
152 : "GRANT { { USAGE | SELECT | UPDATE }\n"
153 : " [, ...] | ALL [ PRIVILEGES ] }\n"
154 : " ON SEQUENCES\n"
155 : " TO { [ GROUP ] %s | PUBLIC } [, ...] [ WITH GRANT OPTION ]\n"
156 : "\n"
157 : "GRANT { EXECUTE | ALL [ PRIVILEGES ] }\n"
158 : " ON { FUNCTIONS | ROUTINES }\n"
159 : " TO { [ GROUP ] %s | PUBLIC } [, ...] [ WITH GRANT OPTION ]\n"
160 : "\n"
161 : "GRANT { USAGE | ALL [ PRIVILEGES ] }\n"
162 : " ON TYPES\n"
163 : " TO { [ GROUP ] %s | PUBLIC } [, ...] [ WITH GRANT OPTION ]\n"
164 : "\n"
165 : "GRANT { { USAGE | CREATE }\n"
166 : " [, ...] | ALL [ PRIVILEGES ] }\n"
167 : " ON SCHEMAS\n"
168 : " TO { [ GROUP ] %s | PUBLIC } [, ...] [ WITH GRANT OPTION ]\n"
169 : "\n"
170 : "REVOKE [ GRANT OPTION FOR ]\n"
171 : " { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER | MAINTAIN }\n"
172 : " [, ...] | ALL [ PRIVILEGES ] }\n"
173 : " ON TABLES\n"
174 : " FROM { [ GROUP ] %s | PUBLIC } [, ...]\n"
175 : " [ CASCADE | RESTRICT ]\n"
176 : "\n"
177 : "REVOKE [ GRANT OPTION FOR ]\n"
178 : " { { USAGE | SELECT | UPDATE }\n"
179 : " [, ...] | ALL [ PRIVILEGES ] }\n"
180 : " ON SEQUENCES\n"
181 : " FROM { [ GROUP ] %s | PUBLIC } [, ...]\n"
182 : " [ CASCADE | RESTRICT ]\n"
183 : "\n"
184 : "REVOKE [ GRANT OPTION FOR ]\n"
185 : " { EXECUTE | ALL [ PRIVILEGES ] }\n"
186 : " ON { FUNCTIONS | ROUTINES }\n"
187 : " FROM { [ GROUP ] %s | PUBLIC } [, ...]\n"
188 : " [ CASCADE | RESTRICT ]\n"
189 : "\n"
190 : "REVOKE [ GRANT OPTION FOR ]\n"
191 : " { USAGE | ALL [ PRIVILEGES ] }\n"
192 : " ON TYPES\n"
193 : " FROM { [ GROUP ] %s | PUBLIC } [, ...]\n"
194 : " [ CASCADE | RESTRICT ]\n"
195 : "\n"
196 : "REVOKE [ GRANT OPTION FOR ]\n"
197 : " { { USAGE | CREATE }\n"
198 : " [, ...] | ALL [ PRIVILEGES ] }\n"
199 : " ON SCHEMAS\n"
200 : " FROM { [ GROUP ] %s | PUBLIC } [, ...]\n"
201 : " [ CASCADE | RESTRICT ]",
202 : _("target_role"),
203 : _("schema_name"),
204 : _("abbreviated_grant_or_revoke"),
205 : _("where abbreviated_grant_or_revoke is one of:"),
206 : _("role_name"),
207 : _("role_name"),
208 : _("role_name"),
209 : _("role_name"),
210 : _("role_name"),
211 : _("role_name"),
212 : _("role_name"),
213 : _("role_name"),
214 : _("role_name"),
215 : _("role_name"));
216 0 : }
217 :
218 : static void
219 0 : sql_help_ALTER_DOMAIN(PQExpBuffer buf)
220 : {
221 0 : appendPQExpBuffer(buf,
222 : "ALTER DOMAIN %s\n"
223 : " { SET DEFAULT %s | DROP DEFAULT }\n"
224 : "ALTER DOMAIN %s\n"
225 : " { SET | DROP } NOT NULL\n"
226 : "ALTER DOMAIN %s\n"
227 : " ADD %s [ NOT VALID ]\n"
228 : "ALTER DOMAIN %s\n"
229 : " DROP CONSTRAINT [ IF EXISTS ] %s [ RESTRICT | CASCADE ]\n"
230 : "ALTER DOMAIN %s\n"
231 : " RENAME CONSTRAINT %s TO %s\n"
232 : "ALTER DOMAIN %s\n"
233 : " VALIDATE CONSTRAINT %s\n"
234 : "ALTER DOMAIN %s\n"
235 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
236 : "ALTER DOMAIN %s\n"
237 : " RENAME TO %s\n"
238 : "ALTER DOMAIN %s\n"
239 : " SET SCHEMA %s\n"
240 : "\n"
241 : "%s\n"
242 : "\n"
243 : "[ CONSTRAINT %s ]\n"
244 : "{ NOT NULL | CHECK (%s) }",
245 : _("name"),
246 : _("expression"),
247 : _("name"),
248 : _("name"),
249 : _("domain_constraint"),
250 : _("name"),
251 : _("constraint_name"),
252 : _("name"),
253 : _("constraint_name"),
254 : _("new_constraint_name"),
255 : _("name"),
256 : _("constraint_name"),
257 : _("name"),
258 : _("new_owner"),
259 : _("name"),
260 : _("new_name"),
261 : _("name"),
262 : _("new_schema"),
263 : _("where domain_constraint is:"),
264 : _("constraint_name"),
265 : _("expression"));
266 0 : }
267 :
268 : static void
269 0 : sql_help_ALTER_EVENT_TRIGGER(PQExpBuffer buf)
270 : {
271 0 : appendPQExpBuffer(buf,
272 : "ALTER EVENT TRIGGER %s DISABLE\n"
273 : "ALTER EVENT TRIGGER %s ENABLE [ REPLICA | ALWAYS ]\n"
274 : "ALTER EVENT TRIGGER %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
275 : "ALTER EVENT TRIGGER %s RENAME TO %s",
276 : _("name"),
277 : _("name"),
278 : _("name"),
279 : _("new_owner"),
280 : _("name"),
281 : _("new_name"));
282 0 : }
283 :
284 : static void
285 0 : sql_help_ALTER_EXTENSION(PQExpBuffer buf)
286 : {
287 0 : appendPQExpBuffer(buf,
288 : "ALTER EXTENSION %s UPDATE [ TO %s ]\n"
289 : "ALTER EXTENSION %s SET SCHEMA %s\n"
290 : "ALTER EXTENSION %s ADD %s\n"
291 : "ALTER EXTENSION %s DROP %s\n"
292 : "\n"
293 : "%s\n"
294 : "\n"
295 : " ACCESS METHOD %s |\n"
296 : " AGGREGATE %s ( %s ) |\n"
297 : " CAST (%s AS %s) |\n"
298 : " COLLATION %s |\n"
299 : " CONVERSION %s |\n"
300 : " DOMAIN %s |\n"
301 : " EVENT TRIGGER %s |\n"
302 : " FOREIGN DATA WRAPPER %s |\n"
303 : " FOREIGN TABLE %s |\n"
304 : " FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
305 : " MATERIALIZED VIEW %s |\n"
306 : " OPERATOR %s (%s, %s) |\n"
307 : " OPERATOR CLASS %s USING %s |\n"
308 : " OPERATOR FAMILY %s USING %s |\n"
309 : " [ PROCEDURAL ] LANGUAGE %s |\n"
310 : " PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
311 : " ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
312 : " SCHEMA %s |\n"
313 : " SEQUENCE %s |\n"
314 : " SERVER %s |\n"
315 : " TABLE %s |\n"
316 : " TEXT SEARCH CONFIGURATION %s |\n"
317 : " TEXT SEARCH DICTIONARY %s |\n"
318 : " TEXT SEARCH PARSER %s |\n"
319 : " TEXT SEARCH TEMPLATE %s |\n"
320 : " TRANSFORM FOR %s LANGUAGE %s |\n"
321 : " TYPE %s |\n"
322 : " VIEW %s\n"
323 : "\n"
324 : "%s\n"
325 : "\n"
326 : "* |\n"
327 : "[ %s ] [ %s ] %s [ , ... ] |\n"
328 : "[ [ %s ] [ %s ] %s [ , ... ] ] ORDER BY [ %s ] [ %s ] %s [ , ... ]",
329 : _("name"),
330 : _("new_version"),
331 : _("name"),
332 : _("new_schema"),
333 : _("name"),
334 : _("member_object"),
335 : _("name"),
336 : _("member_object"),
337 : _("where member_object is:"),
338 : _("object_name"),
339 : _("aggregate_name"),
340 : _("aggregate_signature"),
341 : _("source_type"),
342 : _("target_type"),
343 : _("object_name"),
344 : _("object_name"),
345 : _("object_name"),
346 : _("object_name"),
347 : _("object_name"),
348 : _("object_name"),
349 : _("function_name"),
350 : _("argmode"),
351 : _("argname"),
352 : _("argtype"),
353 : _("object_name"),
354 : _("operator_name"),
355 : _("left_type"),
356 : _("right_type"),
357 : _("object_name"),
358 : _("index_method"),
359 : _("object_name"),
360 : _("index_method"),
361 : _("object_name"),
362 : _("procedure_name"),
363 : _("argmode"),
364 : _("argname"),
365 : _("argtype"),
366 : _("routine_name"),
367 : _("argmode"),
368 : _("argname"),
369 : _("argtype"),
370 : _("object_name"),
371 : _("object_name"),
372 : _("object_name"),
373 : _("object_name"),
374 : _("object_name"),
375 : _("object_name"),
376 : _("object_name"),
377 : _("object_name"),
378 : _("type_name"),
379 : _("lang_name"),
380 : _("object_name"),
381 : _("object_name"),
382 : _("and aggregate_signature is:"),
383 : _("argmode"),
384 : _("argname"),
385 : _("argtype"),
386 : _("argmode"),
387 : _("argname"),
388 : _("argtype"),
389 : _("argmode"),
390 : _("argname"),
391 : _("argtype"));
392 0 : }
393 :
394 : static void
395 0 : sql_help_ALTER_FOREIGN_DATA_WRAPPER(PQExpBuffer buf)
396 : {
397 0 : appendPQExpBuffer(buf,
398 : "ALTER FOREIGN DATA WRAPPER %s\n"
399 : " [ HANDLER %s | NO HANDLER ]\n"
400 : " [ VALIDATOR %s | NO VALIDATOR ]\n"
401 : " [ OPTIONS ( [ ADD | SET | DROP ] %s ['%s'] [, ... ]) ]\n"
402 : "ALTER FOREIGN DATA WRAPPER %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
403 : "ALTER FOREIGN DATA WRAPPER %s RENAME TO %s",
404 : _("name"),
405 : _("handler_function"),
406 : _("validator_function"),
407 : _("option"),
408 : _("value"),
409 : _("name"),
410 : _("new_owner"),
411 : _("name"),
412 : _("new_name"));
413 0 : }
414 :
415 : static void
416 0 : sql_help_ALTER_FOREIGN_TABLE(PQExpBuffer buf)
417 : {
418 0 : appendPQExpBuffer(buf,
419 : "ALTER FOREIGN TABLE [ IF EXISTS ] [ ONLY ] %s [ * ]\n"
420 : " %s [, ... ]\n"
421 : "ALTER FOREIGN TABLE [ IF EXISTS ] [ ONLY ] %s [ * ]\n"
422 : " RENAME [ COLUMN ] %s TO %s\n"
423 : "ALTER FOREIGN TABLE [ IF EXISTS ] %s\n"
424 : " RENAME TO %s\n"
425 : "ALTER FOREIGN TABLE [ IF EXISTS ] %s\n"
426 : " SET SCHEMA %s\n"
427 : "\n"
428 : "%s\n"
429 : "\n"
430 : " ADD [ COLUMN ] %s %s [ COLLATE %s ] [ %s [ ... ] ]\n"
431 : " DROP [ COLUMN ] [ IF EXISTS ] %s [ RESTRICT | CASCADE ]\n"
432 : " ALTER [ COLUMN ] %s [ SET DATA ] TYPE %s [ COLLATE %s ]\n"
433 : " ALTER [ COLUMN ] %s SET DEFAULT %s\n"
434 : " ALTER [ COLUMN ] %s DROP DEFAULT\n"
435 : " ALTER [ COLUMN ] %s { SET | DROP } NOT NULL\n"
436 : " ALTER [ COLUMN ] %s SET STATISTICS %s\n"
437 : " ALTER [ COLUMN ] %s SET ( %s = %s [, ... ] )\n"
438 : " ALTER [ COLUMN ] %s RESET ( %s [, ... ] )\n"
439 : " ALTER [ COLUMN ] %s SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN | DEFAULT }\n"
440 : " ALTER [ COLUMN ] %s OPTIONS ( [ ADD | SET | DROP ] %s ['%s'] [, ... ])\n"
441 : " ADD %s [ NOT VALID ]\n"
442 : " VALIDATE CONSTRAINT %s\n"
443 : " DROP CONSTRAINT [ IF EXISTS ] %s [ RESTRICT | CASCADE ]\n"
444 : " DISABLE TRIGGER [ %s | ALL | USER ]\n"
445 : " ENABLE TRIGGER [ %s | ALL | USER ]\n"
446 : " ENABLE REPLICA TRIGGER %s\n"
447 : " ENABLE ALWAYS TRIGGER %s\n"
448 : " SET WITHOUT OIDS\n"
449 : " INHERIT %s\n"
450 : " NO INHERIT %s\n"
451 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
452 : " OPTIONS ( [ ADD | SET | DROP ] %s ['%s'] [, ... ])",
453 : _("name"),
454 : _("action"),
455 : _("name"),
456 : _("column_name"),
457 : _("new_column_name"),
458 : _("name"),
459 : _("new_name"),
460 : _("name"),
461 : _("new_schema"),
462 : _("where action is one of:"),
463 : _("column_name"),
464 : _("data_type"),
465 : _("collation"),
466 : _("column_constraint"),
467 : _("column_name"),
468 : _("column_name"),
469 : _("data_type"),
470 : _("collation"),
471 : _("column_name"),
472 : _("expression"),
473 : _("column_name"),
474 : _("column_name"),
475 : _("column_name"),
476 : _("integer"),
477 : _("column_name"),
478 : _("attribute_option"),
479 : _("value"),
480 : _("column_name"),
481 : _("attribute_option"),
482 : _("column_name"),
483 : _("column_name"),
484 : _("option"),
485 : _("value"),
486 : _("table_constraint"),
487 : _("constraint_name"),
488 : _("constraint_name"),
489 : _("trigger_name"),
490 : _("trigger_name"),
491 : _("trigger_name"),
492 : _("trigger_name"),
493 : _("parent_table"),
494 : _("parent_table"),
495 : _("new_owner"),
496 : _("option"),
497 : _("value"));
498 0 : }
499 :
500 : static void
501 0 : sql_help_ALTER_FUNCTION(PQExpBuffer buf)
502 : {
503 0 : appendPQExpBuffer(buf,
504 : "ALTER FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
505 : " %s [ ... ] [ RESTRICT ]\n"
506 : "ALTER FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
507 : " RENAME TO %s\n"
508 : "ALTER FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
509 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
510 : "ALTER FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
511 : " SET SCHEMA %s\n"
512 : "ALTER FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
513 : " [ NO ] DEPENDS ON EXTENSION %s\n"
514 : "\n"
515 : "%s\n"
516 : "\n"
517 : " CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT\n"
518 : " IMMUTABLE | STABLE | VOLATILE\n"
519 : " [ NOT ] LEAKPROOF\n"
520 : " [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER\n"
521 : " PARALLEL { UNSAFE | RESTRICTED | SAFE }\n"
522 : " COST %s\n"
523 : " ROWS %s\n"
524 : " SUPPORT %s\n"
525 : " SET %s { TO | = } { %s | DEFAULT }\n"
526 : " SET %s FROM CURRENT\n"
527 : " RESET %s\n"
528 : " RESET ALL",
529 : _("name"),
530 : _("argmode"),
531 : _("argname"),
532 : _("argtype"),
533 : _("action"),
534 : _("name"),
535 : _("argmode"),
536 : _("argname"),
537 : _("argtype"),
538 : _("new_name"),
539 : _("name"),
540 : _("argmode"),
541 : _("argname"),
542 : _("argtype"),
543 : _("new_owner"),
544 : _("name"),
545 : _("argmode"),
546 : _("argname"),
547 : _("argtype"),
548 : _("new_schema"),
549 : _("name"),
550 : _("argmode"),
551 : _("argname"),
552 : _("argtype"),
553 : _("extension_name"),
554 : _("where action is one of:"),
555 : _("execution_cost"),
556 : _("result_rows"),
557 : _("support_function"),
558 : _("configuration_parameter"),
559 : _("value"),
560 : _("configuration_parameter"),
561 : _("configuration_parameter"));
562 0 : }
563 :
564 : static void
565 0 : sql_help_ALTER_GROUP(PQExpBuffer buf)
566 : {
567 0 : appendPQExpBuffer(buf,
568 : "ALTER GROUP %s ADD USER %s [, ... ]\n"
569 : "ALTER GROUP %s DROP USER %s [, ... ]\n"
570 : "\n"
571 : "%s\n"
572 : "\n"
573 : " %s\n"
574 : " | CURRENT_ROLE\n"
575 : " | CURRENT_USER\n"
576 : " | SESSION_USER\n"
577 : "\n"
578 : "ALTER GROUP %s RENAME TO %s",
579 : _("role_specification"),
580 : _("user_name"),
581 : _("role_specification"),
582 : _("user_name"),
583 : _("where role_specification can be:"),
584 : _("role_name"),
585 : _("group_name"),
586 : _("new_name"));
587 0 : }
588 :
589 : static void
590 0 : sql_help_ALTER_INDEX(PQExpBuffer buf)
591 : {
592 0 : appendPQExpBuffer(buf,
593 : "ALTER INDEX [ IF EXISTS ] %s RENAME TO %s\n"
594 : "ALTER INDEX [ IF EXISTS ] %s SET TABLESPACE %s\n"
595 : "ALTER INDEX %s ATTACH PARTITION %s\n"
596 : "ALTER INDEX %s [ NO ] DEPENDS ON EXTENSION %s\n"
597 : "ALTER INDEX [ IF EXISTS ] %s SET ( %s [= %s] [, ... ] )\n"
598 : "ALTER INDEX [ IF EXISTS ] %s RESET ( %s [, ... ] )\n"
599 : "ALTER INDEX [ IF EXISTS ] %s ALTER [ COLUMN ] %s\n"
600 : " SET STATISTICS %s\n"
601 : "ALTER INDEX ALL IN TABLESPACE %s [ OWNED BY %s [, ... ] ]\n"
602 : " SET TABLESPACE %s [ NOWAIT ]",
603 : _("name"),
604 : _("new_name"),
605 : _("name"),
606 : _("tablespace_name"),
607 : _("name"),
608 : _("index_name"),
609 : _("name"),
610 : _("extension_name"),
611 : _("name"),
612 : _("storage_parameter"),
613 : _("value"),
614 : _("name"),
615 : _("storage_parameter"),
616 : _("name"),
617 : _("column_number"),
618 : _("integer"),
619 : _("name"),
620 : _("role_name"),
621 : _("new_tablespace"));
622 0 : }
623 :
624 : static void
625 0 : sql_help_ALTER_LANGUAGE(PQExpBuffer buf)
626 : {
627 0 : appendPQExpBuffer(buf,
628 : "ALTER [ PROCEDURAL ] LANGUAGE %s RENAME TO %s\n"
629 : "ALTER [ PROCEDURAL ] LANGUAGE %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }",
630 : _("name"),
631 : _("new_name"),
632 : _("name"),
633 : _("new_owner"));
634 0 : }
635 :
636 : static void
637 0 : sql_help_ALTER_LARGE_OBJECT(PQExpBuffer buf)
638 : {
639 0 : appendPQExpBuffer(buf,
640 : "ALTER LARGE OBJECT %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }",
641 : _("large_object_oid"),
642 : _("new_owner"));
643 0 : }
644 :
645 : static void
646 0 : sql_help_ALTER_MATERIALIZED_VIEW(PQExpBuffer buf)
647 : {
648 0 : appendPQExpBuffer(buf,
649 : "ALTER MATERIALIZED VIEW [ IF EXISTS ] %s\n"
650 : " %s [, ... ]\n"
651 : "ALTER MATERIALIZED VIEW %s\n"
652 : " [ NO ] DEPENDS ON EXTENSION %s\n"
653 : "ALTER MATERIALIZED VIEW [ IF EXISTS ] %s\n"
654 : " RENAME [ COLUMN ] %s TO %s\n"
655 : "ALTER MATERIALIZED VIEW [ IF EXISTS ] %s\n"
656 : " RENAME TO %s\n"
657 : "ALTER MATERIALIZED VIEW [ IF EXISTS ] %s\n"
658 : " SET SCHEMA %s\n"
659 : "ALTER MATERIALIZED VIEW ALL IN TABLESPACE %s [ OWNED BY %s [, ... ] ]\n"
660 : " SET TABLESPACE %s [ NOWAIT ]\n"
661 : "\n"
662 : "%s\n"
663 : "\n"
664 : " ALTER [ COLUMN ] %s SET STATISTICS %s\n"
665 : " ALTER [ COLUMN ] %s SET ( %s = %s [, ... ] )\n"
666 : " ALTER [ COLUMN ] %s RESET ( %s [, ... ] )\n"
667 : " ALTER [ COLUMN ] %s SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN | DEFAULT }\n"
668 : " ALTER [ COLUMN ] %s SET COMPRESSION %s\n"
669 : " CLUSTER ON %s\n"
670 : " SET WITHOUT CLUSTER\n"
671 : " SET ACCESS METHOD %s\n"
672 : " SET TABLESPACE %s\n"
673 : " SET ( %s [= %s] [, ... ] )\n"
674 : " RESET ( %s [, ... ] )\n"
675 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }",
676 : _("name"),
677 : _("action"),
678 : _("name"),
679 : _("extension_name"),
680 : _("name"),
681 : _("column_name"),
682 : _("new_column_name"),
683 : _("name"),
684 : _("new_name"),
685 : _("name"),
686 : _("new_schema"),
687 : _("name"),
688 : _("role_name"),
689 : _("new_tablespace"),
690 : _("where action is one of:"),
691 : _("column_name"),
692 : _("integer"),
693 : _("column_name"),
694 : _("attribute_option"),
695 : _("value"),
696 : _("column_name"),
697 : _("attribute_option"),
698 : _("column_name"),
699 : _("column_name"),
700 : _("compression_method"),
701 : _("index_name"),
702 : _("new_access_method"),
703 : _("new_tablespace"),
704 : _("storage_parameter"),
705 : _("value"),
706 : _("storage_parameter"),
707 : _("new_owner"));
708 0 : }
709 :
710 : static void
711 0 : sql_help_ALTER_OPERATOR(PQExpBuffer buf)
712 : {
713 0 : appendPQExpBuffer(buf,
714 : "ALTER OPERATOR %s ( { %s | NONE } , %s )\n"
715 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
716 : "\n"
717 : "ALTER OPERATOR %s ( { %s | NONE } , %s )\n"
718 : " SET SCHEMA %s\n"
719 : "\n"
720 : "ALTER OPERATOR %s ( { %s | NONE } , %s )\n"
721 : " SET ( { RESTRICT = { %s | NONE }\n"
722 : " | JOIN = { %s | NONE }\n"
723 : " | COMMUTATOR = %s\n"
724 : " | NEGATOR = %s\n"
725 : " | HASHES\n"
726 : " | MERGES\n"
727 : " } [, ... ] )",
728 : _("name"),
729 : _("left_type"),
730 : _("right_type"),
731 : _("new_owner"),
732 : _("name"),
733 : _("left_type"),
734 : _("right_type"),
735 : _("new_schema"),
736 : _("name"),
737 : _("left_type"),
738 : _("right_type"),
739 : _("res_proc"),
740 : _("join_proc"),
741 : _("com_op"),
742 : _("neg_op"));
743 0 : }
744 :
745 : static void
746 0 : sql_help_ALTER_OPERATOR_CLASS(PQExpBuffer buf)
747 : {
748 0 : appendPQExpBuffer(buf,
749 : "ALTER OPERATOR CLASS %s USING %s\n"
750 : " RENAME TO %s\n"
751 : "\n"
752 : "ALTER OPERATOR CLASS %s USING %s\n"
753 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
754 : "\n"
755 : "ALTER OPERATOR CLASS %s USING %s\n"
756 : " SET SCHEMA %s",
757 : _("name"),
758 : _("index_method"),
759 : _("new_name"),
760 : _("name"),
761 : _("index_method"),
762 : _("new_owner"),
763 : _("name"),
764 : _("index_method"),
765 : _("new_schema"));
766 0 : }
767 :
768 : static void
769 0 : sql_help_ALTER_OPERATOR_FAMILY(PQExpBuffer buf)
770 : {
771 0 : appendPQExpBuffer(buf,
772 : "ALTER OPERATOR FAMILY %s USING %s ADD\n"
773 : " { OPERATOR %s %s ( %s, %s )\n"
774 : " [ FOR SEARCH | FOR ORDER BY %s ]\n"
775 : " | FUNCTION %s [ ( %s [ , %s ] ) ]\n"
776 : " %s [ ( %s [, ...] ) ]\n"
777 : " } [, ... ]\n"
778 : "\n"
779 : "ALTER OPERATOR FAMILY %s USING %s DROP\n"
780 : " { OPERATOR %s ( %s [ , %s ] )\n"
781 : " | FUNCTION %s ( %s [ , %s ] )\n"
782 : " } [, ... ]\n"
783 : "\n"
784 : "ALTER OPERATOR FAMILY %s USING %s\n"
785 : " RENAME TO %s\n"
786 : "\n"
787 : "ALTER OPERATOR FAMILY %s USING %s\n"
788 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
789 : "\n"
790 : "ALTER OPERATOR FAMILY %s USING %s\n"
791 : " SET SCHEMA %s",
792 : _("name"),
793 : _("index_method"),
794 : _("strategy_number"),
795 : _("operator_name"),
796 : _("op_type"),
797 : _("op_type"),
798 : _("sort_family_name"),
799 : _("support_number"),
800 : _("op_type"),
801 : _("op_type"),
802 : _("function_name"),
803 : _("argument_type"),
804 : _("name"),
805 : _("index_method"),
806 : _("strategy_number"),
807 : _("op_type"),
808 : _("op_type"),
809 : _("support_number"),
810 : _("op_type"),
811 : _("op_type"),
812 : _("name"),
813 : _("index_method"),
814 : _("new_name"),
815 : _("name"),
816 : _("index_method"),
817 : _("new_owner"),
818 : _("name"),
819 : _("index_method"),
820 : _("new_schema"));
821 0 : }
822 :
823 : static void
824 0 : sql_help_ALTER_POLICY(PQExpBuffer buf)
825 : {
826 0 : appendPQExpBuffer(buf,
827 : "ALTER POLICY %s ON %s RENAME TO %s\n"
828 : "\n"
829 : "ALTER POLICY %s ON %s\n"
830 : " [ TO { %s | PUBLIC | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...] ]\n"
831 : " [ USING ( %s ) ]\n"
832 : " [ WITH CHECK ( %s ) ]",
833 : _("name"),
834 : _("table_name"),
835 : _("new_name"),
836 : _("name"),
837 : _("table_name"),
838 : _("role_name"),
839 : _("using_expression"),
840 : _("check_expression"));
841 0 : }
842 :
843 : static void
844 0 : sql_help_ALTER_PROCEDURE(PQExpBuffer buf)
845 : {
846 0 : appendPQExpBuffer(buf,
847 : "ALTER PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
848 : " %s [ ... ] [ RESTRICT ]\n"
849 : "ALTER PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
850 : " RENAME TO %s\n"
851 : "ALTER PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
852 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
853 : "ALTER PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
854 : " SET SCHEMA %s\n"
855 : "ALTER PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
856 : " [ NO ] DEPENDS ON EXTENSION %s\n"
857 : "\n"
858 : "%s\n"
859 : "\n"
860 : " [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER\n"
861 : " SET %s { TO | = } { %s | DEFAULT }\n"
862 : " SET %s FROM CURRENT\n"
863 : " RESET %s\n"
864 : " RESET ALL",
865 : _("name"),
866 : _("argmode"),
867 : _("argname"),
868 : _("argtype"),
869 : _("action"),
870 : _("name"),
871 : _("argmode"),
872 : _("argname"),
873 : _("argtype"),
874 : _("new_name"),
875 : _("name"),
876 : _("argmode"),
877 : _("argname"),
878 : _("argtype"),
879 : _("new_owner"),
880 : _("name"),
881 : _("argmode"),
882 : _("argname"),
883 : _("argtype"),
884 : _("new_schema"),
885 : _("name"),
886 : _("argmode"),
887 : _("argname"),
888 : _("argtype"),
889 : _("extension_name"),
890 : _("where action is one of:"),
891 : _("configuration_parameter"),
892 : _("value"),
893 : _("configuration_parameter"),
894 : _("configuration_parameter"));
895 0 : }
896 :
897 : static void
898 0 : sql_help_ALTER_PUBLICATION(PQExpBuffer buf)
899 : {
900 0 : appendPQExpBuffer(buf,
901 : "ALTER PUBLICATION %s ADD %s [, ...]\n"
902 : "ALTER PUBLICATION %s SET %s [, ...]\n"
903 : "ALTER PUBLICATION %s DROP %s [, ...]\n"
904 : "ALTER PUBLICATION %s SET ( %s [= %s] [, ... ] )\n"
905 : "ALTER PUBLICATION %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
906 : "ALTER PUBLICATION %s RENAME TO %s\n"
907 : "\n"
908 : "%s\n"
909 : "\n"
910 : " TABLE [ ONLY ] %s [ * ] [ ( %s [, ... ] ) ] [ WHERE ( %s ) ] [, ... ]\n"
911 : " TABLES IN SCHEMA { %s | CURRENT_SCHEMA } [, ... ]",
912 : _("name"),
913 : _("publication_object"),
914 : _("name"),
915 : _("publication_object"),
916 : _("name"),
917 : _("publication_object"),
918 : _("name"),
919 : _("publication_parameter"),
920 : _("value"),
921 : _("name"),
922 : _("new_owner"),
923 : _("name"),
924 : _("new_name"),
925 : _("where publication_object is one of:"),
926 : _("table_name"),
927 : _("column_name"),
928 : _("expression"),
929 : _("schema_name"));
930 0 : }
931 :
932 : static void
933 0 : sql_help_ALTER_ROLE(PQExpBuffer buf)
934 : {
935 0 : appendPQExpBuffer(buf,
936 : "ALTER ROLE %s [ WITH ] %s [ ... ]\n"
937 : "\n"
938 : "%s\n"
939 : "\n"
940 : " SUPERUSER | NOSUPERUSER\n"
941 : " | CREATEDB | NOCREATEDB\n"
942 : " | CREATEROLE | NOCREATEROLE\n"
943 : " | INHERIT | NOINHERIT\n"
944 : " | LOGIN | NOLOGIN\n"
945 : " | REPLICATION | NOREPLICATION\n"
946 : " | BYPASSRLS | NOBYPASSRLS\n"
947 : " | CONNECTION LIMIT %s\n"
948 : " | [ ENCRYPTED ] PASSWORD '%s' | PASSWORD NULL\n"
949 : " | VALID UNTIL '%s'\n"
950 : "\n"
951 : "ALTER ROLE %s RENAME TO %s\n"
952 : "\n"
953 : "ALTER ROLE { %s | ALL } [ IN DATABASE %s ] SET %s { TO | = } { %s | DEFAULT }\n"
954 : "ALTER ROLE { %s | ALL } [ IN DATABASE %s ] SET %s FROM CURRENT\n"
955 : "ALTER ROLE { %s | ALL } [ IN DATABASE %s ] RESET %s\n"
956 : "ALTER ROLE { %s | ALL } [ IN DATABASE %s ] RESET ALL\n"
957 : "\n"
958 : "%s\n"
959 : "\n"
960 : " %s\n"
961 : " | CURRENT_ROLE\n"
962 : " | CURRENT_USER\n"
963 : " | SESSION_USER",
964 : _("role_specification"),
965 : _("option"),
966 : _("where option can be:"),
967 : _("connlimit"),
968 : _("password"),
969 : _("timestamp"),
970 : _("name"),
971 : _("new_name"),
972 : _("role_specification"),
973 : _("database_name"),
974 : _("configuration_parameter"),
975 : _("value"),
976 : _("role_specification"),
977 : _("database_name"),
978 : _("configuration_parameter"),
979 : _("role_specification"),
980 : _("database_name"),
981 : _("configuration_parameter"),
982 : _("role_specification"),
983 : _("database_name"),
984 : _("where role_specification can be:"),
985 : _("role_name"));
986 0 : }
987 :
988 : static void
989 0 : sql_help_ALTER_ROUTINE(PQExpBuffer buf)
990 : {
991 0 : appendPQExpBuffer(buf,
992 : "ALTER ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
993 : " %s [ ... ] [ RESTRICT ]\n"
994 : "ALTER ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
995 : " RENAME TO %s\n"
996 : "ALTER ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
997 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
998 : "ALTER ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
999 : " SET SCHEMA %s\n"
1000 : "ALTER ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ]\n"
1001 : " [ NO ] DEPENDS ON EXTENSION %s\n"
1002 : "\n"
1003 : "%s\n"
1004 : "\n"
1005 : " IMMUTABLE | STABLE | VOLATILE\n"
1006 : " [ NOT ] LEAKPROOF\n"
1007 : " [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER\n"
1008 : " PARALLEL { UNSAFE | RESTRICTED | SAFE }\n"
1009 : " COST %s\n"
1010 : " ROWS %s\n"
1011 : " SET %s { TO | = } { %s | DEFAULT }\n"
1012 : " SET %s FROM CURRENT\n"
1013 : " RESET %s\n"
1014 : " RESET ALL",
1015 : _("name"),
1016 : _("argmode"),
1017 : _("argname"),
1018 : _("argtype"),
1019 : _("action"),
1020 : _("name"),
1021 : _("argmode"),
1022 : _("argname"),
1023 : _("argtype"),
1024 : _("new_name"),
1025 : _("name"),
1026 : _("argmode"),
1027 : _("argname"),
1028 : _("argtype"),
1029 : _("new_owner"),
1030 : _("name"),
1031 : _("argmode"),
1032 : _("argname"),
1033 : _("argtype"),
1034 : _("new_schema"),
1035 : _("name"),
1036 : _("argmode"),
1037 : _("argname"),
1038 : _("argtype"),
1039 : _("extension_name"),
1040 : _("where action is one of:"),
1041 : _("execution_cost"),
1042 : _("result_rows"),
1043 : _("configuration_parameter"),
1044 : _("value"),
1045 : _("configuration_parameter"),
1046 : _("configuration_parameter"));
1047 0 : }
1048 :
1049 : static void
1050 0 : sql_help_ALTER_RULE(PQExpBuffer buf)
1051 : {
1052 0 : appendPQExpBuffer(buf,
1053 : "ALTER RULE %s ON %s RENAME TO %s",
1054 : _("name"),
1055 : _("table_name"),
1056 : _("new_name"));
1057 0 : }
1058 :
1059 : static void
1060 0 : sql_help_ALTER_SCHEMA(PQExpBuffer buf)
1061 : {
1062 0 : appendPQExpBuffer(buf,
1063 : "ALTER SCHEMA %s RENAME TO %s\n"
1064 : "ALTER SCHEMA %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }",
1065 : _("name"),
1066 : _("new_name"),
1067 : _("name"),
1068 : _("new_owner"));
1069 0 : }
1070 :
1071 : static void
1072 0 : sql_help_ALTER_SEQUENCE(PQExpBuffer buf)
1073 : {
1074 0 : appendPQExpBuffer(buf,
1075 : "ALTER SEQUENCE [ IF EXISTS ] %s\n"
1076 : " [ AS %s ]\n"
1077 : " [ INCREMENT [ BY ] %s ]\n"
1078 : " [ MINVALUE %s | NO MINVALUE ] [ MAXVALUE %s | NO MAXVALUE ]\n"
1079 : " [ [ NO ] CYCLE ]\n"
1080 : " [ START [ WITH ] %s ]\n"
1081 : " [ RESTART [ [ WITH ] %s ] ]\n"
1082 : " [ CACHE %s ]\n"
1083 : " [ OWNED BY { %s.%s | NONE } ]\n"
1084 : "ALTER SEQUENCE [ IF EXISTS ] %s SET { LOGGED | UNLOGGED }\n"
1085 : "ALTER SEQUENCE [ IF EXISTS ] %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1086 : "ALTER SEQUENCE [ IF EXISTS ] %s RENAME TO %s\n"
1087 : "ALTER SEQUENCE [ IF EXISTS ] %s SET SCHEMA %s",
1088 : _("name"),
1089 : _("data_type"),
1090 : _("increment"),
1091 : _("minvalue"),
1092 : _("maxvalue"),
1093 : _("start"),
1094 : _("restart"),
1095 : _("cache"),
1096 : _("table_name"),
1097 : _("column_name"),
1098 : _("name"),
1099 : _("name"),
1100 : _("new_owner"),
1101 : _("name"),
1102 : _("new_name"),
1103 : _("name"),
1104 : _("new_schema"));
1105 0 : }
1106 :
1107 : static void
1108 0 : sql_help_ALTER_SERVER(PQExpBuffer buf)
1109 : {
1110 0 : appendPQExpBuffer(buf,
1111 : "ALTER SERVER %s [ VERSION '%s' ]\n"
1112 : " [ OPTIONS ( [ ADD | SET | DROP ] %s ['%s'] [, ... ] ) ]\n"
1113 : "ALTER SERVER %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1114 : "ALTER SERVER %s RENAME TO %s",
1115 : _("name"),
1116 : _("new_version"),
1117 : _("option"),
1118 : _("value"),
1119 : _("name"),
1120 : _("new_owner"),
1121 : _("name"),
1122 : _("new_name"));
1123 0 : }
1124 :
1125 : static void
1126 0 : sql_help_ALTER_STATISTICS(PQExpBuffer buf)
1127 : {
1128 0 : appendPQExpBuffer(buf,
1129 : "ALTER STATISTICS %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1130 : "ALTER STATISTICS %s RENAME TO %s\n"
1131 : "ALTER STATISTICS %s SET SCHEMA %s\n"
1132 : "ALTER STATISTICS %s SET STATISTICS { %s | DEFAULT }",
1133 : _("name"),
1134 : _("new_owner"),
1135 : _("name"),
1136 : _("new_name"),
1137 : _("name"),
1138 : _("new_schema"),
1139 : _("name"),
1140 : _("new_target"));
1141 0 : }
1142 :
1143 : static void
1144 0 : sql_help_ALTER_SUBSCRIPTION(PQExpBuffer buf)
1145 : {
1146 0 : appendPQExpBuffer(buf,
1147 : "ALTER SUBSCRIPTION %s CONNECTION '%s'\n"
1148 : "ALTER SUBSCRIPTION %s SET PUBLICATION %s [, ...] [ WITH ( %s [= %s] [, ... ] ) ]\n"
1149 : "ALTER SUBSCRIPTION %s ADD PUBLICATION %s [, ...] [ WITH ( %s [= %s] [, ... ] ) ]\n"
1150 : "ALTER SUBSCRIPTION %s DROP PUBLICATION %s [, ...] [ WITH ( %s [= %s] [, ... ] ) ]\n"
1151 : "ALTER SUBSCRIPTION %s REFRESH PUBLICATION [ WITH ( %s [= %s] [, ... ] ) ]\n"
1152 : "ALTER SUBSCRIPTION %s ENABLE\n"
1153 : "ALTER SUBSCRIPTION %s DISABLE\n"
1154 : "ALTER SUBSCRIPTION %s SET ( %s [= %s] [, ... ] )\n"
1155 : "ALTER SUBSCRIPTION %s SKIP ( %s = %s )\n"
1156 : "ALTER SUBSCRIPTION %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1157 : "ALTER SUBSCRIPTION %s RENAME TO %s",
1158 : _("name"),
1159 : _("conninfo"),
1160 : _("name"),
1161 : _("publication_name"),
1162 : _("publication_option"),
1163 : _("value"),
1164 : _("name"),
1165 : _("publication_name"),
1166 : _("publication_option"),
1167 : _("value"),
1168 : _("name"),
1169 : _("publication_name"),
1170 : _("publication_option"),
1171 : _("value"),
1172 : _("name"),
1173 : _("refresh_option"),
1174 : _("value"),
1175 : _("name"),
1176 : _("name"),
1177 : _("name"),
1178 : _("subscription_parameter"),
1179 : _("value"),
1180 : _("name"),
1181 : _("skip_option"),
1182 : _("value"),
1183 : _("name"),
1184 : _("new_owner"),
1185 : _("name"),
1186 : _("new_name"));
1187 0 : }
1188 :
1189 : static void
1190 0 : sql_help_ALTER_SYSTEM(PQExpBuffer buf)
1191 : {
1192 0 : appendPQExpBuffer(buf,
1193 : "ALTER SYSTEM SET %s { TO | = } { %s [, ...] | DEFAULT }\n"
1194 : "\n"
1195 : "ALTER SYSTEM RESET %s\n"
1196 : "ALTER SYSTEM RESET ALL",
1197 : _("configuration_parameter"),
1198 : _("value"),
1199 : _("configuration_parameter"));
1200 0 : }
1201 :
1202 : static void
1203 0 : sql_help_ALTER_TABLE(PQExpBuffer buf)
1204 : {
1205 0 : appendPQExpBuffer(buf,
1206 : "ALTER TABLE [ IF EXISTS ] [ ONLY ] %s [ * ]\n"
1207 : " %s [, ... ]\n"
1208 : "ALTER TABLE [ IF EXISTS ] [ ONLY ] %s [ * ]\n"
1209 : " RENAME [ COLUMN ] %s TO %s\n"
1210 : "ALTER TABLE [ IF EXISTS ] [ ONLY ] %s [ * ]\n"
1211 : " RENAME CONSTRAINT %s TO %s\n"
1212 : "ALTER TABLE [ IF EXISTS ] %s\n"
1213 : " RENAME TO %s\n"
1214 : "ALTER TABLE [ IF EXISTS ] %s\n"
1215 : " SET SCHEMA %s\n"
1216 : "ALTER TABLE ALL IN TABLESPACE %s [ OWNED BY %s [, ... ] ]\n"
1217 : " SET TABLESPACE %s [ NOWAIT ]\n"
1218 : "ALTER TABLE [ IF EXISTS ] %s\n"
1219 : " ATTACH PARTITION %s { FOR VALUES %s | DEFAULT }\n"
1220 : "ALTER TABLE [ IF EXISTS ] %s\n"
1221 : " DETACH PARTITION %s [ CONCURRENTLY | FINALIZE ]\n"
1222 : "\n"
1223 : "%s\n"
1224 : "\n"
1225 : " ADD [ COLUMN ] [ IF NOT EXISTS ] %s %s [ COLLATE %s ] [ %s [ ... ] ]\n"
1226 : " DROP [ COLUMN ] [ IF EXISTS ] %s [ RESTRICT | CASCADE ]\n"
1227 : " ALTER [ COLUMN ] %s [ SET DATA ] TYPE %s [ COLLATE %s ] [ USING %s ]\n"
1228 : " ALTER [ COLUMN ] %s SET DEFAULT %s\n"
1229 : " ALTER [ COLUMN ] %s DROP DEFAULT\n"
1230 : " ALTER [ COLUMN ] %s { SET | DROP } NOT NULL\n"
1231 : " ALTER [ COLUMN ] %s SET EXPRESSION AS ( %s )\n"
1232 : " ALTER [ COLUMN ] %s DROP EXPRESSION [ IF EXISTS ]\n"
1233 : " ALTER [ COLUMN ] %s ADD GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( %s ) ]\n"
1234 : " ALTER [ COLUMN ] %s { SET GENERATED { ALWAYS | BY DEFAULT } | SET %s | RESTART [ [ WITH ] %s ] } [...]\n"
1235 : " ALTER [ COLUMN ] %s DROP IDENTITY [ IF EXISTS ]\n"
1236 : " ALTER [ COLUMN ] %s SET STATISTICS { %s | DEFAULT }\n"
1237 : " ALTER [ COLUMN ] %s SET ( %s = %s [, ... ] )\n"
1238 : " ALTER [ COLUMN ] %s RESET ( %s [, ... ] )\n"
1239 : " ALTER [ COLUMN ] %s SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN | DEFAULT }\n"
1240 : " ALTER [ COLUMN ] %s SET COMPRESSION %s\n"
1241 : " ADD %s [ NOT VALID ]\n"
1242 : " ADD %s\n"
1243 : " ALTER CONSTRAINT %s [ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ]\n"
1244 : " VALIDATE CONSTRAINT %s\n"
1245 : " DROP CONSTRAINT [ IF EXISTS ] %s [ RESTRICT | CASCADE ]\n"
1246 : " DISABLE TRIGGER [ %s | ALL | USER ]\n"
1247 : " ENABLE TRIGGER [ %s | ALL | USER ]\n"
1248 : " ENABLE REPLICA TRIGGER %s\n"
1249 : " ENABLE ALWAYS TRIGGER %s\n"
1250 : " DISABLE RULE %s\n"
1251 : " ENABLE RULE %s\n"
1252 : " ENABLE REPLICA RULE %s\n"
1253 : " ENABLE ALWAYS RULE %s\n"
1254 : " DISABLE ROW LEVEL SECURITY\n"
1255 : " ENABLE ROW LEVEL SECURITY\n"
1256 : " FORCE ROW LEVEL SECURITY\n"
1257 : " NO FORCE ROW LEVEL SECURITY\n"
1258 : " CLUSTER ON %s\n"
1259 : " SET WITHOUT CLUSTER\n"
1260 : " SET WITHOUT OIDS\n"
1261 : " SET ACCESS METHOD { %s | DEFAULT }\n"
1262 : " SET TABLESPACE %s\n"
1263 : " SET { LOGGED | UNLOGGED }\n"
1264 : " SET ( %s [= %s] [, ... ] )\n"
1265 : " RESET ( %s [, ... ] )\n"
1266 : " INHERIT %s\n"
1267 : " NO INHERIT %s\n"
1268 : " OF %s\n"
1269 : " NOT OF\n"
1270 : " OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1271 : " REPLICA IDENTITY { DEFAULT | USING INDEX %s | FULL | NOTHING }\n"
1272 : "\n"
1273 : "%s\n"
1274 : "\n"
1275 : "IN ( %s [, ...] ) |\n"
1276 : "FROM ( { %s | MINVALUE | MAXVALUE } [, ...] )\n"
1277 : " TO ( { %s | MINVALUE | MAXVALUE } [, ...] ) |\n"
1278 : "WITH ( MODULUS %s, REMAINDER %s )\n"
1279 : "\n"
1280 : "%s\n"
1281 : "\n"
1282 : "[ CONSTRAINT %s ]\n"
1283 : "{ NOT NULL [ NO INHERIT ] |\n"
1284 : " NULL |\n"
1285 : " CHECK ( %s ) [ NO INHERIT ] |\n"
1286 : " DEFAULT %s |\n"
1287 : " GENERATED ALWAYS AS ( %s ) STORED |\n"
1288 : " GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( %s ) ] |\n"
1289 : " UNIQUE [ NULLS [ NOT ] DISTINCT ] %s |\n"
1290 : " PRIMARY KEY %s |\n"
1291 : " REFERENCES %s [ ( %s ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ]\n"
1292 : " [ ON DELETE %s ] [ ON UPDATE %s ] }\n"
1293 : "[ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ] [ ENFORCED | NOT ENFORCED ]\n"
1294 : "\n"
1295 : "%s\n"
1296 : "\n"
1297 : "[ CONSTRAINT %s ]\n"
1298 : "{ CHECK ( %s ) [ NO INHERIT ] |\n"
1299 : " NOT NULL %s [ NO INHERIT ] |\n"
1300 : " UNIQUE [ NULLS [ NOT ] DISTINCT ] ( %s [, ... ] [, %s WITHOUT OVERLAPS ] ) %s |\n"
1301 : " PRIMARY KEY ( %s [, ... ] [, %s WITHOUT OVERLAPS ] ) %s |\n"
1302 : " EXCLUDE [ USING %s ] ( %s WITH %s [, ... ] ) %s [ WHERE ( %s ) ] |\n"
1303 : " FOREIGN KEY ( %s [, ... ] [, PERIOD %s ] ) REFERENCES %s [ ( %s [, ... ] [, PERIOD %s ] ) ]\n"
1304 : " [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE %s ] [ ON UPDATE %s ] }\n"
1305 : "[ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ] [ ENFORCED | NOT ENFORCED ]\n"
1306 : "\n"
1307 : "%s\n"
1308 : "\n"
1309 : " [ CONSTRAINT %s ]\n"
1310 : " { UNIQUE | PRIMARY KEY } USING INDEX %s\n"
1311 : " [ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ]\n"
1312 : "\n"
1313 : "%s\n"
1314 : "\n"
1315 : "[ INCLUDE ( %s [, ... ] ) ]\n"
1316 : "[ WITH ( %s [= %s] [, ... ] ) ]\n"
1317 : "[ USING INDEX TABLESPACE %s ]\n"
1318 : "\n"
1319 : "%s\n"
1320 : "\n"
1321 : "{ %s | ( %s ) } [ COLLATE %s ] [ %s [ ( %s = %s [, ... ] ) ] ] [ ASC | DESC ] [ NULLS { FIRST | LAST } ]\n"
1322 : "\n"
1323 : "%s\n"
1324 : "\n"
1325 : "{ NO ACTION | RESTRICT | CASCADE | SET NULL [ ( %s [, ... ] ) ] | SET DEFAULT [ ( %s [, ... ] ) ] }",
1326 : _("name"),
1327 : _("action"),
1328 : _("name"),
1329 : _("column_name"),
1330 : _("new_column_name"),
1331 : _("name"),
1332 : _("constraint_name"),
1333 : _("new_constraint_name"),
1334 : _("name"),
1335 : _("new_name"),
1336 : _("name"),
1337 : _("new_schema"),
1338 : _("name"),
1339 : _("role_name"),
1340 : _("new_tablespace"),
1341 : _("name"),
1342 : _("partition_name"),
1343 : _("partition_bound_spec"),
1344 : _("name"),
1345 : _("partition_name"),
1346 : _("where action is one of:"),
1347 : _("column_name"),
1348 : _("data_type"),
1349 : _("collation"),
1350 : _("column_constraint"),
1351 : _("column_name"),
1352 : _("column_name"),
1353 : _("data_type"),
1354 : _("collation"),
1355 : _("expression"),
1356 : _("column_name"),
1357 : _("expression"),
1358 : _("column_name"),
1359 : _("column_name"),
1360 : _("column_name"),
1361 : _("expression"),
1362 : _("column_name"),
1363 : _("column_name"),
1364 : _("sequence_options"),
1365 : _("column_name"),
1366 : _("sequence_option"),
1367 : _("restart"),
1368 : _("column_name"),
1369 : _("column_name"),
1370 : _("integer"),
1371 : _("column_name"),
1372 : _("attribute_option"),
1373 : _("value"),
1374 : _("column_name"),
1375 : _("attribute_option"),
1376 : _("column_name"),
1377 : _("column_name"),
1378 : _("compression_method"),
1379 : _("table_constraint"),
1380 : _("table_constraint_using_index"),
1381 : _("constraint_name"),
1382 : _("constraint_name"),
1383 : _("constraint_name"),
1384 : _("trigger_name"),
1385 : _("trigger_name"),
1386 : _("trigger_name"),
1387 : _("trigger_name"),
1388 : _("rewrite_rule_name"),
1389 : _("rewrite_rule_name"),
1390 : _("rewrite_rule_name"),
1391 : _("rewrite_rule_name"),
1392 : _("index_name"),
1393 : _("new_access_method"),
1394 : _("new_tablespace"),
1395 : _("storage_parameter"),
1396 : _("value"),
1397 : _("storage_parameter"),
1398 : _("parent_table"),
1399 : _("parent_table"),
1400 : _("type_name"),
1401 : _("new_owner"),
1402 : _("index_name"),
1403 : _("and partition_bound_spec is:"),
1404 : _("partition_bound_expr"),
1405 : _("partition_bound_expr"),
1406 : _("partition_bound_expr"),
1407 : _("numeric_literal"),
1408 : _("numeric_literal"),
1409 : _("and column_constraint is:"),
1410 : _("constraint_name"),
1411 : _("expression"),
1412 : _("default_expr"),
1413 : _("generation_expr"),
1414 : _("sequence_options"),
1415 : _("index_parameters"),
1416 : _("index_parameters"),
1417 : _("reftable"),
1418 : _("refcolumn"),
1419 : _("referential_action"),
1420 : _("referential_action"),
1421 : _("and table_constraint is:"),
1422 : _("constraint_name"),
1423 : _("expression"),
1424 : _("column_name"),
1425 : _("column_name"),
1426 : _("column_name"),
1427 : _("index_parameters"),
1428 : _("column_name"),
1429 : _("column_name"),
1430 : _("index_parameters"),
1431 : _("index_method"),
1432 : _("exclude_element"),
1433 : _("operator"),
1434 : _("index_parameters"),
1435 : _("predicate"),
1436 : _("column_name"),
1437 : _("column_name"),
1438 : _("reftable"),
1439 : _("refcolumn"),
1440 : _("refcolumn"),
1441 : _("referential_action"),
1442 : _("referential_action"),
1443 : _("and table_constraint_using_index is:"),
1444 : _("constraint_name"),
1445 : _("index_name"),
1446 : _("index_parameters in UNIQUE, PRIMARY KEY, and EXCLUDE constraints are:"),
1447 : _("column_name"),
1448 : _("storage_parameter"),
1449 : _("value"),
1450 : _("tablespace_name"),
1451 : _("exclude_element in an EXCLUDE constraint is:"),
1452 : _("column_name"),
1453 : _("expression"),
1454 : _("collation"),
1455 : _("opclass"),
1456 : _("opclass_parameter"),
1457 : _("value"),
1458 : _("referential_action in a FOREIGN KEY/REFERENCES constraint is:"),
1459 : _("column_name"),
1460 : _("column_name"));
1461 0 : }
1462 :
1463 : static void
1464 0 : sql_help_ALTER_TABLESPACE(PQExpBuffer buf)
1465 : {
1466 0 : appendPQExpBuffer(buf,
1467 : "ALTER TABLESPACE %s RENAME TO %s\n"
1468 : "ALTER TABLESPACE %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1469 : "ALTER TABLESPACE %s SET ( %s = %s [, ... ] )\n"
1470 : "ALTER TABLESPACE %s RESET ( %s [, ... ] )",
1471 : _("name"),
1472 : _("new_name"),
1473 : _("name"),
1474 : _("new_owner"),
1475 : _("name"),
1476 : _("tablespace_option"),
1477 : _("value"),
1478 : _("name"),
1479 : _("tablespace_option"));
1480 0 : }
1481 :
1482 : static void
1483 0 : sql_help_ALTER_TEXT_SEARCH_CONFIGURATION(PQExpBuffer buf)
1484 : {
1485 0 : appendPQExpBuffer(buf,
1486 : "ALTER TEXT SEARCH CONFIGURATION %s\n"
1487 : " ADD MAPPING FOR %s [, ... ] WITH %s [, ... ]\n"
1488 : "ALTER TEXT SEARCH CONFIGURATION %s\n"
1489 : " ALTER MAPPING FOR %s [, ... ] WITH %s [, ... ]\n"
1490 : "ALTER TEXT SEARCH CONFIGURATION %s\n"
1491 : " ALTER MAPPING REPLACE %s WITH %s\n"
1492 : "ALTER TEXT SEARCH CONFIGURATION %s\n"
1493 : " ALTER MAPPING FOR %s [, ... ] REPLACE %s WITH %s\n"
1494 : "ALTER TEXT SEARCH CONFIGURATION %s\n"
1495 : " DROP MAPPING [ IF EXISTS ] FOR %s [, ... ]\n"
1496 : "ALTER TEXT SEARCH CONFIGURATION %s RENAME TO %s\n"
1497 : "ALTER TEXT SEARCH CONFIGURATION %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1498 : "ALTER TEXT SEARCH CONFIGURATION %s SET SCHEMA %s",
1499 : _("name"),
1500 : _("token_type"),
1501 : _("dictionary_name"),
1502 : _("name"),
1503 : _("token_type"),
1504 : _("dictionary_name"),
1505 : _("name"),
1506 : _("old_dictionary"),
1507 : _("new_dictionary"),
1508 : _("name"),
1509 : _("token_type"),
1510 : _("old_dictionary"),
1511 : _("new_dictionary"),
1512 : _("name"),
1513 : _("token_type"),
1514 : _("name"),
1515 : _("new_name"),
1516 : _("name"),
1517 : _("new_owner"),
1518 : _("name"),
1519 : _("new_schema"));
1520 0 : }
1521 :
1522 : static void
1523 0 : sql_help_ALTER_TEXT_SEARCH_DICTIONARY(PQExpBuffer buf)
1524 : {
1525 0 : appendPQExpBuffer(buf,
1526 : "ALTER TEXT SEARCH DICTIONARY %s (\n"
1527 : " %s [ = %s ] [, ... ]\n"
1528 : ")\n"
1529 : "ALTER TEXT SEARCH DICTIONARY %s RENAME TO %s\n"
1530 : "ALTER TEXT SEARCH DICTIONARY %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1531 : "ALTER TEXT SEARCH DICTIONARY %s SET SCHEMA %s",
1532 : _("name"),
1533 : _("option"),
1534 : _("value"),
1535 : _("name"),
1536 : _("new_name"),
1537 : _("name"),
1538 : _("new_owner"),
1539 : _("name"),
1540 : _("new_schema"));
1541 0 : }
1542 :
1543 : static void
1544 0 : sql_help_ALTER_TEXT_SEARCH_PARSER(PQExpBuffer buf)
1545 : {
1546 0 : appendPQExpBuffer(buf,
1547 : "ALTER TEXT SEARCH PARSER %s RENAME TO %s\n"
1548 : "ALTER TEXT SEARCH PARSER %s SET SCHEMA %s",
1549 : _("name"),
1550 : _("new_name"),
1551 : _("name"),
1552 : _("new_schema"));
1553 0 : }
1554 :
1555 : static void
1556 0 : sql_help_ALTER_TEXT_SEARCH_TEMPLATE(PQExpBuffer buf)
1557 : {
1558 0 : appendPQExpBuffer(buf,
1559 : "ALTER TEXT SEARCH TEMPLATE %s RENAME TO %s\n"
1560 : "ALTER TEXT SEARCH TEMPLATE %s SET SCHEMA %s",
1561 : _("name"),
1562 : _("new_name"),
1563 : _("name"),
1564 : _("new_schema"));
1565 0 : }
1566 :
1567 : static void
1568 0 : sql_help_ALTER_TRIGGER(PQExpBuffer buf)
1569 : {
1570 0 : appendPQExpBuffer(buf,
1571 : "ALTER TRIGGER %s ON %s RENAME TO %s\n"
1572 : "ALTER TRIGGER %s ON %s [ NO ] DEPENDS ON EXTENSION %s",
1573 : _("name"),
1574 : _("table_name"),
1575 : _("new_name"),
1576 : _("name"),
1577 : _("table_name"),
1578 : _("extension_name"));
1579 0 : }
1580 :
1581 : static void
1582 0 : sql_help_ALTER_TYPE(PQExpBuffer buf)
1583 : {
1584 0 : appendPQExpBuffer(buf,
1585 : "ALTER TYPE %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1586 : "ALTER TYPE %s RENAME TO %s\n"
1587 : "ALTER TYPE %s SET SCHEMA %s\n"
1588 : "ALTER TYPE %s RENAME ATTRIBUTE %s TO %s [ CASCADE | RESTRICT ]\n"
1589 : "ALTER TYPE %s %s [, ... ]\n"
1590 : "ALTER TYPE %s ADD VALUE [ IF NOT EXISTS ] %s [ { BEFORE | AFTER } %s ]\n"
1591 : "ALTER TYPE %s RENAME VALUE %s TO %s\n"
1592 : "ALTER TYPE %s SET ( %s = %s [, ... ] )\n"
1593 : "\n"
1594 : "%s\n"
1595 : "\n"
1596 : " ADD ATTRIBUTE %s %s [ COLLATE %s ] [ CASCADE | RESTRICT ]\n"
1597 : " DROP ATTRIBUTE [ IF EXISTS ] %s [ CASCADE | RESTRICT ]\n"
1598 : " ALTER ATTRIBUTE %s [ SET DATA ] TYPE %s [ COLLATE %s ] [ CASCADE | RESTRICT ]",
1599 : _("name"),
1600 : _("new_owner"),
1601 : _("name"),
1602 : _("new_name"),
1603 : _("name"),
1604 : _("new_schema"),
1605 : _("name"),
1606 : _("attribute_name"),
1607 : _("new_attribute_name"),
1608 : _("name"),
1609 : _("action"),
1610 : _("name"),
1611 : _("new_enum_value"),
1612 : _("neighbor_enum_value"),
1613 : _("name"),
1614 : _("existing_enum_value"),
1615 : _("new_enum_value"),
1616 : _("name"),
1617 : _("property"),
1618 : _("value"),
1619 : _("where action is one of:"),
1620 : _("attribute_name"),
1621 : _("data_type"),
1622 : _("collation"),
1623 : _("attribute_name"),
1624 : _("attribute_name"),
1625 : _("data_type"),
1626 : _("collation"));
1627 0 : }
1628 :
1629 : static void
1630 0 : sql_help_ALTER_USER(PQExpBuffer buf)
1631 : {
1632 0 : appendPQExpBuffer(buf,
1633 : "ALTER USER %s [ WITH ] %s [ ... ]\n"
1634 : "\n"
1635 : "%s\n"
1636 : "\n"
1637 : " SUPERUSER | NOSUPERUSER\n"
1638 : " | CREATEDB | NOCREATEDB\n"
1639 : " | CREATEROLE | NOCREATEROLE\n"
1640 : " | INHERIT | NOINHERIT\n"
1641 : " | LOGIN | NOLOGIN\n"
1642 : " | REPLICATION | NOREPLICATION\n"
1643 : " | BYPASSRLS | NOBYPASSRLS\n"
1644 : " | CONNECTION LIMIT %s\n"
1645 : " | [ ENCRYPTED ] PASSWORD '%s' | PASSWORD NULL\n"
1646 : " | VALID UNTIL '%s'\n"
1647 : "\n"
1648 : "ALTER USER %s RENAME TO %s\n"
1649 : "\n"
1650 : "ALTER USER { %s | ALL } [ IN DATABASE %s ] SET %s { TO | = } { %s | DEFAULT }\n"
1651 : "ALTER USER { %s | ALL } [ IN DATABASE %s ] SET %s FROM CURRENT\n"
1652 : "ALTER USER { %s | ALL } [ IN DATABASE %s ] RESET %s\n"
1653 : "ALTER USER { %s | ALL } [ IN DATABASE %s ] RESET ALL\n"
1654 : "\n"
1655 : "%s\n"
1656 : "\n"
1657 : " %s\n"
1658 : " | CURRENT_ROLE\n"
1659 : " | CURRENT_USER\n"
1660 : " | SESSION_USER",
1661 : _("role_specification"),
1662 : _("option"),
1663 : _("where option can be:"),
1664 : _("connlimit"),
1665 : _("password"),
1666 : _("timestamp"),
1667 : _("name"),
1668 : _("new_name"),
1669 : _("role_specification"),
1670 : _("database_name"),
1671 : _("configuration_parameter"),
1672 : _("value"),
1673 : _("role_specification"),
1674 : _("database_name"),
1675 : _("configuration_parameter"),
1676 : _("role_specification"),
1677 : _("database_name"),
1678 : _("configuration_parameter"),
1679 : _("role_specification"),
1680 : _("database_name"),
1681 : _("where role_specification can be:"),
1682 : _("role_name"));
1683 0 : }
1684 :
1685 : static void
1686 0 : sql_help_ALTER_USER_MAPPING(PQExpBuffer buf)
1687 : {
1688 0 : appendPQExpBuffer(buf,
1689 : "ALTER USER MAPPING FOR { %s | USER | CURRENT_ROLE | CURRENT_USER | SESSION_USER | PUBLIC }\n"
1690 : " SERVER %s\n"
1691 : " OPTIONS ( [ ADD | SET | DROP ] %s ['%s'] [, ... ] )",
1692 : _("user_name"),
1693 : _("server_name"),
1694 : _("option"),
1695 : _("value"));
1696 0 : }
1697 :
1698 : static void
1699 0 : sql_help_ALTER_VIEW(PQExpBuffer buf)
1700 : {
1701 0 : appendPQExpBuffer(buf,
1702 : "ALTER VIEW [ IF EXISTS ] %s ALTER [ COLUMN ] %s SET DEFAULT %s\n"
1703 : "ALTER VIEW [ IF EXISTS ] %s ALTER [ COLUMN ] %s DROP DEFAULT\n"
1704 : "ALTER VIEW [ IF EXISTS ] %s OWNER TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }\n"
1705 : "ALTER VIEW [ IF EXISTS ] %s RENAME [ COLUMN ] %s TO %s\n"
1706 : "ALTER VIEW [ IF EXISTS ] %s RENAME TO %s\n"
1707 : "ALTER VIEW [ IF EXISTS ] %s SET SCHEMA %s\n"
1708 : "ALTER VIEW [ IF EXISTS ] %s SET ( %s [= %s] [, ... ] )\n"
1709 : "ALTER VIEW [ IF EXISTS ] %s RESET ( %s [, ... ] )",
1710 : _("name"),
1711 : _("column_name"),
1712 : _("expression"),
1713 : _("name"),
1714 : _("column_name"),
1715 : _("name"),
1716 : _("new_owner"),
1717 : _("name"),
1718 : _("column_name"),
1719 : _("new_column_name"),
1720 : _("name"),
1721 : _("new_name"),
1722 : _("name"),
1723 : _("new_schema"),
1724 : _("name"),
1725 : _("view_option_name"),
1726 : _("view_option_value"),
1727 : _("name"),
1728 : _("view_option_name"));
1729 0 : }
1730 :
1731 : static void
1732 0 : sql_help_ANALYZE(PQExpBuffer buf)
1733 : {
1734 0 : appendPQExpBuffer(buf,
1735 : "ANALYZE [ ( %s [, ...] ) ] [ %s [, ...] ]\n"
1736 : "\n"
1737 : "%s\n"
1738 : "\n"
1739 : " VERBOSE [ %s ]\n"
1740 : " SKIP_LOCKED [ %s ]\n"
1741 : " BUFFER_USAGE_LIMIT %s\n"
1742 : "\n"
1743 : "%s\n"
1744 : "\n"
1745 : " [ ONLY ] %s [ * ] [ ( %s [, ...] ) ]",
1746 : _("option"),
1747 : _("table_and_columns"),
1748 : _("where option can be one of:"),
1749 : _("boolean"),
1750 : _("boolean"),
1751 : _("size"),
1752 : _("and table_and_columns is:"),
1753 : _("table_name"),
1754 : _("column_name"));
1755 0 : }
1756 :
1757 : static void
1758 0 : sql_help_BEGIN(PQExpBuffer buf)
1759 : {
1760 0 : appendPQExpBuffer(buf,
1761 : "BEGIN [ WORK | TRANSACTION ] [ %s [, ...] ]\n"
1762 : "\n"
1763 : "%s\n"
1764 : "\n"
1765 : " ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED }\n"
1766 : " READ WRITE | READ ONLY\n"
1767 : " [ NOT ] DEFERRABLE",
1768 : _("transaction_mode"),
1769 : _("where transaction_mode is one of:"));
1770 0 : }
1771 :
1772 : static void
1773 0 : sql_help_CALL(PQExpBuffer buf)
1774 : {
1775 0 : appendPQExpBuffer(buf,
1776 : "CALL %s ( [ %s ] [, ...] )",
1777 : _("name"),
1778 : _("argument"));
1779 0 : }
1780 :
1781 : static void
1782 0 : sql_help_CHECKPOINT(PQExpBuffer buf)
1783 : {
1784 0 : appendPQExpBuffer(buf,
1785 : "CHECKPOINT");
1786 0 : }
1787 :
1788 : static void
1789 0 : sql_help_CLOSE(PQExpBuffer buf)
1790 : {
1791 0 : appendPQExpBuffer(buf,
1792 : "CLOSE { %s | ALL }",
1793 : _("name"));
1794 0 : }
1795 :
1796 : static void
1797 0 : sql_help_CLUSTER(PQExpBuffer buf)
1798 : {
1799 0 : appendPQExpBuffer(buf,
1800 : "CLUSTER [ ( %s [, ...] ) ] [ %s [ USING %s ] ]\n"
1801 : "\n"
1802 : "%s\n"
1803 : "\n"
1804 : " VERBOSE [ %s ]",
1805 : _("option"),
1806 : _("table_name"),
1807 : _("index_name"),
1808 : _("where option can be one of:"),
1809 : _("boolean"));
1810 0 : }
1811 :
1812 : static void
1813 0 : sql_help_COMMENT(PQExpBuffer buf)
1814 : {
1815 0 : appendPQExpBuffer(buf,
1816 : "COMMENT ON\n"
1817 : "{\n"
1818 : " ACCESS METHOD %s |\n"
1819 : " AGGREGATE %s ( %s ) |\n"
1820 : " CAST (%s AS %s) |\n"
1821 : " COLLATION %s |\n"
1822 : " COLUMN %s.%s |\n"
1823 : " CONSTRAINT %s ON %s |\n"
1824 : " CONSTRAINT %s ON DOMAIN %s |\n"
1825 : " CONVERSION %s |\n"
1826 : " DATABASE %s |\n"
1827 : " DOMAIN %s |\n"
1828 : " EXTENSION %s |\n"
1829 : " EVENT TRIGGER %s |\n"
1830 : " FOREIGN DATA WRAPPER %s |\n"
1831 : " FOREIGN TABLE %s |\n"
1832 : " FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
1833 : " INDEX %s |\n"
1834 : " LARGE OBJECT %s |\n"
1835 : " MATERIALIZED VIEW %s |\n"
1836 : " OPERATOR %s (%s, %s) |\n"
1837 : " OPERATOR CLASS %s USING %s |\n"
1838 : " OPERATOR FAMILY %s USING %s |\n"
1839 : " POLICY %s ON %s |\n"
1840 : " [ PROCEDURAL ] LANGUAGE %s |\n"
1841 : " PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
1842 : " PUBLICATION %s |\n"
1843 : " ROLE %s |\n"
1844 : " ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
1845 : " RULE %s ON %s |\n"
1846 : " SCHEMA %s |\n"
1847 : " SEQUENCE %s |\n"
1848 : " SERVER %s |\n"
1849 : " STATISTICS %s |\n"
1850 : " SUBSCRIPTION %s |\n"
1851 : " TABLE %s |\n"
1852 : " TABLESPACE %s |\n"
1853 : " TEXT SEARCH CONFIGURATION %s |\n"
1854 : " TEXT SEARCH DICTIONARY %s |\n"
1855 : " TEXT SEARCH PARSER %s |\n"
1856 : " TEXT SEARCH TEMPLATE %s |\n"
1857 : " TRANSFORM FOR %s LANGUAGE %s |\n"
1858 : " TRIGGER %s ON %s |\n"
1859 : " TYPE %s |\n"
1860 : " VIEW %s\n"
1861 : "} IS { %s | NULL }\n"
1862 : "\n"
1863 : "%s\n"
1864 : "\n"
1865 : "* |\n"
1866 : "[ %s ] [ %s ] %s [ , ... ] |\n"
1867 : "[ [ %s ] [ %s ] %s [ , ... ] ] ORDER BY [ %s ] [ %s ] %s [ , ... ]",
1868 : _("object_name"),
1869 : _("aggregate_name"),
1870 : _("aggregate_signature"),
1871 : _("source_type"),
1872 : _("target_type"),
1873 : _("object_name"),
1874 : _("relation_name"),
1875 : _("column_name"),
1876 : _("constraint_name"),
1877 : _("table_name"),
1878 : _("constraint_name"),
1879 : _("domain_name"),
1880 : _("object_name"),
1881 : _("object_name"),
1882 : _("object_name"),
1883 : _("object_name"),
1884 : _("object_name"),
1885 : _("object_name"),
1886 : _("object_name"),
1887 : _("function_name"),
1888 : _("argmode"),
1889 : _("argname"),
1890 : _("argtype"),
1891 : _("object_name"),
1892 : _("large_object_oid"),
1893 : _("object_name"),
1894 : _("operator_name"),
1895 : _("left_type"),
1896 : _("right_type"),
1897 : _("object_name"),
1898 : _("index_method"),
1899 : _("object_name"),
1900 : _("index_method"),
1901 : _("policy_name"),
1902 : _("table_name"),
1903 : _("object_name"),
1904 : _("procedure_name"),
1905 : _("argmode"),
1906 : _("argname"),
1907 : _("argtype"),
1908 : _("object_name"),
1909 : _("object_name"),
1910 : _("routine_name"),
1911 : _("argmode"),
1912 : _("argname"),
1913 : _("argtype"),
1914 : _("rule_name"),
1915 : _("table_name"),
1916 : _("object_name"),
1917 : _("object_name"),
1918 : _("object_name"),
1919 : _("object_name"),
1920 : _("object_name"),
1921 : _("object_name"),
1922 : _("object_name"),
1923 : _("object_name"),
1924 : _("object_name"),
1925 : _("object_name"),
1926 : _("object_name"),
1927 : _("type_name"),
1928 : _("lang_name"),
1929 : _("trigger_name"),
1930 : _("table_name"),
1931 : _("object_name"),
1932 : _("object_name"),
1933 : _("string_literal"),
1934 : _("where aggregate_signature is:"),
1935 : _("argmode"),
1936 : _("argname"),
1937 : _("argtype"),
1938 : _("argmode"),
1939 : _("argname"),
1940 : _("argtype"),
1941 : _("argmode"),
1942 : _("argname"),
1943 : _("argtype"));
1944 0 : }
1945 :
1946 : static void
1947 0 : sql_help_COMMIT(PQExpBuffer buf)
1948 : {
1949 0 : appendPQExpBuffer(buf,
1950 : "COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]");
1951 0 : }
1952 :
1953 : static void
1954 0 : sql_help_COMMIT_PREPARED(PQExpBuffer buf)
1955 : {
1956 0 : appendPQExpBuffer(buf,
1957 : "COMMIT PREPARED %s",
1958 : _("transaction_id"));
1959 0 : }
1960 :
1961 : static void
1962 0 : sql_help_COPY(PQExpBuffer buf)
1963 : {
1964 0 : appendPQExpBuffer(buf,
1965 : "COPY %s [ ( %s [, ...] ) ]\n"
1966 : " FROM { '%s' | PROGRAM '%s' | STDIN }\n"
1967 : " [ [ WITH ] ( %s [, ...] ) ]\n"
1968 : " [ WHERE %s ]\n"
1969 : "\n"
1970 : "COPY { %s [ ( %s [, ...] ) ] | ( %s ) }\n"
1971 : " TO { '%s' | PROGRAM '%s' | STDOUT }\n"
1972 : " [ [ WITH ] ( %s [, ...] ) ]\n"
1973 : "\n"
1974 : "%s\n"
1975 : "\n"
1976 : " FORMAT %s\n"
1977 : " FREEZE [ %s ]\n"
1978 : " DELIMITER '%s'\n"
1979 : " NULL '%s'\n"
1980 : " DEFAULT '%s'\n"
1981 : " HEADER [ %s | MATCH ]\n"
1982 : " QUOTE '%s'\n"
1983 : " ESCAPE '%s'\n"
1984 : " FORCE_QUOTE { ( %s [, ...] ) | * }\n"
1985 : " FORCE_NOT_NULL { ( %s [, ...] ) | * }\n"
1986 : " FORCE_NULL { ( %s [, ...] ) | * }\n"
1987 : " ON_ERROR %s\n"
1988 : " REJECT_LIMIT %s\n"
1989 : " ENCODING '%s'\n"
1990 : " LOG_VERBOSITY %s",
1991 : _("table_name"),
1992 : _("column_name"),
1993 : _("filename"),
1994 : _("command"),
1995 : _("option"),
1996 : _("condition"),
1997 : _("table_name"),
1998 : _("column_name"),
1999 : _("query"),
2000 : _("filename"),
2001 : _("command"),
2002 : _("option"),
2003 : _("where option can be one of:"),
2004 : _("format_name"),
2005 : _("boolean"),
2006 : _("delimiter_character"),
2007 : _("null_string"),
2008 : _("default_string"),
2009 : _("boolean"),
2010 : _("quote_character"),
2011 : _("escape_character"),
2012 : _("column_name"),
2013 : _("column_name"),
2014 : _("column_name"),
2015 : _("error_action"),
2016 : _("maxerror"),
2017 : _("encoding_name"),
2018 : _("verbosity"));
2019 0 : }
2020 :
2021 : static void
2022 0 : sql_help_CREATE_ACCESS_METHOD(PQExpBuffer buf)
2023 : {
2024 0 : appendPQExpBuffer(buf,
2025 : "CREATE ACCESS METHOD %s\n"
2026 : " TYPE %s\n"
2027 : " HANDLER %s",
2028 : _("name"),
2029 : _("access_method_type"),
2030 : _("handler_function"));
2031 0 : }
2032 :
2033 : static void
2034 0 : sql_help_CREATE_AGGREGATE(PQExpBuffer buf)
2035 : {
2036 0 : appendPQExpBuffer(buf,
2037 : "CREATE [ OR REPLACE ] AGGREGATE %s ( [ %s ] [ %s ] %s [ , ... ] ) (\n"
2038 : " SFUNC = %s,\n"
2039 : " STYPE = %s\n"
2040 : " [ , SSPACE = %s ]\n"
2041 : " [ , FINALFUNC = %s ]\n"
2042 : " [ , FINALFUNC_EXTRA ]\n"
2043 : " [ , FINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE } ]\n"
2044 : " [ , COMBINEFUNC = %s ]\n"
2045 : " [ , SERIALFUNC = %s ]\n"
2046 : " [ , DESERIALFUNC = %s ]\n"
2047 : " [ , INITCOND = %s ]\n"
2048 : " [ , MSFUNC = %s ]\n"
2049 : " [ , MINVFUNC = %s ]\n"
2050 : " [ , MSTYPE = %s ]\n"
2051 : " [ , MSSPACE = %s ]\n"
2052 : " [ , MFINALFUNC = %s ]\n"
2053 : " [ , MFINALFUNC_EXTRA ]\n"
2054 : " [ , MFINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE } ]\n"
2055 : " [ , MINITCOND = %s ]\n"
2056 : " [ , SORTOP = %s ]\n"
2057 : " [ , PARALLEL = { SAFE | RESTRICTED | UNSAFE } ]\n"
2058 : ")\n"
2059 : "\n"
2060 : "CREATE [ OR REPLACE ] AGGREGATE %s ( [ [ %s ] [ %s ] %s [ , ... ] ]\n"
2061 : " ORDER BY [ %s ] [ %s ] %s [ , ... ] ) (\n"
2062 : " SFUNC = %s,\n"
2063 : " STYPE = %s\n"
2064 : " [ , SSPACE = %s ]\n"
2065 : " [ , FINALFUNC = %s ]\n"
2066 : " [ , FINALFUNC_EXTRA ]\n"
2067 : " [ , FINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE } ]\n"
2068 : " [ , INITCOND = %s ]\n"
2069 : " [ , PARALLEL = { SAFE | RESTRICTED | UNSAFE } ]\n"
2070 : " [ , HYPOTHETICAL ]\n"
2071 : ")\n"
2072 : "\n"
2073 : "%s\n"
2074 : "\n"
2075 : "CREATE [ OR REPLACE ] AGGREGATE %s (\n"
2076 : " BASETYPE = %s,\n"
2077 : " SFUNC = %s,\n"
2078 : " STYPE = %s\n"
2079 : " [ , SSPACE = %s ]\n"
2080 : " [ , FINALFUNC = %s ]\n"
2081 : " [ , FINALFUNC_EXTRA ]\n"
2082 : " [ , FINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE } ]\n"
2083 : " [ , COMBINEFUNC = %s ]\n"
2084 : " [ , SERIALFUNC = %s ]\n"
2085 : " [ , DESERIALFUNC = %s ]\n"
2086 : " [ , INITCOND = %s ]\n"
2087 : " [ , MSFUNC = %s ]\n"
2088 : " [ , MINVFUNC = %s ]\n"
2089 : " [ , MSTYPE = %s ]\n"
2090 : " [ , MSSPACE = %s ]\n"
2091 : " [ , MFINALFUNC = %s ]\n"
2092 : " [ , MFINALFUNC_EXTRA ]\n"
2093 : " [ , MFINALFUNC_MODIFY = { READ_ONLY | SHAREABLE | READ_WRITE } ]\n"
2094 : " [ , MINITCOND = %s ]\n"
2095 : " [ , SORTOP = %s ]\n"
2096 : ")",
2097 : _("name"),
2098 : _("argmode"),
2099 : _("argname"),
2100 : _("arg_data_type"),
2101 : _("sfunc"),
2102 : _("state_data_type"),
2103 : _("state_data_size"),
2104 : _("ffunc"),
2105 : _("combinefunc"),
2106 : _("serialfunc"),
2107 : _("deserialfunc"),
2108 : _("initial_condition"),
2109 : _("msfunc"),
2110 : _("minvfunc"),
2111 : _("mstate_data_type"),
2112 : _("mstate_data_size"),
2113 : _("mffunc"),
2114 : _("minitial_condition"),
2115 : _("sort_operator"),
2116 : _("name"),
2117 : _("argmode"),
2118 : _("argname"),
2119 : _("arg_data_type"),
2120 : _("argmode"),
2121 : _("argname"),
2122 : _("arg_data_type"),
2123 : _("sfunc"),
2124 : _("state_data_type"),
2125 : _("state_data_size"),
2126 : _("ffunc"),
2127 : _("initial_condition"),
2128 : _("or the old syntax"),
2129 : _("name"),
2130 : _("base_type"),
2131 : _("sfunc"),
2132 : _("state_data_type"),
2133 : _("state_data_size"),
2134 : _("ffunc"),
2135 : _("combinefunc"),
2136 : _("serialfunc"),
2137 : _("deserialfunc"),
2138 : _("initial_condition"),
2139 : _("msfunc"),
2140 : _("minvfunc"),
2141 : _("mstate_data_type"),
2142 : _("mstate_data_size"),
2143 : _("mffunc"),
2144 : _("minitial_condition"),
2145 : _("sort_operator"));
2146 0 : }
2147 :
2148 : static void
2149 0 : sql_help_CREATE_CAST(PQExpBuffer buf)
2150 : {
2151 0 : appendPQExpBuffer(buf,
2152 : "CREATE CAST (%s AS %s)\n"
2153 : " WITH FUNCTION %s [ (%s [, ...]) ]\n"
2154 : " [ AS ASSIGNMENT | AS IMPLICIT ]\n"
2155 : "\n"
2156 : "CREATE CAST (%s AS %s)\n"
2157 : " WITHOUT FUNCTION\n"
2158 : " [ AS ASSIGNMENT | AS IMPLICIT ]\n"
2159 : "\n"
2160 : "CREATE CAST (%s AS %s)\n"
2161 : " WITH INOUT\n"
2162 : " [ AS ASSIGNMENT | AS IMPLICIT ]",
2163 : _("source_type"),
2164 : _("target_type"),
2165 : _("function_name"),
2166 : _("argument_type"),
2167 : _("source_type"),
2168 : _("target_type"),
2169 : _("source_type"),
2170 : _("target_type"));
2171 0 : }
2172 :
2173 : static void
2174 0 : sql_help_CREATE_COLLATION(PQExpBuffer buf)
2175 : {
2176 0 : appendPQExpBuffer(buf,
2177 : "CREATE COLLATION [ IF NOT EXISTS ] %s (\n"
2178 : " [ LOCALE = %s, ]\n"
2179 : " [ LC_COLLATE = %s, ]\n"
2180 : " [ LC_CTYPE = %s, ]\n"
2181 : " [ PROVIDER = %s, ]\n"
2182 : " [ DETERMINISTIC = %s, ]\n"
2183 : " [ RULES = %s, ]\n"
2184 : " [ VERSION = %s ]\n"
2185 : ")\n"
2186 : "CREATE COLLATION [ IF NOT EXISTS ] %s FROM %s",
2187 : _("name"),
2188 : _("locale"),
2189 : _("lc_collate"),
2190 : _("lc_ctype"),
2191 : _("provider"),
2192 : _("boolean"),
2193 : _("rules"),
2194 : _("version"),
2195 : _("name"),
2196 : _("existing_collation"));
2197 0 : }
2198 :
2199 : static void
2200 0 : sql_help_CREATE_CONVERSION(PQExpBuffer buf)
2201 : {
2202 0 : appendPQExpBuffer(buf,
2203 : "CREATE [ DEFAULT ] CONVERSION %s\n"
2204 : " FOR %s TO %s FROM %s",
2205 : _("name"),
2206 : _("source_encoding"),
2207 : _("dest_encoding"),
2208 : _("function_name"));
2209 0 : }
2210 :
2211 : static void
2212 0 : sql_help_CREATE_DATABASE(PQExpBuffer buf)
2213 : {
2214 0 : appendPQExpBuffer(buf,
2215 : "CREATE DATABASE %s\n"
2216 : " [ WITH ] [ OWNER [=] %s ]\n"
2217 : " [ TEMPLATE [=] %s ]\n"
2218 : " [ ENCODING [=] %s ]\n"
2219 : " [ STRATEGY [=] %s ]\n"
2220 : " [ LOCALE [=] %s ]\n"
2221 : " [ LC_COLLATE [=] %s ]\n"
2222 : " [ LC_CTYPE [=] %s ]\n"
2223 : " [ BUILTIN_LOCALE [=] %s ]\n"
2224 : " [ ICU_LOCALE [=] %s ]\n"
2225 : " [ ICU_RULES [=] %s ]\n"
2226 : " [ LOCALE_PROVIDER [=] %s ]\n"
2227 : " [ COLLATION_VERSION = %s ]\n"
2228 : " [ TABLESPACE [=] %s ]\n"
2229 : " [ ALLOW_CONNECTIONS [=] %s ]\n"
2230 : " [ CONNECTION LIMIT [=] %s ]\n"
2231 : " [ IS_TEMPLATE [=] %s ]\n"
2232 : " [ OID [=] %s ]",
2233 : _("name"),
2234 : _("user_name"),
2235 : _("template"),
2236 : _("encoding"),
2237 : _("strategy"),
2238 : _("locale"),
2239 : _("lc_collate"),
2240 : _("lc_ctype"),
2241 : _("builtin_locale"),
2242 : _("icu_locale"),
2243 : _("icu_rules"),
2244 : _("locale_provider"),
2245 : _("collation_version"),
2246 : _("tablespace_name"),
2247 : _("allowconn"),
2248 : _("connlimit"),
2249 : _("istemplate"),
2250 : _("oid"));
2251 0 : }
2252 :
2253 : static void
2254 0 : sql_help_CREATE_DOMAIN(PQExpBuffer buf)
2255 : {
2256 0 : appendPQExpBuffer(buf,
2257 : "CREATE DOMAIN %s [ AS ] %s\n"
2258 : " [ COLLATE %s ]\n"
2259 : " [ DEFAULT %s ]\n"
2260 : " [ %s [ ... ] ]\n"
2261 : "\n"
2262 : "%s\n"
2263 : "\n"
2264 : "[ CONSTRAINT %s ]\n"
2265 : "{ NOT NULL | NULL | CHECK (%s) }",
2266 : _("name"),
2267 : _("data_type"),
2268 : _("collation"),
2269 : _("expression"),
2270 : _("domain_constraint"),
2271 : _("where domain_constraint is:"),
2272 : _("constraint_name"),
2273 : _("expression"));
2274 0 : }
2275 :
2276 : static void
2277 0 : sql_help_CREATE_EVENT_TRIGGER(PQExpBuffer buf)
2278 : {
2279 0 : appendPQExpBuffer(buf,
2280 : "CREATE EVENT TRIGGER %s\n"
2281 : " ON %s\n"
2282 : " [ WHEN %s IN (%s [, ... ]) [ AND ... ] ]\n"
2283 : " EXECUTE { FUNCTION | PROCEDURE } %s()",
2284 : _("name"),
2285 : _("event"),
2286 : _("filter_variable"),
2287 : _("filter_value"),
2288 : _("function_name"));
2289 0 : }
2290 :
2291 : static void
2292 0 : sql_help_CREATE_EXTENSION(PQExpBuffer buf)
2293 : {
2294 0 : appendPQExpBuffer(buf,
2295 : "CREATE EXTENSION [ IF NOT EXISTS ] %s\n"
2296 : " [ WITH ] [ SCHEMA %s ]\n"
2297 : " [ VERSION %s ]\n"
2298 : " [ CASCADE ]",
2299 : _("extension_name"),
2300 : _("schema_name"),
2301 : _("version"));
2302 0 : }
2303 :
2304 : static void
2305 0 : sql_help_CREATE_FOREIGN_DATA_WRAPPER(PQExpBuffer buf)
2306 : {
2307 0 : appendPQExpBuffer(buf,
2308 : "CREATE FOREIGN DATA WRAPPER %s\n"
2309 : " [ HANDLER %s | NO HANDLER ]\n"
2310 : " [ VALIDATOR %s | NO VALIDATOR ]\n"
2311 : " [ OPTIONS ( %s '%s' [, ... ] ) ]",
2312 : _("name"),
2313 : _("handler_function"),
2314 : _("validator_function"),
2315 : _("option"),
2316 : _("value"));
2317 0 : }
2318 :
2319 : static void
2320 0 : sql_help_CREATE_FOREIGN_TABLE(PQExpBuffer buf)
2321 : {
2322 0 : appendPQExpBuffer(buf,
2323 : "CREATE FOREIGN TABLE [ IF NOT EXISTS ] %s ( [\n"
2324 : " { %s %s [ OPTIONS ( %s '%s' [, ... ] ) ] [ COLLATE %s ] [ %s [ ... ] ]\n"
2325 : " | %s }\n"
2326 : " [, ... ]\n"
2327 : "] )\n"
2328 : "[ INHERITS ( %s [, ... ] ) ]\n"
2329 : " SERVER %s\n"
2330 : "[ OPTIONS ( %s '%s' [, ... ] ) ]\n"
2331 : "\n"
2332 : "CREATE FOREIGN TABLE [ IF NOT EXISTS ] %s\n"
2333 : " PARTITION OF %s [ (\n"
2334 : " { %s [ WITH OPTIONS ] [ %s [ ... ] ]\n"
2335 : " | %s }\n"
2336 : " [, ... ]\n"
2337 : ") ]\n"
2338 : "{ FOR VALUES %s | DEFAULT }\n"
2339 : " SERVER %s\n"
2340 : "[ OPTIONS ( %s '%s' [, ... ] ) ]\n"
2341 : "\n"
2342 : "%s\n"
2343 : "\n"
2344 : "[ CONSTRAINT %s ]\n"
2345 : "{ NOT NULL [ NO INHERIT ] |\n"
2346 : " NULL |\n"
2347 : " CHECK ( %s ) [ NO INHERIT ] |\n"
2348 : " DEFAULT %s |\n"
2349 : " GENERATED ALWAYS AS ( %s ) STORED }\n"
2350 : "[ ENFORCED | NOT ENFORCED ]\n"
2351 : "\n"
2352 : "%s\n"
2353 : "\n"
2354 : "[ CONSTRAINT %s ]\n"
2355 : "{ NOT NULL %s [ NO INHERIT ] |\n"
2356 : " CHECK ( %s ) [ NO INHERIT ] }\n"
2357 : "[ ENFORCED | NOT ENFORCED ]\n"
2358 : "\n"
2359 : "%s\n"
2360 : "\n"
2361 : "IN ( %s [, ...] ) |\n"
2362 : "FROM ( { %s | MINVALUE | MAXVALUE } [, ...] )\n"
2363 : " TO ( { %s | MINVALUE | MAXVALUE } [, ...] ) |\n"
2364 : "WITH ( MODULUS %s, REMAINDER %s )",
2365 : _("table_name"),
2366 : _("column_name"),
2367 : _("data_type"),
2368 : _("option"),
2369 : _("value"),
2370 : _("collation"),
2371 : _("column_constraint"),
2372 : _("table_constraint"),
2373 : _("parent_table"),
2374 : _("server_name"),
2375 : _("option"),
2376 : _("value"),
2377 : _("table_name"),
2378 : _("parent_table"),
2379 : _("column_name"),
2380 : _("column_constraint"),
2381 : _("table_constraint"),
2382 : _("partition_bound_spec"),
2383 : _("server_name"),
2384 : _("option"),
2385 : _("value"),
2386 : _("where column_constraint is:"),
2387 : _("constraint_name"),
2388 : _("expression"),
2389 : _("default_expr"),
2390 : _("generation_expr"),
2391 : _("and table_constraint is:"),
2392 : _("constraint_name"),
2393 : _("column_name"),
2394 : _("expression"),
2395 : _("and partition_bound_spec is:"),
2396 : _("partition_bound_expr"),
2397 : _("partition_bound_expr"),
2398 : _("partition_bound_expr"),
2399 : _("numeric_literal"),
2400 : _("numeric_literal"));
2401 0 : }
2402 :
2403 : static void
2404 0 : sql_help_CREATE_FUNCTION(PQExpBuffer buf)
2405 : {
2406 0 : appendPQExpBuffer(buf,
2407 : "CREATE [ OR REPLACE ] FUNCTION\n"
2408 : " %s ( [ [ %s ] [ %s ] %s [ { DEFAULT | = } %s ] [, ...] ] )\n"
2409 : " [ RETURNS %s\n"
2410 : " | RETURNS TABLE ( %s %s [, ...] ) ]\n"
2411 : " { LANGUAGE %s\n"
2412 : " | TRANSFORM { FOR TYPE %s } [, ... ]\n"
2413 : " | WINDOW\n"
2414 : " | { IMMUTABLE | STABLE | VOLATILE }\n"
2415 : " | [ NOT ] LEAKPROOF\n"
2416 : " | { CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT }\n"
2417 : " | { [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER }\n"
2418 : " | PARALLEL { UNSAFE | RESTRICTED | SAFE }\n"
2419 : " | COST %s\n"
2420 : " | ROWS %s\n"
2421 : " | SUPPORT %s\n"
2422 : " | SET %s { TO %s | = %s | FROM CURRENT }\n"
2423 : " | AS '%s'\n"
2424 : " | AS '%s', '%s'\n"
2425 : " | %s\n"
2426 : " } ...",
2427 : _("name"),
2428 : _("argmode"),
2429 : _("argname"),
2430 : _("argtype"),
2431 : _("default_expr"),
2432 : _("rettype"),
2433 : _("column_name"),
2434 : _("column_type"),
2435 : _("lang_name"),
2436 : _("type_name"),
2437 : _("execution_cost"),
2438 : _("result_rows"),
2439 : _("support_function"),
2440 : _("configuration_parameter"),
2441 : _("value"),
2442 : _("value"),
2443 : _("definition"),
2444 : _("obj_file"),
2445 : _("link_symbol"),
2446 : _("sql_body"));
2447 0 : }
2448 :
2449 : static void
2450 0 : sql_help_CREATE_GROUP(PQExpBuffer buf)
2451 : {
2452 0 : appendPQExpBuffer(buf,
2453 : "CREATE GROUP %s [ [ WITH ] %s [ ... ] ]\n"
2454 : "\n"
2455 : "%s\n"
2456 : "\n"
2457 : " SUPERUSER | NOSUPERUSER\n"
2458 : " | CREATEDB | NOCREATEDB\n"
2459 : " | CREATEROLE | NOCREATEROLE\n"
2460 : " | INHERIT | NOINHERIT\n"
2461 : " | LOGIN | NOLOGIN\n"
2462 : " | REPLICATION | NOREPLICATION\n"
2463 : " | BYPASSRLS | NOBYPASSRLS\n"
2464 : " | CONNECTION LIMIT %s\n"
2465 : " | [ ENCRYPTED ] PASSWORD '%s' | PASSWORD NULL\n"
2466 : " | VALID UNTIL '%s'\n"
2467 : " | IN ROLE %s [, ...]\n"
2468 : " | IN GROUP %s [, ...]\n"
2469 : " | ROLE %s [, ...]\n"
2470 : " | ADMIN %s [, ...]\n"
2471 : " | USER %s [, ...]\n"
2472 : " | SYSID %s",
2473 : _("name"),
2474 : _("option"),
2475 : _("where option can be:"),
2476 : _("connlimit"),
2477 : _("password"),
2478 : _("timestamp"),
2479 : _("role_name"),
2480 : _("role_name"),
2481 : _("role_name"),
2482 : _("role_name"),
2483 : _("role_name"),
2484 : _("uid"));
2485 0 : }
2486 :
2487 : static void
2488 0 : sql_help_CREATE_INDEX(PQExpBuffer buf)
2489 : {
2490 0 : appendPQExpBuffer(buf,
2491 : "CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] %s ] ON [ ONLY ] %s [ USING %s ]\n"
2492 : " ( { %s | ( %s ) } [ COLLATE %s ] [ %s [ ( %s = %s [, ... ] ) ] ] [ ASC | DESC ] [ NULLS { FIRST | LAST } ] [, ...] )\n"
2493 : " [ INCLUDE ( %s [, ...] ) ]\n"
2494 : " [ NULLS [ NOT ] DISTINCT ]\n"
2495 : " [ WITH ( %s [= %s] [, ... ] ) ]\n"
2496 : " [ TABLESPACE %s ]\n"
2497 : " [ WHERE %s ]",
2498 : _("name"),
2499 : _("table_name"),
2500 : _("method"),
2501 : _("column_name"),
2502 : _("expression"),
2503 : _("collation"),
2504 : _("opclass"),
2505 : _("opclass_parameter"),
2506 : _("value"),
2507 : _("column_name"),
2508 : _("storage_parameter"),
2509 : _("value"),
2510 : _("tablespace_name"),
2511 : _("predicate"));
2512 0 : }
2513 :
2514 : static void
2515 0 : sql_help_CREATE_LANGUAGE(PQExpBuffer buf)
2516 : {
2517 0 : appendPQExpBuffer(buf,
2518 : "CREATE [ OR REPLACE ] [ TRUSTED ] [ PROCEDURAL ] LANGUAGE %s\n"
2519 : " HANDLER %s [ INLINE %s ] [ VALIDATOR %s ]\n"
2520 : "CREATE [ OR REPLACE ] [ TRUSTED ] [ PROCEDURAL ] LANGUAGE %s",
2521 : _("name"),
2522 : _("call_handler"),
2523 : _("inline_handler"),
2524 : _("valfunction"),
2525 : _("name"));
2526 0 : }
2527 :
2528 : static void
2529 0 : sql_help_CREATE_MATERIALIZED_VIEW(PQExpBuffer buf)
2530 : {
2531 0 : appendPQExpBuffer(buf,
2532 : "CREATE MATERIALIZED VIEW [ IF NOT EXISTS ] %s\n"
2533 : " [ (%s [, ...] ) ]\n"
2534 : " [ USING %s ]\n"
2535 : " [ WITH ( %s [= %s] [, ... ] ) ]\n"
2536 : " [ TABLESPACE %s ]\n"
2537 : " AS %s\n"
2538 : " [ WITH [ NO ] DATA ]",
2539 : _("table_name"),
2540 : _("column_name"),
2541 : _("method"),
2542 : _("storage_parameter"),
2543 : _("value"),
2544 : _("tablespace_name"),
2545 : _("query"));
2546 0 : }
2547 :
2548 : static void
2549 0 : sql_help_CREATE_OPERATOR(PQExpBuffer buf)
2550 : {
2551 0 : appendPQExpBuffer(buf,
2552 : "CREATE OPERATOR %s (\n"
2553 : " {FUNCTION|PROCEDURE} = %s\n"
2554 : " [, LEFTARG = %s ] [, RIGHTARG = %s ]\n"
2555 : " [, COMMUTATOR = %s ] [, NEGATOR = %s ]\n"
2556 : " [, RESTRICT = %s ] [, JOIN = %s ]\n"
2557 : " [, HASHES ] [, MERGES ]\n"
2558 : ")",
2559 : _("name"),
2560 : _("function_name"),
2561 : _("left_type"),
2562 : _("right_type"),
2563 : _("com_op"),
2564 : _("neg_op"),
2565 : _("res_proc"),
2566 : _("join_proc"));
2567 0 : }
2568 :
2569 : static void
2570 0 : sql_help_CREATE_OPERATOR_CLASS(PQExpBuffer buf)
2571 : {
2572 0 : appendPQExpBuffer(buf,
2573 : "CREATE OPERATOR CLASS %s [ DEFAULT ] FOR TYPE %s\n"
2574 : " USING %s [ FAMILY %s ] AS\n"
2575 : " { OPERATOR %s %s [ ( %s, %s ) ] [ FOR SEARCH | FOR ORDER BY %s ]\n"
2576 : " | FUNCTION %s [ ( %s [ , %s ] ) ] %s ( %s [, ...] )\n"
2577 : " | STORAGE %s\n"
2578 : " } [, ... ]",
2579 : _("name"),
2580 : _("data_type"),
2581 : _("index_method"),
2582 : _("family_name"),
2583 : _("strategy_number"),
2584 : _("operator_name"),
2585 : _("op_type"),
2586 : _("op_type"),
2587 : _("sort_family_name"),
2588 : _("support_number"),
2589 : _("op_type"),
2590 : _("op_type"),
2591 : _("function_name"),
2592 : _("argument_type"),
2593 : _("storage_type"));
2594 0 : }
2595 :
2596 : static void
2597 0 : sql_help_CREATE_OPERATOR_FAMILY(PQExpBuffer buf)
2598 : {
2599 0 : appendPQExpBuffer(buf,
2600 : "CREATE OPERATOR FAMILY %s USING %s",
2601 : _("name"),
2602 : _("index_method"));
2603 0 : }
2604 :
2605 : static void
2606 0 : sql_help_CREATE_POLICY(PQExpBuffer buf)
2607 : {
2608 0 : appendPQExpBuffer(buf,
2609 : "CREATE POLICY %s ON %s\n"
2610 : " [ AS { PERMISSIVE | RESTRICTIVE } ]\n"
2611 : " [ FOR { ALL | SELECT | INSERT | UPDATE | DELETE } ]\n"
2612 : " [ TO { %s | PUBLIC | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...] ]\n"
2613 : " [ USING ( %s ) ]\n"
2614 : " [ WITH CHECK ( %s ) ]",
2615 : _("name"),
2616 : _("table_name"),
2617 : _("role_name"),
2618 : _("using_expression"),
2619 : _("check_expression"));
2620 0 : }
2621 :
2622 : static void
2623 0 : sql_help_CREATE_PROCEDURE(PQExpBuffer buf)
2624 : {
2625 0 : appendPQExpBuffer(buf,
2626 : "CREATE [ OR REPLACE ] PROCEDURE\n"
2627 : " %s ( [ [ %s ] [ %s ] %s [ { DEFAULT | = } %s ] [, ...] ] )\n"
2628 : " { LANGUAGE %s\n"
2629 : " | TRANSFORM { FOR TYPE %s } [, ... ]\n"
2630 : " | [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER\n"
2631 : " | SET %s { TO %s | = %s | FROM CURRENT }\n"
2632 : " | AS '%s'\n"
2633 : " | AS '%s', '%s'\n"
2634 : " | %s\n"
2635 : " } ...",
2636 : _("name"),
2637 : _("argmode"),
2638 : _("argname"),
2639 : _("argtype"),
2640 : _("default_expr"),
2641 : _("lang_name"),
2642 : _("type_name"),
2643 : _("configuration_parameter"),
2644 : _("value"),
2645 : _("value"),
2646 : _("definition"),
2647 : _("obj_file"),
2648 : _("link_symbol"),
2649 : _("sql_body"));
2650 0 : }
2651 :
2652 : static void
2653 0 : sql_help_CREATE_PUBLICATION(PQExpBuffer buf)
2654 : {
2655 0 : appendPQExpBuffer(buf,
2656 : "CREATE PUBLICATION %s\n"
2657 : " [ FOR ALL TABLES\n"
2658 : " | FOR %s [, ... ] ]\n"
2659 : " [ WITH ( %s [= %s] [, ... ] ) ]\n"
2660 : "\n"
2661 : "%s\n"
2662 : "\n"
2663 : " TABLE [ ONLY ] %s [ * ] [ ( %s [, ... ] ) ] [ WHERE ( %s ) ] [, ... ]\n"
2664 : " TABLES IN SCHEMA { %s | CURRENT_SCHEMA } [, ... ]",
2665 : _("name"),
2666 : _("publication_object"),
2667 : _("publication_parameter"),
2668 : _("value"),
2669 : _("where publication_object is one of:"),
2670 : _("table_name"),
2671 : _("column_name"),
2672 : _("expression"),
2673 : _("schema_name"));
2674 0 : }
2675 :
2676 : static void
2677 0 : sql_help_CREATE_ROLE(PQExpBuffer buf)
2678 : {
2679 0 : appendPQExpBuffer(buf,
2680 : "CREATE ROLE %s [ [ WITH ] %s [ ... ] ]\n"
2681 : "\n"
2682 : "%s\n"
2683 : "\n"
2684 : " SUPERUSER | NOSUPERUSER\n"
2685 : " | CREATEDB | NOCREATEDB\n"
2686 : " | CREATEROLE | NOCREATEROLE\n"
2687 : " | INHERIT | NOINHERIT\n"
2688 : " | LOGIN | NOLOGIN\n"
2689 : " | REPLICATION | NOREPLICATION\n"
2690 : " | BYPASSRLS | NOBYPASSRLS\n"
2691 : " | CONNECTION LIMIT %s\n"
2692 : " | [ ENCRYPTED ] PASSWORD '%s' | PASSWORD NULL\n"
2693 : " | VALID UNTIL '%s'\n"
2694 : " | IN ROLE %s [, ...]\n"
2695 : " | ROLE %s [, ...]\n"
2696 : " | ADMIN %s [, ...]\n"
2697 : " | SYSID %s",
2698 : _("name"),
2699 : _("option"),
2700 : _("where option can be:"),
2701 : _("connlimit"),
2702 : _("password"),
2703 : _("timestamp"),
2704 : _("role_name"),
2705 : _("role_name"),
2706 : _("role_name"),
2707 : _("uid"));
2708 0 : }
2709 :
2710 : static void
2711 0 : sql_help_CREATE_RULE(PQExpBuffer buf)
2712 : {
2713 0 : appendPQExpBuffer(buf,
2714 : "CREATE [ OR REPLACE ] RULE %s AS ON %s\n"
2715 : " TO %s [ WHERE %s ]\n"
2716 : " DO [ ALSO | INSTEAD ] { NOTHING | %s | ( %s ; %s ... ) }\n"
2717 : "\n"
2718 : "%s\n"
2719 : "\n"
2720 : " SELECT | INSERT | UPDATE | DELETE",
2721 : _("name"),
2722 : _("event"),
2723 : _("table_name"),
2724 : _("condition"),
2725 : _("command"),
2726 : _("command"),
2727 : _("command"),
2728 : _("where event can be one of:"));
2729 0 : }
2730 :
2731 : static void
2732 0 : sql_help_CREATE_SCHEMA(PQExpBuffer buf)
2733 : {
2734 0 : appendPQExpBuffer(buf,
2735 : "CREATE SCHEMA %s [ AUTHORIZATION %s ] [ %s [ ... ] ]\n"
2736 : "CREATE SCHEMA AUTHORIZATION %s [ %s [ ... ] ]\n"
2737 : "CREATE SCHEMA IF NOT EXISTS %s [ AUTHORIZATION %s ]\n"
2738 : "CREATE SCHEMA IF NOT EXISTS AUTHORIZATION %s\n"
2739 : "\n"
2740 : "%s\n"
2741 : "\n"
2742 : " %s\n"
2743 : " | CURRENT_ROLE\n"
2744 : " | CURRENT_USER\n"
2745 : " | SESSION_USER",
2746 : _("schema_name"),
2747 : _("role_specification"),
2748 : _("schema_element"),
2749 : _("role_specification"),
2750 : _("schema_element"),
2751 : _("schema_name"),
2752 : _("role_specification"),
2753 : _("role_specification"),
2754 : _("where role_specification can be:"),
2755 : _("user_name"));
2756 0 : }
2757 :
2758 : static void
2759 0 : sql_help_CREATE_SEQUENCE(PQExpBuffer buf)
2760 : {
2761 0 : appendPQExpBuffer(buf,
2762 : "CREATE [ { TEMPORARY | TEMP } | UNLOGGED ] SEQUENCE [ IF NOT EXISTS ] %s\n"
2763 : " [ AS %s ]\n"
2764 : " [ INCREMENT [ BY ] %s ]\n"
2765 : " [ MINVALUE %s | NO MINVALUE ] [ MAXVALUE %s | NO MAXVALUE ]\n"
2766 : " [ [ NO ] CYCLE ]\n"
2767 : " [ START [ WITH ] %s ]\n"
2768 : " [ CACHE %s ]\n"
2769 : " [ OWNED BY { %s.%s | NONE } ]",
2770 : _("name"),
2771 : _("data_type"),
2772 : _("increment"),
2773 : _("minvalue"),
2774 : _("maxvalue"),
2775 : _("start"),
2776 : _("cache"),
2777 : _("table_name"),
2778 : _("column_name"));
2779 0 : }
2780 :
2781 : static void
2782 0 : sql_help_CREATE_SERVER(PQExpBuffer buf)
2783 : {
2784 0 : appendPQExpBuffer(buf,
2785 : "CREATE SERVER [ IF NOT EXISTS ] %s [ TYPE '%s' ] [ VERSION '%s' ]\n"
2786 : " FOREIGN DATA WRAPPER %s\n"
2787 : " [ OPTIONS ( %s '%s' [, ... ] ) ]",
2788 : _("server_name"),
2789 : _("server_type"),
2790 : _("server_version"),
2791 : _("fdw_name"),
2792 : _("option"),
2793 : _("value"));
2794 0 : }
2795 :
2796 : static void
2797 0 : sql_help_CREATE_STATISTICS(PQExpBuffer buf)
2798 : {
2799 0 : appendPQExpBuffer(buf,
2800 : "CREATE STATISTICS [ [ IF NOT EXISTS ] %s ]\n"
2801 : " ON ( %s )\n"
2802 : " FROM %s\n"
2803 : "\n"
2804 : "CREATE STATISTICS [ [ IF NOT EXISTS ] %s ]\n"
2805 : " [ ( %s [, ... ] ) ]\n"
2806 : " ON { %s | ( %s ) }, { %s | ( %s ) } [, ...]\n"
2807 : " FROM %s",
2808 : _("statistics_name"),
2809 : _("expression"),
2810 : _("table_name"),
2811 : _("statistics_name"),
2812 : _("statistics_kind"),
2813 : _("column_name"),
2814 : _("expression"),
2815 : _("column_name"),
2816 : _("expression"),
2817 : _("table_name"));
2818 0 : }
2819 :
2820 : static void
2821 0 : sql_help_CREATE_SUBSCRIPTION(PQExpBuffer buf)
2822 : {
2823 0 : appendPQExpBuffer(buf,
2824 : "CREATE SUBSCRIPTION %s\n"
2825 : " CONNECTION '%s'\n"
2826 : " PUBLICATION %s [, ...]\n"
2827 : " [ WITH ( %s [= %s] [, ... ] ) ]",
2828 : _("subscription_name"),
2829 : _("conninfo"),
2830 : _("publication_name"),
2831 : _("subscription_parameter"),
2832 : _("value"));
2833 0 : }
2834 :
2835 : static void
2836 0 : sql_help_CREATE_TABLE(PQExpBuffer buf)
2837 : {
2838 0 : appendPQExpBuffer(buf,
2839 : "CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] %s ( [\n"
2840 : " { %s %s [ STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN | DEFAULT } ] [ COMPRESSION %s ] [ COLLATE %s ] [ %s [ ... ] ]\n"
2841 : " | %s\n"
2842 : " | LIKE %s [ %s ... ] }\n"
2843 : " [, ... ]\n"
2844 : "] )\n"
2845 : "[ INHERITS ( %s [, ... ] ) ]\n"
2846 : "[ PARTITION BY { RANGE | LIST | HASH } ( { %s | ( %s ) } [ COLLATE %s ] [ %s ] [, ... ] ) ]\n"
2847 : "[ USING %s ]\n"
2848 : "[ WITH ( %s [= %s] [, ... ] ) | WITHOUT OIDS ]\n"
2849 : "[ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ]\n"
2850 : "[ TABLESPACE %s ]\n"
2851 : "\n"
2852 : "CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] %s\n"
2853 : " OF %s [ (\n"
2854 : " { %s [ WITH OPTIONS ] [ %s [ ... ] ]\n"
2855 : " | %s }\n"
2856 : " [, ... ]\n"
2857 : ") ]\n"
2858 : "[ PARTITION BY { RANGE | LIST | HASH } ( { %s | ( %s ) } [ COLLATE %s ] [ %s ] [, ... ] ) ]\n"
2859 : "[ USING %s ]\n"
2860 : "[ WITH ( %s [= %s] [, ... ] ) | WITHOUT OIDS ]\n"
2861 : "[ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ]\n"
2862 : "[ TABLESPACE %s ]\n"
2863 : "\n"
2864 : "CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] %s\n"
2865 : " PARTITION OF %s [ (\n"
2866 : " { %s [ WITH OPTIONS ] [ %s [ ... ] ]\n"
2867 : " | %s }\n"
2868 : " [, ... ]\n"
2869 : ") ] { FOR VALUES %s | DEFAULT }\n"
2870 : "[ PARTITION BY { RANGE | LIST | HASH } ( { %s | ( %s ) } [ COLLATE %s ] [ %s ] [, ... ] ) ]\n"
2871 : "[ USING %s ]\n"
2872 : "[ WITH ( %s [= %s] [, ... ] ) | WITHOUT OIDS ]\n"
2873 : "[ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ]\n"
2874 : "[ TABLESPACE %s ]\n"
2875 : "\n"
2876 : "%s\n"
2877 : "\n"
2878 : "[ CONSTRAINT %s ]\n"
2879 : "{ NOT NULL [ NO INHERIT ] |\n"
2880 : " NULL |\n"
2881 : " CHECK ( %s ) [ NO INHERIT ] |\n"
2882 : " DEFAULT %s |\n"
2883 : " GENERATED ALWAYS AS ( %s ) STORED |\n"
2884 : " GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( %s ) ] |\n"
2885 : " UNIQUE [ NULLS [ NOT ] DISTINCT ] %s |\n"
2886 : " PRIMARY KEY %s |\n"
2887 : " REFERENCES %s [ ( %s ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ]\n"
2888 : " [ ON DELETE %s ] [ ON UPDATE %s ] }\n"
2889 : "[ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ] [ ENFORCED | NOT ENFORCED ]\n"
2890 : "\n"
2891 : "%s\n"
2892 : "\n"
2893 : "[ CONSTRAINT %s ]\n"
2894 : "{ CHECK ( %s ) [ NO INHERIT ] |\n"
2895 : " NOT NULL %s [ NO INHERIT ] |\n"
2896 : " UNIQUE [ NULLS [ NOT ] DISTINCT ] ( %s [, ... ] [, %s WITHOUT OVERLAPS ] ) %s |\n"
2897 : " PRIMARY KEY ( %s [, ... ] [, %s WITHOUT OVERLAPS ] ) %s |\n"
2898 : " EXCLUDE [ USING %s ] ( %s WITH %s [, ... ] ) %s [ WHERE ( %s ) ] |\n"
2899 : " FOREIGN KEY ( %s [, ... ] [, PERIOD %s ] ) REFERENCES %s [ ( %s [, ... ] [, PERIOD %s ] ) ]\n"
2900 : " [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE %s ] [ ON UPDATE %s ] }\n"
2901 : "[ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY DEFERRED | INITIALLY IMMEDIATE ] [ ENFORCED | NOT ENFORCED ]\n"
2902 : "\n"
2903 : "%s\n"
2904 : "\n"
2905 : "{ INCLUDING | EXCLUDING } { COMMENTS | COMPRESSION | CONSTRAINTS | DEFAULTS | GENERATED | IDENTITY | INDEXES | STATISTICS | STORAGE | ALL }\n"
2906 : "\n"
2907 : "%s\n"
2908 : "\n"
2909 : "IN ( %s [, ...] ) |\n"
2910 : "FROM ( { %s | MINVALUE | MAXVALUE } [, ...] )\n"
2911 : " TO ( { %s | MINVALUE | MAXVALUE } [, ...] ) |\n"
2912 : "WITH ( MODULUS %s, REMAINDER %s )\n"
2913 : "\n"
2914 : "%s\n"
2915 : "\n"
2916 : "[ INCLUDE ( %s [, ... ] ) ]\n"
2917 : "[ WITH ( %s [= %s] [, ... ] ) ]\n"
2918 : "[ USING INDEX TABLESPACE %s ]\n"
2919 : "\n"
2920 : "%s\n"
2921 : "\n"
2922 : "{ %s | ( %s ) } [ COLLATE %s ] [ %s [ ( %s = %s [, ... ] ) ] ] [ ASC | DESC ] [ NULLS { FIRST | LAST } ]\n"
2923 : "\n"
2924 : "%s\n"
2925 : "\n"
2926 : "{ NO ACTION | RESTRICT | CASCADE | SET NULL [ ( %s [, ... ] ) ] | SET DEFAULT [ ( %s [, ... ] ) ] }",
2927 : _("table_name"),
2928 : _("column_name"),
2929 : _("data_type"),
2930 : _("compression_method"),
2931 : _("collation"),
2932 : _("column_constraint"),
2933 : _("table_constraint"),
2934 : _("source_table"),
2935 : _("like_option"),
2936 : _("parent_table"),
2937 : _("column_name"),
2938 : _("expression"),
2939 : _("collation"),
2940 : _("opclass"),
2941 : _("method"),
2942 : _("storage_parameter"),
2943 : _("value"),
2944 : _("tablespace_name"),
2945 : _("table_name"),
2946 : _("type_name"),
2947 : _("column_name"),
2948 : _("column_constraint"),
2949 : _("table_constraint"),
2950 : _("column_name"),
2951 : _("expression"),
2952 : _("collation"),
2953 : _("opclass"),
2954 : _("method"),
2955 : _("storage_parameter"),
2956 : _("value"),
2957 : _("tablespace_name"),
2958 : _("table_name"),
2959 : _("parent_table"),
2960 : _("column_name"),
2961 : _("column_constraint"),
2962 : _("table_constraint"),
2963 : _("partition_bound_spec"),
2964 : _("column_name"),
2965 : _("expression"),
2966 : _("collation"),
2967 : _("opclass"),
2968 : _("method"),
2969 : _("storage_parameter"),
2970 : _("value"),
2971 : _("tablespace_name"),
2972 : _("where column_constraint is:"),
2973 : _("constraint_name"),
2974 : _("expression"),
2975 : _("default_expr"),
2976 : _("generation_expr"),
2977 : _("sequence_options"),
2978 : _("index_parameters"),
2979 : _("index_parameters"),
2980 : _("reftable"),
2981 : _("refcolumn"),
2982 : _("referential_action"),
2983 : _("referential_action"),
2984 : _("and table_constraint is:"),
2985 : _("constraint_name"),
2986 : _("expression"),
2987 : _("column_name"),
2988 : _("column_name"),
2989 : _("column_name"),
2990 : _("index_parameters"),
2991 : _("column_name"),
2992 : _("column_name"),
2993 : _("index_parameters"),
2994 : _("index_method"),
2995 : _("exclude_element"),
2996 : _("operator"),
2997 : _("index_parameters"),
2998 : _("predicate"),
2999 : _("column_name"),
3000 : _("column_name"),
3001 : _("reftable"),
3002 : _("refcolumn"),
3003 : _("refcolumn"),
3004 : _("referential_action"),
3005 : _("referential_action"),
3006 : _("and like_option is:"),
3007 : _("and partition_bound_spec is:"),
3008 : _("partition_bound_expr"),
3009 : _("partition_bound_expr"),
3010 : _("partition_bound_expr"),
3011 : _("numeric_literal"),
3012 : _("numeric_literal"),
3013 : _("index_parameters in UNIQUE, PRIMARY KEY, and EXCLUDE constraints are:"),
3014 : _("column_name"),
3015 : _("storage_parameter"),
3016 : _("value"),
3017 : _("tablespace_name"),
3018 : _("exclude_element in an EXCLUDE constraint is:"),
3019 : _("column_name"),
3020 : _("expression"),
3021 : _("collation"),
3022 : _("opclass"),
3023 : _("opclass_parameter"),
3024 : _("value"),
3025 : _("referential_action in a FOREIGN KEY/REFERENCES constraint is:"),
3026 : _("column_name"),
3027 : _("column_name"));
3028 0 : }
3029 :
3030 : static void
3031 0 : sql_help_CREATE_TABLE_AS(PQExpBuffer buf)
3032 : {
3033 0 : appendPQExpBuffer(buf,
3034 : "CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] %s\n"
3035 : " [ (%s [, ...] ) ]\n"
3036 : " [ USING %s ]\n"
3037 : " [ WITH ( %s [= %s] [, ... ] ) | WITHOUT OIDS ]\n"
3038 : " [ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ]\n"
3039 : " [ TABLESPACE %s ]\n"
3040 : " AS %s\n"
3041 : " [ WITH [ NO ] DATA ]",
3042 : _("table_name"),
3043 : _("column_name"),
3044 : _("method"),
3045 : _("storage_parameter"),
3046 : _("value"),
3047 : _("tablespace_name"),
3048 : _("query"));
3049 0 : }
3050 :
3051 : static void
3052 0 : sql_help_CREATE_TABLESPACE(PQExpBuffer buf)
3053 : {
3054 0 : appendPQExpBuffer(buf,
3055 : "CREATE TABLESPACE %s\n"
3056 : " [ OWNER { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER } ]\n"
3057 : " LOCATION '%s'\n"
3058 : " [ WITH ( %s = %s [, ... ] ) ]",
3059 : _("tablespace_name"),
3060 : _("new_owner"),
3061 : _("directory"),
3062 : _("tablespace_option"),
3063 : _("value"));
3064 0 : }
3065 :
3066 : static void
3067 0 : sql_help_CREATE_TEXT_SEARCH_CONFIGURATION(PQExpBuffer buf)
3068 : {
3069 0 : appendPQExpBuffer(buf,
3070 : "CREATE TEXT SEARCH CONFIGURATION %s (\n"
3071 : " PARSER = %s |\n"
3072 : " COPY = %s\n"
3073 : ")",
3074 : _("name"),
3075 : _("parser_name"),
3076 : _("source_config"));
3077 0 : }
3078 :
3079 : static void
3080 0 : sql_help_CREATE_TEXT_SEARCH_DICTIONARY(PQExpBuffer buf)
3081 : {
3082 0 : appendPQExpBuffer(buf,
3083 : "CREATE TEXT SEARCH DICTIONARY %s (\n"
3084 : " TEMPLATE = %s\n"
3085 : " [, %s = %s [, ... ]]\n"
3086 : ")",
3087 : _("name"),
3088 : _("template"),
3089 : _("option"),
3090 : _("value"));
3091 0 : }
3092 :
3093 : static void
3094 0 : sql_help_CREATE_TEXT_SEARCH_PARSER(PQExpBuffer buf)
3095 : {
3096 0 : appendPQExpBuffer(buf,
3097 : "CREATE TEXT SEARCH PARSER %s (\n"
3098 : " START = %s ,\n"
3099 : " GETTOKEN = %s ,\n"
3100 : " END = %s ,\n"
3101 : " LEXTYPES = %s\n"
3102 : " [, HEADLINE = %s ]\n"
3103 : ")",
3104 : _("name"),
3105 : _("start_function"),
3106 : _("gettoken_function"),
3107 : _("end_function"),
3108 : _("lextypes_function"),
3109 : _("headline_function"));
3110 0 : }
3111 :
3112 : static void
3113 0 : sql_help_CREATE_TEXT_SEARCH_TEMPLATE(PQExpBuffer buf)
3114 : {
3115 0 : appendPQExpBuffer(buf,
3116 : "CREATE TEXT SEARCH TEMPLATE %s (\n"
3117 : " [ INIT = %s , ]\n"
3118 : " LEXIZE = %s\n"
3119 : ")",
3120 : _("name"),
3121 : _("init_function"),
3122 : _("lexize_function"));
3123 0 : }
3124 :
3125 : static void
3126 0 : sql_help_CREATE_TRANSFORM(PQExpBuffer buf)
3127 : {
3128 0 : appendPQExpBuffer(buf,
3129 : "CREATE [ OR REPLACE ] TRANSFORM FOR %s LANGUAGE %s (\n"
3130 : " FROM SQL WITH FUNCTION %s [ (%s [, ...]) ],\n"
3131 : " TO SQL WITH FUNCTION %s [ (%s [, ...]) ]\n"
3132 : ");",
3133 : _("type_name"),
3134 : _("lang_name"),
3135 : _("from_sql_function_name"),
3136 : _("argument_type"),
3137 : _("to_sql_function_name"),
3138 : _("argument_type"));
3139 0 : }
3140 :
3141 : static void
3142 0 : sql_help_CREATE_TRIGGER(PQExpBuffer buf)
3143 : {
3144 0 : appendPQExpBuffer(buf,
3145 : "CREATE [ OR REPLACE ] [ CONSTRAINT ] TRIGGER %s { BEFORE | AFTER | INSTEAD OF } { %s [ OR ... ] }\n"
3146 : " ON %s\n"
3147 : " [ FROM %s ]\n"
3148 : " [ NOT DEFERRABLE | [ DEFERRABLE ] [ INITIALLY IMMEDIATE | INITIALLY DEFERRED ] ]\n"
3149 : " [ REFERENCING { { OLD | NEW } TABLE [ AS ] %s } [ ... ] ]\n"
3150 : " [ FOR [ EACH ] { ROW | STATEMENT } ]\n"
3151 : " [ WHEN ( %s ) ]\n"
3152 : " EXECUTE { FUNCTION | PROCEDURE } %s ( %s )\n"
3153 : "\n"
3154 : "%s\n"
3155 : "\n"
3156 : " INSERT\n"
3157 : " UPDATE [ OF %s [, ... ] ]\n"
3158 : " DELETE\n"
3159 : " TRUNCATE",
3160 : _("name"),
3161 : _("event"),
3162 : _("table_name"),
3163 : _("referenced_table_name"),
3164 : _("transition_relation_name"),
3165 : _("condition"),
3166 : _("function_name"),
3167 : _("arguments"),
3168 : _("where event can be one of:"),
3169 : _("column_name"));
3170 0 : }
3171 :
3172 : static void
3173 0 : sql_help_CREATE_TYPE(PQExpBuffer buf)
3174 : {
3175 0 : appendPQExpBuffer(buf,
3176 : "CREATE TYPE %s AS\n"
3177 : " ( [ %s %s [ COLLATE %s ] [, ... ] ] )\n"
3178 : "\n"
3179 : "CREATE TYPE %s AS ENUM\n"
3180 : " ( [ '%s' [, ... ] ] )\n"
3181 : "\n"
3182 : "CREATE TYPE %s AS RANGE (\n"
3183 : " SUBTYPE = %s\n"
3184 : " [ , SUBTYPE_OPCLASS = %s ]\n"
3185 : " [ , COLLATION = %s ]\n"
3186 : " [ , CANONICAL = %s ]\n"
3187 : " [ , SUBTYPE_DIFF = %s ]\n"
3188 : " [ , MULTIRANGE_TYPE_NAME = %s ]\n"
3189 : ")\n"
3190 : "\n"
3191 : "CREATE TYPE %s (\n"
3192 : " INPUT = %s,\n"
3193 : " OUTPUT = %s\n"
3194 : " [ , RECEIVE = %s ]\n"
3195 : " [ , SEND = %s ]\n"
3196 : " [ , TYPMOD_IN = %s ]\n"
3197 : " [ , TYPMOD_OUT = %s ]\n"
3198 : " [ , ANALYZE = %s ]\n"
3199 : " [ , SUBSCRIPT = %s ]\n"
3200 : " [ , INTERNALLENGTH = { %s | VARIABLE } ]\n"
3201 : " [ , PASSEDBYVALUE ]\n"
3202 : " [ , ALIGNMENT = %s ]\n"
3203 : " [ , STORAGE = %s ]\n"
3204 : " [ , LIKE = %s ]\n"
3205 : " [ , CATEGORY = %s ]\n"
3206 : " [ , PREFERRED = %s ]\n"
3207 : " [ , DEFAULT = %s ]\n"
3208 : " [ , ELEMENT = %s ]\n"
3209 : " [ , DELIMITER = %s ]\n"
3210 : " [ , COLLATABLE = %s ]\n"
3211 : ")\n"
3212 : "\n"
3213 : "CREATE TYPE %s",
3214 : _("name"),
3215 : _("attribute_name"),
3216 : _("data_type"),
3217 : _("collation"),
3218 : _("name"),
3219 : _("label"),
3220 : _("name"),
3221 : _("subtype"),
3222 : _("subtype_operator_class"),
3223 : _("collation"),
3224 : _("canonical_function"),
3225 : _("subtype_diff_function"),
3226 : _("multirange_type_name"),
3227 : _("name"),
3228 : _("input_function"),
3229 : _("output_function"),
3230 : _("receive_function"),
3231 : _("send_function"),
3232 : _("type_modifier_input_function"),
3233 : _("type_modifier_output_function"),
3234 : _("analyze_function"),
3235 : _("subscript_function"),
3236 : _("internallength"),
3237 : _("alignment"),
3238 : _("storage"),
3239 : _("like_type"),
3240 : _("category"),
3241 : _("preferred"),
3242 : _("default"),
3243 : _("element"),
3244 : _("delimiter"),
3245 : _("collatable"),
3246 : _("name"));
3247 0 : }
3248 :
3249 : static void
3250 0 : sql_help_CREATE_USER(PQExpBuffer buf)
3251 : {
3252 0 : appendPQExpBuffer(buf,
3253 : "CREATE USER %s [ [ WITH ] %s [ ... ] ]\n"
3254 : "\n"
3255 : "%s\n"
3256 : "\n"
3257 : " SUPERUSER | NOSUPERUSER\n"
3258 : " | CREATEDB | NOCREATEDB\n"
3259 : " | CREATEROLE | NOCREATEROLE\n"
3260 : " | INHERIT | NOINHERIT\n"
3261 : " | LOGIN | NOLOGIN\n"
3262 : " | REPLICATION | NOREPLICATION\n"
3263 : " | BYPASSRLS | NOBYPASSRLS\n"
3264 : " | CONNECTION LIMIT %s\n"
3265 : " | [ ENCRYPTED ] PASSWORD '%s' | PASSWORD NULL\n"
3266 : " | VALID UNTIL '%s'\n"
3267 : " | IN ROLE %s [, ...]\n"
3268 : " | IN GROUP %s [, ...]\n"
3269 : " | ROLE %s [, ...]\n"
3270 : " | ADMIN %s [, ...]\n"
3271 : " | USER %s [, ...]\n"
3272 : " | SYSID %s",
3273 : _("name"),
3274 : _("option"),
3275 : _("where option can be:"),
3276 : _("connlimit"),
3277 : _("password"),
3278 : _("timestamp"),
3279 : _("role_name"),
3280 : _("role_name"),
3281 : _("role_name"),
3282 : _("role_name"),
3283 : _("role_name"),
3284 : _("uid"));
3285 0 : }
3286 :
3287 : static void
3288 0 : sql_help_CREATE_USER_MAPPING(PQExpBuffer buf)
3289 : {
3290 0 : appendPQExpBuffer(buf,
3291 : "CREATE USER MAPPING [ IF NOT EXISTS ] FOR { %s | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC }\n"
3292 : " SERVER %s\n"
3293 : " [ OPTIONS ( %s '%s' [ , ... ] ) ]",
3294 : _("user_name"),
3295 : _("server_name"),
3296 : _("option"),
3297 : _("value"));
3298 0 : }
3299 :
3300 : static void
3301 0 : sql_help_CREATE_VIEW(PQExpBuffer buf)
3302 : {
3303 0 : appendPQExpBuffer(buf,
3304 : "CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] [ RECURSIVE ] VIEW %s [ ( %s [, ...] ) ]\n"
3305 : " [ WITH ( %s [= %s] [, ... ] ) ]\n"
3306 : " AS %s\n"
3307 : " [ WITH [ CASCADED | LOCAL ] CHECK OPTION ]",
3308 : _("name"),
3309 : _("column_name"),
3310 : _("view_option_name"),
3311 : _("view_option_value"),
3312 : _("query"));
3313 0 : }
3314 :
3315 : static void
3316 0 : sql_help_DEALLOCATE(PQExpBuffer buf)
3317 : {
3318 0 : appendPQExpBuffer(buf,
3319 : "DEALLOCATE [ PREPARE ] { %s | ALL }",
3320 : _("name"));
3321 0 : }
3322 :
3323 : static void
3324 0 : sql_help_DECLARE(PQExpBuffer buf)
3325 : {
3326 0 : appendPQExpBuffer(buf,
3327 : "DECLARE %s [ BINARY ] [ ASENSITIVE | INSENSITIVE ] [ [ NO ] SCROLL ]\n"
3328 : " CURSOR [ { WITH | WITHOUT } HOLD ] FOR %s",
3329 : _("name"),
3330 : _("query"));
3331 0 : }
3332 :
3333 : static void
3334 0 : sql_help_DELETE(PQExpBuffer buf)
3335 : {
3336 0 : appendPQExpBuffer(buf,
3337 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
3338 : "DELETE FROM [ ONLY ] %s [ * ] [ [ AS ] %s ]\n"
3339 : " [ USING %s [, ...] ]\n"
3340 : " [ WHERE %s | WHERE CURRENT OF %s ]\n"
3341 : " [ RETURNING [ WITH ( { OLD | NEW } AS %s [, ...] ) ]\n"
3342 : " { * | %s [ [ AS ] %s ] } [, ...] ]",
3343 : _("with_query"),
3344 : _("table_name"),
3345 : _("alias"),
3346 : _("from_item"),
3347 : _("condition"),
3348 : _("cursor_name"),
3349 : _("output_alias"),
3350 : _("output_expression"),
3351 : _("output_name"));
3352 0 : }
3353 :
3354 : static void
3355 0 : sql_help_DISCARD(PQExpBuffer buf)
3356 : {
3357 0 : appendPQExpBuffer(buf,
3358 : "DISCARD { ALL | PLANS | SEQUENCES | TEMPORARY | TEMP }");
3359 0 : }
3360 :
3361 : static void
3362 0 : sql_help_DO(PQExpBuffer buf)
3363 : {
3364 0 : appendPQExpBuffer(buf,
3365 : "DO [ LANGUAGE %s ] %s",
3366 : _("lang_name"),
3367 : _("code"));
3368 0 : }
3369 :
3370 : static void
3371 0 : sql_help_DROP_ACCESS_METHOD(PQExpBuffer buf)
3372 : {
3373 0 : appendPQExpBuffer(buf,
3374 : "DROP ACCESS METHOD [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3375 : _("name"));
3376 0 : }
3377 :
3378 : static void
3379 0 : sql_help_DROP_AGGREGATE(PQExpBuffer buf)
3380 : {
3381 0 : appendPQExpBuffer(buf,
3382 : "DROP AGGREGATE [ IF EXISTS ] %s ( %s ) [, ...] [ CASCADE | RESTRICT ]\n"
3383 : "\n"
3384 : "%s\n"
3385 : "\n"
3386 : "* |\n"
3387 : "[ %s ] [ %s ] %s [ , ... ] |\n"
3388 : "[ [ %s ] [ %s ] %s [ , ... ] ] ORDER BY [ %s ] [ %s ] %s [ , ... ]",
3389 : _("name"),
3390 : _("aggregate_signature"),
3391 : _("where aggregate_signature is:"),
3392 : _("argmode"),
3393 : _("argname"),
3394 : _("argtype"),
3395 : _("argmode"),
3396 : _("argname"),
3397 : _("argtype"),
3398 : _("argmode"),
3399 : _("argname"),
3400 : _("argtype"));
3401 0 : }
3402 :
3403 : static void
3404 0 : sql_help_DROP_CAST(PQExpBuffer buf)
3405 : {
3406 0 : appendPQExpBuffer(buf,
3407 : "DROP CAST [ IF EXISTS ] (%s AS %s) [ CASCADE | RESTRICT ]",
3408 : _("source_type"),
3409 : _("target_type"));
3410 0 : }
3411 :
3412 : static void
3413 0 : sql_help_DROP_COLLATION(PQExpBuffer buf)
3414 : {
3415 0 : appendPQExpBuffer(buf,
3416 : "DROP COLLATION [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3417 : _("name"));
3418 0 : }
3419 :
3420 : static void
3421 0 : sql_help_DROP_CONVERSION(PQExpBuffer buf)
3422 : {
3423 0 : appendPQExpBuffer(buf,
3424 : "DROP CONVERSION [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3425 : _("name"));
3426 0 : }
3427 :
3428 : static void
3429 0 : sql_help_DROP_DATABASE(PQExpBuffer buf)
3430 : {
3431 0 : appendPQExpBuffer(buf,
3432 : "DROP DATABASE [ IF EXISTS ] %s [ [ WITH ] ( %s [, ...] ) ]\n"
3433 : "\n"
3434 : "%s\n"
3435 : "\n"
3436 : " FORCE",
3437 : _("name"),
3438 : _("option"),
3439 : _("where option can be:"));
3440 0 : }
3441 :
3442 : static void
3443 0 : sql_help_DROP_DOMAIN(PQExpBuffer buf)
3444 : {
3445 0 : appendPQExpBuffer(buf,
3446 : "DROP DOMAIN [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3447 : _("name"));
3448 0 : }
3449 :
3450 : static void
3451 0 : sql_help_DROP_EVENT_TRIGGER(PQExpBuffer buf)
3452 : {
3453 0 : appendPQExpBuffer(buf,
3454 : "DROP EVENT TRIGGER [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3455 : _("name"));
3456 0 : }
3457 :
3458 : static void
3459 0 : sql_help_DROP_EXTENSION(PQExpBuffer buf)
3460 : {
3461 0 : appendPQExpBuffer(buf,
3462 : "DROP EXTENSION [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3463 : _("name"));
3464 0 : }
3465 :
3466 : static void
3467 0 : sql_help_DROP_FOREIGN_DATA_WRAPPER(PQExpBuffer buf)
3468 : {
3469 0 : appendPQExpBuffer(buf,
3470 : "DROP FOREIGN DATA WRAPPER [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3471 : _("name"));
3472 0 : }
3473 :
3474 : static void
3475 0 : sql_help_DROP_FOREIGN_TABLE(PQExpBuffer buf)
3476 : {
3477 0 : appendPQExpBuffer(buf,
3478 : "DROP FOREIGN TABLE [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3479 : _("name"));
3480 0 : }
3481 :
3482 : static void
3483 0 : sql_help_DROP_FUNCTION(PQExpBuffer buf)
3484 : {
3485 0 : appendPQExpBuffer(buf,
3486 : "DROP FUNCTION [ IF EXISTS ] %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] [, ...]\n"
3487 : " [ CASCADE | RESTRICT ]",
3488 : _("name"),
3489 : _("argmode"),
3490 : _("argname"),
3491 : _("argtype"));
3492 0 : }
3493 :
3494 : static void
3495 0 : sql_help_DROP_GROUP(PQExpBuffer buf)
3496 : {
3497 0 : appendPQExpBuffer(buf,
3498 : "DROP GROUP [ IF EXISTS ] %s [, ...]",
3499 : _("name"));
3500 0 : }
3501 :
3502 : static void
3503 0 : sql_help_DROP_INDEX(PQExpBuffer buf)
3504 : {
3505 0 : appendPQExpBuffer(buf,
3506 : "DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3507 : _("name"));
3508 0 : }
3509 :
3510 : static void
3511 0 : sql_help_DROP_LANGUAGE(PQExpBuffer buf)
3512 : {
3513 0 : appendPQExpBuffer(buf,
3514 : "DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3515 : _("name"));
3516 0 : }
3517 :
3518 : static void
3519 0 : sql_help_DROP_MATERIALIZED_VIEW(PQExpBuffer buf)
3520 : {
3521 0 : appendPQExpBuffer(buf,
3522 : "DROP MATERIALIZED VIEW [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3523 : _("name"));
3524 0 : }
3525 :
3526 : static void
3527 0 : sql_help_DROP_OPERATOR(PQExpBuffer buf)
3528 : {
3529 0 : appendPQExpBuffer(buf,
3530 : "DROP OPERATOR [ IF EXISTS ] %s ( { %s | NONE } , %s ) [, ...] [ CASCADE | RESTRICT ]",
3531 : _("name"),
3532 : _("left_type"),
3533 : _("right_type"));
3534 0 : }
3535 :
3536 : static void
3537 0 : sql_help_DROP_OPERATOR_CLASS(PQExpBuffer buf)
3538 : {
3539 0 : appendPQExpBuffer(buf,
3540 : "DROP OPERATOR CLASS [ IF EXISTS ] %s USING %s [ CASCADE | RESTRICT ]",
3541 : _("name"),
3542 : _("index_method"));
3543 0 : }
3544 :
3545 : static void
3546 0 : sql_help_DROP_OPERATOR_FAMILY(PQExpBuffer buf)
3547 : {
3548 0 : appendPQExpBuffer(buf,
3549 : "DROP OPERATOR FAMILY [ IF EXISTS ] %s USING %s [ CASCADE | RESTRICT ]",
3550 : _("name"),
3551 : _("index_method"));
3552 0 : }
3553 :
3554 : static void
3555 0 : sql_help_DROP_OWNED(PQExpBuffer buf)
3556 : {
3557 0 : appendPQExpBuffer(buf,
3558 : "DROP OWNED BY { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...] [ CASCADE | RESTRICT ]",
3559 : _("name"));
3560 0 : }
3561 :
3562 : static void
3563 0 : sql_help_DROP_POLICY(PQExpBuffer buf)
3564 : {
3565 0 : appendPQExpBuffer(buf,
3566 : "DROP POLICY [ IF EXISTS ] %s ON %s [ CASCADE | RESTRICT ]",
3567 : _("name"),
3568 : _("table_name"));
3569 0 : }
3570 :
3571 : static void
3572 0 : sql_help_DROP_PROCEDURE(PQExpBuffer buf)
3573 : {
3574 0 : appendPQExpBuffer(buf,
3575 : "DROP PROCEDURE [ IF EXISTS ] %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] [, ...]\n"
3576 : " [ CASCADE | RESTRICT ]",
3577 : _("name"),
3578 : _("argmode"),
3579 : _("argname"),
3580 : _("argtype"));
3581 0 : }
3582 :
3583 : static void
3584 0 : sql_help_DROP_PUBLICATION(PQExpBuffer buf)
3585 : {
3586 0 : appendPQExpBuffer(buf,
3587 : "DROP PUBLICATION [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3588 : _("name"));
3589 0 : }
3590 :
3591 : static void
3592 0 : sql_help_DROP_ROLE(PQExpBuffer buf)
3593 : {
3594 0 : appendPQExpBuffer(buf,
3595 : "DROP ROLE [ IF EXISTS ] %s [, ...]",
3596 : _("name"));
3597 0 : }
3598 :
3599 : static void
3600 0 : sql_help_DROP_ROUTINE(PQExpBuffer buf)
3601 : {
3602 0 : appendPQExpBuffer(buf,
3603 : "DROP ROUTINE [ IF EXISTS ] %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] [, ...]\n"
3604 : " [ CASCADE | RESTRICT ]",
3605 : _("name"),
3606 : _("argmode"),
3607 : _("argname"),
3608 : _("argtype"));
3609 0 : }
3610 :
3611 : static void
3612 0 : sql_help_DROP_RULE(PQExpBuffer buf)
3613 : {
3614 0 : appendPQExpBuffer(buf,
3615 : "DROP RULE [ IF EXISTS ] %s ON %s [ CASCADE | RESTRICT ]",
3616 : _("name"),
3617 : _("table_name"));
3618 0 : }
3619 :
3620 : static void
3621 0 : sql_help_DROP_SCHEMA(PQExpBuffer buf)
3622 : {
3623 0 : appendPQExpBuffer(buf,
3624 : "DROP SCHEMA [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3625 : _("name"));
3626 0 : }
3627 :
3628 : static void
3629 0 : sql_help_DROP_SEQUENCE(PQExpBuffer buf)
3630 : {
3631 0 : appendPQExpBuffer(buf,
3632 : "DROP SEQUENCE [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3633 : _("name"));
3634 0 : }
3635 :
3636 : static void
3637 0 : sql_help_DROP_SERVER(PQExpBuffer buf)
3638 : {
3639 0 : appendPQExpBuffer(buf,
3640 : "DROP SERVER [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3641 : _("name"));
3642 0 : }
3643 :
3644 : static void
3645 0 : sql_help_DROP_STATISTICS(PQExpBuffer buf)
3646 : {
3647 0 : appendPQExpBuffer(buf,
3648 : "DROP STATISTICS [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3649 : _("name"));
3650 0 : }
3651 :
3652 : static void
3653 0 : sql_help_DROP_SUBSCRIPTION(PQExpBuffer buf)
3654 : {
3655 0 : appendPQExpBuffer(buf,
3656 : "DROP SUBSCRIPTION [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3657 : _("name"));
3658 0 : }
3659 :
3660 : static void
3661 0 : sql_help_DROP_TABLE(PQExpBuffer buf)
3662 : {
3663 0 : appendPQExpBuffer(buf,
3664 : "DROP TABLE [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3665 : _("name"));
3666 0 : }
3667 :
3668 : static void
3669 0 : sql_help_DROP_TABLESPACE(PQExpBuffer buf)
3670 : {
3671 0 : appendPQExpBuffer(buf,
3672 : "DROP TABLESPACE [ IF EXISTS ] %s",
3673 : _("name"));
3674 0 : }
3675 :
3676 : static void
3677 0 : sql_help_DROP_TEXT_SEARCH_CONFIGURATION(PQExpBuffer buf)
3678 : {
3679 0 : appendPQExpBuffer(buf,
3680 : "DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3681 : _("name"));
3682 0 : }
3683 :
3684 : static void
3685 0 : sql_help_DROP_TEXT_SEARCH_DICTIONARY(PQExpBuffer buf)
3686 : {
3687 0 : appendPQExpBuffer(buf,
3688 : "DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3689 : _("name"));
3690 0 : }
3691 :
3692 : static void
3693 0 : sql_help_DROP_TEXT_SEARCH_PARSER(PQExpBuffer buf)
3694 : {
3695 0 : appendPQExpBuffer(buf,
3696 : "DROP TEXT SEARCH PARSER [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3697 : _("name"));
3698 0 : }
3699 :
3700 : static void
3701 0 : sql_help_DROP_TEXT_SEARCH_TEMPLATE(PQExpBuffer buf)
3702 : {
3703 0 : appendPQExpBuffer(buf,
3704 : "DROP TEXT SEARCH TEMPLATE [ IF EXISTS ] %s [ CASCADE | RESTRICT ]",
3705 : _("name"));
3706 0 : }
3707 :
3708 : static void
3709 0 : sql_help_DROP_TRANSFORM(PQExpBuffer buf)
3710 : {
3711 0 : appendPQExpBuffer(buf,
3712 : "DROP TRANSFORM [ IF EXISTS ] FOR %s LANGUAGE %s [ CASCADE | RESTRICT ]",
3713 : _("type_name"),
3714 : _("lang_name"));
3715 0 : }
3716 :
3717 : static void
3718 0 : sql_help_DROP_TRIGGER(PQExpBuffer buf)
3719 : {
3720 0 : appendPQExpBuffer(buf,
3721 : "DROP TRIGGER [ IF EXISTS ] %s ON %s [ CASCADE | RESTRICT ]",
3722 : _("name"),
3723 : _("table_name"));
3724 0 : }
3725 :
3726 : static void
3727 0 : sql_help_DROP_TYPE(PQExpBuffer buf)
3728 : {
3729 0 : appendPQExpBuffer(buf,
3730 : "DROP TYPE [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3731 : _("name"));
3732 0 : }
3733 :
3734 : static void
3735 0 : sql_help_DROP_USER(PQExpBuffer buf)
3736 : {
3737 0 : appendPQExpBuffer(buf,
3738 : "DROP USER [ IF EXISTS ] %s [, ...]",
3739 : _("name"));
3740 0 : }
3741 :
3742 : static void
3743 0 : sql_help_DROP_USER_MAPPING(PQExpBuffer buf)
3744 : {
3745 0 : appendPQExpBuffer(buf,
3746 : "DROP USER MAPPING [ IF EXISTS ] FOR { %s | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC } SERVER %s",
3747 : _("user_name"),
3748 : _("server_name"));
3749 0 : }
3750 :
3751 : static void
3752 0 : sql_help_DROP_VIEW(PQExpBuffer buf)
3753 : {
3754 0 : appendPQExpBuffer(buf,
3755 : "DROP VIEW [ IF EXISTS ] %s [, ...] [ CASCADE | RESTRICT ]",
3756 : _("name"));
3757 0 : }
3758 :
3759 : static void
3760 0 : sql_help_END(PQExpBuffer buf)
3761 : {
3762 0 : appendPQExpBuffer(buf,
3763 : "END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]");
3764 0 : }
3765 :
3766 : static void
3767 0 : sql_help_EXECUTE(PQExpBuffer buf)
3768 : {
3769 0 : appendPQExpBuffer(buf,
3770 : "EXECUTE %s [ ( %s [, ...] ) ]",
3771 : _("name"),
3772 : _("parameter"));
3773 0 : }
3774 :
3775 : static void
3776 0 : sql_help_EXPLAIN(PQExpBuffer buf)
3777 : {
3778 0 : appendPQExpBuffer(buf,
3779 : "EXPLAIN [ ( %s [, ...] ) ] %s\n"
3780 : "\n"
3781 : "%s\n"
3782 : "\n"
3783 : " ANALYZE [ %s ]\n"
3784 : " VERBOSE [ %s ]\n"
3785 : " COSTS [ %s ]\n"
3786 : " SETTINGS [ %s ]\n"
3787 : " GENERIC_PLAN [ %s ]\n"
3788 : " BUFFERS [ %s ]\n"
3789 : " SERIALIZE [ { NONE | TEXT | BINARY } ]\n"
3790 : " WAL [ %s ]\n"
3791 : " TIMING [ %s ]\n"
3792 : " SUMMARY [ %s ]\n"
3793 : " MEMORY [ %s ]\n"
3794 : " FORMAT { TEXT | XML | JSON | YAML }",
3795 : _("option"),
3796 : _("statement"),
3797 : _("where option can be one of:"),
3798 : _("boolean"),
3799 : _("boolean"),
3800 : _("boolean"),
3801 : _("boolean"),
3802 : _("boolean"),
3803 : _("boolean"),
3804 : _("boolean"),
3805 : _("boolean"),
3806 : _("boolean"),
3807 : _("boolean"));
3808 0 : }
3809 :
3810 : static void
3811 0 : sql_help_FETCH(PQExpBuffer buf)
3812 : {
3813 0 : appendPQExpBuffer(buf,
3814 : "FETCH [ %s ] [ FROM | IN ] %s\n"
3815 : "\n"
3816 : "%s\n"
3817 : "\n"
3818 : " NEXT\n"
3819 : " PRIOR\n"
3820 : " FIRST\n"
3821 : " LAST\n"
3822 : " ABSOLUTE %s\n"
3823 : " RELATIVE %s\n"
3824 : " %s\n"
3825 : " ALL\n"
3826 : " FORWARD\n"
3827 : " FORWARD %s\n"
3828 : " FORWARD ALL\n"
3829 : " BACKWARD\n"
3830 : " BACKWARD %s\n"
3831 : " BACKWARD ALL",
3832 : _("direction"),
3833 : _("cursor_name"),
3834 : _("where direction can be one of:"),
3835 : _("count"),
3836 : _("count"),
3837 : _("count"),
3838 : _("count"),
3839 : _("count"));
3840 0 : }
3841 :
3842 : static void
3843 0 : sql_help_GRANT(PQExpBuffer buf)
3844 : {
3845 0 : appendPQExpBuffer(buf,
3846 : "GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER | MAINTAIN }\n"
3847 : " [, ...] | ALL [ PRIVILEGES ] }\n"
3848 : " ON { [ TABLE ] %s [, ...]\n"
3849 : " | ALL TABLES IN SCHEMA %s [, ...] }\n"
3850 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3851 : " [ GRANTED BY %s ]\n"
3852 : "\n"
3853 : "GRANT { { SELECT | INSERT | UPDATE | REFERENCES } ( %s [, ...] )\n"
3854 : " [, ...] | ALL [ PRIVILEGES ] ( %s [, ...] ) }\n"
3855 : " ON [ TABLE ] %s [, ...]\n"
3856 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3857 : " [ GRANTED BY %s ]\n"
3858 : "\n"
3859 : "GRANT { { USAGE | SELECT | UPDATE }\n"
3860 : " [, ...] | ALL [ PRIVILEGES ] }\n"
3861 : " ON { SEQUENCE %s [, ...]\n"
3862 : " | ALL SEQUENCES IN SCHEMA %s [, ...] }\n"
3863 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3864 : " [ GRANTED BY %s ]\n"
3865 : "\n"
3866 : "GRANT { { CREATE | CONNECT | TEMPORARY | TEMP } [, ...] | ALL [ PRIVILEGES ] }\n"
3867 : " ON DATABASE %s [, ...]\n"
3868 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3869 : " [ GRANTED BY %s ]\n"
3870 : "\n"
3871 : "GRANT { USAGE | ALL [ PRIVILEGES ] }\n"
3872 : " ON DOMAIN %s [, ...]\n"
3873 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3874 : " [ GRANTED BY %s ]\n"
3875 : "\n"
3876 : "GRANT { USAGE | ALL [ PRIVILEGES ] }\n"
3877 : " ON FOREIGN DATA WRAPPER %s [, ...]\n"
3878 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3879 : " [ GRANTED BY %s ]\n"
3880 : "\n"
3881 : "GRANT { USAGE | ALL [ PRIVILEGES ] }\n"
3882 : " ON FOREIGN SERVER %s [, ...]\n"
3883 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3884 : " [ GRANTED BY %s ]\n"
3885 : "\n"
3886 : "GRANT { EXECUTE | ALL [ PRIVILEGES ] }\n"
3887 : " ON { { FUNCTION | PROCEDURE | ROUTINE } %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] [, ...]\n"
3888 : " | ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA %s [, ...] }\n"
3889 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3890 : " [ GRANTED BY %s ]\n"
3891 : "\n"
3892 : "GRANT { USAGE | ALL [ PRIVILEGES ] }\n"
3893 : " ON LANGUAGE %s [, ...]\n"
3894 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3895 : " [ GRANTED BY %s ]\n"
3896 : "\n"
3897 : "GRANT { { SELECT | UPDATE } [, ...] | ALL [ PRIVILEGES ] }\n"
3898 : " ON LARGE OBJECT %s [, ...]\n"
3899 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3900 : " [ GRANTED BY %s ]\n"
3901 : "\n"
3902 : "GRANT { { SET | ALTER SYSTEM } [, ... ] | ALL [ PRIVILEGES ] }\n"
3903 : " ON PARAMETER %s [, ...]\n"
3904 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3905 : " [ GRANTED BY %s ]\n"
3906 : "\n"
3907 : "GRANT { { CREATE | USAGE } [, ...] | ALL [ PRIVILEGES ] }\n"
3908 : " ON SCHEMA %s [, ...]\n"
3909 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3910 : " [ GRANTED BY %s ]\n"
3911 : "\n"
3912 : "GRANT { CREATE | ALL [ PRIVILEGES ] }\n"
3913 : " ON TABLESPACE %s [, ...]\n"
3914 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3915 : " [ GRANTED BY %s ]\n"
3916 : "\n"
3917 : "GRANT { USAGE | ALL [ PRIVILEGES ] }\n"
3918 : " ON TYPE %s [, ...]\n"
3919 : " TO %s [, ...] [ WITH GRANT OPTION ]\n"
3920 : " [ GRANTED BY %s ]\n"
3921 : "\n"
3922 : "GRANT %s [, ...] TO %s [, ...]\n"
3923 : " [ WITH { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ]\n"
3924 : " [ GRANTED BY %s ]\n"
3925 : "\n"
3926 : "%s\n"
3927 : "\n"
3928 : " [ GROUP ] %s\n"
3929 : " | PUBLIC\n"
3930 : " | CURRENT_ROLE\n"
3931 : " | CURRENT_USER\n"
3932 : " | SESSION_USER",
3933 : _("table_name"),
3934 : _("schema_name"),
3935 : _("role_specification"),
3936 : _("role_specification"),
3937 : _("column_name"),
3938 : _("column_name"),
3939 : _("table_name"),
3940 : _("role_specification"),
3941 : _("role_specification"),
3942 : _("sequence_name"),
3943 : _("schema_name"),
3944 : _("role_specification"),
3945 : _("role_specification"),
3946 : _("database_name"),
3947 : _("role_specification"),
3948 : _("role_specification"),
3949 : _("domain_name"),
3950 : _("role_specification"),
3951 : _("role_specification"),
3952 : _("fdw_name"),
3953 : _("role_specification"),
3954 : _("role_specification"),
3955 : _("server_name"),
3956 : _("role_specification"),
3957 : _("role_specification"),
3958 : _("routine_name"),
3959 : _("argmode"),
3960 : _("arg_name"),
3961 : _("arg_type"),
3962 : _("schema_name"),
3963 : _("role_specification"),
3964 : _("role_specification"),
3965 : _("lang_name"),
3966 : _("role_specification"),
3967 : _("role_specification"),
3968 : _("loid"),
3969 : _("role_specification"),
3970 : _("role_specification"),
3971 : _("configuration_parameter"),
3972 : _("role_specification"),
3973 : _("role_specification"),
3974 : _("schema_name"),
3975 : _("role_specification"),
3976 : _("role_specification"),
3977 : _("tablespace_name"),
3978 : _("role_specification"),
3979 : _("role_specification"),
3980 : _("type_name"),
3981 : _("role_specification"),
3982 : _("role_specification"),
3983 : _("role_name"),
3984 : _("role_specification"),
3985 : _("role_specification"),
3986 : _("where role_specification can be:"),
3987 : _("role_name"));
3988 0 : }
3989 :
3990 : static void
3991 0 : sql_help_IMPORT_FOREIGN_SCHEMA(PQExpBuffer buf)
3992 : {
3993 0 : appendPQExpBuffer(buf,
3994 : "IMPORT FOREIGN SCHEMA %s\n"
3995 : " [ { LIMIT TO | EXCEPT } ( %s [, ...] ) ]\n"
3996 : " FROM SERVER %s\n"
3997 : " INTO %s\n"
3998 : " [ OPTIONS ( %s '%s' [, ... ] ) ]",
3999 : _("remote_schema"),
4000 : _("table_name"),
4001 : _("server_name"),
4002 : _("local_schema"),
4003 : _("option"),
4004 : _("value"));
4005 0 : }
4006 :
4007 : static void
4008 0 : sql_help_INSERT(PQExpBuffer buf)
4009 : {
4010 0 : appendPQExpBuffer(buf,
4011 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
4012 : "INSERT INTO %s [ AS %s ] [ ( %s [, ...] ) ]\n"
4013 : " [ OVERRIDING { SYSTEM | USER } VALUE ]\n"
4014 : " { DEFAULT VALUES | VALUES ( { %s | DEFAULT } [, ...] ) [, ...] | %s }\n"
4015 : " [ ON CONFLICT [ %s ] %s ]\n"
4016 : " [ RETURNING [ WITH ( { OLD | NEW } AS %s [, ...] ) ]\n"
4017 : " { * | %s [ [ AS ] %s ] } [, ...] ]\n"
4018 : "\n"
4019 : "%s\n"
4020 : "\n"
4021 : " ( { %s | ( %s ) } [ COLLATE %s ] [ %s ] [, ...] ) [ WHERE %s ]\n"
4022 : " ON CONSTRAINT %s\n"
4023 : "\n"
4024 : "%s\n"
4025 : "\n"
4026 : " DO NOTHING\n"
4027 : " DO UPDATE SET { %s = { %s | DEFAULT } |\n"
4028 : " ( %s [, ...] ) = [ ROW ] ( { %s | DEFAULT } [, ...] ) |\n"
4029 : " ( %s [, ...] ) = ( %s )\n"
4030 : " } [, ...]\n"
4031 : " [ WHERE %s ]",
4032 : _("with_query"),
4033 : _("table_name"),
4034 : _("alias"),
4035 : _("column_name"),
4036 : _("expression"),
4037 : _("query"),
4038 : _("conflict_target"),
4039 : _("conflict_action"),
4040 : _("output_alias"),
4041 : _("output_expression"),
4042 : _("output_name"),
4043 : _("where conflict_target can be one of:"),
4044 : _("index_column_name"),
4045 : _("index_expression"),
4046 : _("collation"),
4047 : _("opclass"),
4048 : _("index_predicate"),
4049 : _("constraint_name"),
4050 : _("and conflict_action is one of:"),
4051 : _("column_name"),
4052 : _("expression"),
4053 : _("column_name"),
4054 : _("expression"),
4055 : _("column_name"),
4056 : _("sub-SELECT"),
4057 : _("condition"));
4058 0 : }
4059 :
4060 : static void
4061 0 : sql_help_LISTEN(PQExpBuffer buf)
4062 : {
4063 0 : appendPQExpBuffer(buf,
4064 : "LISTEN %s",
4065 : _("channel"));
4066 0 : }
4067 :
4068 : static void
4069 0 : sql_help_LOAD(PQExpBuffer buf)
4070 : {
4071 0 : appendPQExpBuffer(buf,
4072 : "LOAD '%s'",
4073 : _("filename"));
4074 0 : }
4075 :
4076 : static void
4077 0 : sql_help_LOCK(PQExpBuffer buf)
4078 : {
4079 0 : appendPQExpBuffer(buf,
4080 : "LOCK [ TABLE ] [ ONLY ] %s [ * ] [, ...] [ IN %s MODE ] [ NOWAIT ]\n"
4081 : "\n"
4082 : "%s\n"
4083 : "\n"
4084 : " ACCESS SHARE | ROW SHARE | ROW EXCLUSIVE | SHARE UPDATE EXCLUSIVE\n"
4085 : " | SHARE | SHARE ROW EXCLUSIVE | EXCLUSIVE | ACCESS EXCLUSIVE",
4086 : _("name"),
4087 : _("lockmode"),
4088 : _("where lockmode is one of:"));
4089 0 : }
4090 :
4091 : static void
4092 0 : sql_help_MERGE(PQExpBuffer buf)
4093 : {
4094 0 : appendPQExpBuffer(buf,
4095 : "[ WITH %s [, ...] ]\n"
4096 : "MERGE INTO [ ONLY ] %s [ * ] [ [ AS ] %s ]\n"
4097 : "USING %s ON %s\n"
4098 : "%s [...]\n"
4099 : "[ RETURNING [ WITH ( { OLD | NEW } AS %s [, ...] ) ]\n"
4100 : " { * | %s [ [ AS ] %s ] } [, ...] ]\n"
4101 : "\n"
4102 : "%s\n"
4103 : "\n"
4104 : "{ [ ONLY ] %s [ * ] | ( %s ) } [ [ AS ] %s ]\n"
4105 : "\n"
4106 : "%s\n"
4107 : "\n"
4108 : "{ WHEN MATCHED [ AND %s ] THEN { %s | %s | DO NOTHING } |\n"
4109 : " WHEN NOT MATCHED BY SOURCE [ AND %s ] THEN { %s | %s | DO NOTHING } |\n"
4110 : " WHEN NOT MATCHED [ BY TARGET ] [ AND %s ] THEN { %s | DO NOTHING } }\n"
4111 : "\n"
4112 : "%s\n"
4113 : "\n"
4114 : "INSERT [( %s [, ...] )]\n"
4115 : "[ OVERRIDING { SYSTEM | USER } VALUE ]\n"
4116 : "{ VALUES ( { %s | DEFAULT } [, ...] ) | DEFAULT VALUES }\n"
4117 : "\n"
4118 : "%s\n"
4119 : "\n"
4120 : "UPDATE SET { %s = { %s | DEFAULT } |\n"
4121 : " ( %s [, ...] ) = [ ROW ] ( { %s | DEFAULT } [, ...] ) |\n"
4122 : " ( %s [, ...] ) = ( %s )\n"
4123 : " } [, ...]\n"
4124 : "\n"
4125 : "%s\n"
4126 : "\n"
4127 : "DELETE",
4128 : _("with_query"),
4129 : _("target_table_name"),
4130 : _("target_alias"),
4131 : _("data_source"),
4132 : _("join_condition"),
4133 : _("when_clause"),
4134 : _("output_alias"),
4135 : _("output_expression"),
4136 : _("output_name"),
4137 : _("where data_source is:"),
4138 : _("source_table_name"),
4139 : _("source_query"),
4140 : _("source_alias"),
4141 : _("and when_clause is:"),
4142 : _("condition"),
4143 : _("merge_update"),
4144 : _("merge_delete"),
4145 : _("condition"),
4146 : _("merge_update"),
4147 : _("merge_delete"),
4148 : _("condition"),
4149 : _("merge_insert"),
4150 : _("and merge_insert is:"),
4151 : _("column_name"),
4152 : _("expression"),
4153 : _("and merge_update is:"),
4154 : _("column_name"),
4155 : _("expression"),
4156 : _("column_name"),
4157 : _("expression"),
4158 : _("column_name"),
4159 : _("sub-SELECT"),
4160 : _("and merge_delete is:"));
4161 0 : }
4162 :
4163 : static void
4164 0 : sql_help_MOVE(PQExpBuffer buf)
4165 : {
4166 0 : appendPQExpBuffer(buf,
4167 : "MOVE [ %s ] [ FROM | IN ] %s\n"
4168 : "\n"
4169 : "%s\n"
4170 : "\n"
4171 : " NEXT\n"
4172 : " PRIOR\n"
4173 : " FIRST\n"
4174 : " LAST\n"
4175 : " ABSOLUTE %s\n"
4176 : " RELATIVE %s\n"
4177 : " %s\n"
4178 : " ALL\n"
4179 : " FORWARD\n"
4180 : " FORWARD %s\n"
4181 : " FORWARD ALL\n"
4182 : " BACKWARD\n"
4183 : " BACKWARD %s\n"
4184 : " BACKWARD ALL",
4185 : _("direction"),
4186 : _("cursor_name"),
4187 : _("where direction can be one of:"),
4188 : _("count"),
4189 : _("count"),
4190 : _("count"),
4191 : _("count"),
4192 : _("count"));
4193 0 : }
4194 :
4195 : static void
4196 0 : sql_help_NOTIFY(PQExpBuffer buf)
4197 : {
4198 0 : appendPQExpBuffer(buf,
4199 : "NOTIFY %s [ , %s ]",
4200 : _("channel"),
4201 : _("payload"));
4202 0 : }
4203 :
4204 : static void
4205 0 : sql_help_PREPARE(PQExpBuffer buf)
4206 : {
4207 0 : appendPQExpBuffer(buf,
4208 : "PREPARE %s [ ( %s [, ...] ) ] AS %s",
4209 : _("name"),
4210 : _("data_type"),
4211 : _("statement"));
4212 0 : }
4213 :
4214 : static void
4215 0 : sql_help_PREPARE_TRANSACTION(PQExpBuffer buf)
4216 : {
4217 0 : appendPQExpBuffer(buf,
4218 : "PREPARE TRANSACTION %s",
4219 : _("transaction_id"));
4220 0 : }
4221 :
4222 : static void
4223 0 : sql_help_REASSIGN_OWNED(PQExpBuffer buf)
4224 : {
4225 0 : appendPQExpBuffer(buf,
4226 : "REASSIGN OWNED BY { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER } [, ...]\n"
4227 : " TO { %s | CURRENT_ROLE | CURRENT_USER | SESSION_USER }",
4228 : _("old_role"),
4229 : _("new_role"));
4230 0 : }
4231 :
4232 : static void
4233 0 : sql_help_REFRESH_MATERIALIZED_VIEW(PQExpBuffer buf)
4234 : {
4235 0 : appendPQExpBuffer(buf,
4236 : "REFRESH MATERIALIZED VIEW [ CONCURRENTLY ] %s\n"
4237 : " [ WITH [ NO ] DATA ]",
4238 : _("name"));
4239 0 : }
4240 :
4241 : static void
4242 0 : sql_help_REINDEX(PQExpBuffer buf)
4243 : {
4244 0 : appendPQExpBuffer(buf,
4245 : "REINDEX [ ( %s [, ...] ) ] { INDEX | TABLE | SCHEMA } [ CONCURRENTLY ] %s\n"
4246 : "REINDEX [ ( %s [, ...] ) ] { DATABASE | SYSTEM } [ CONCURRENTLY ] [ %s ]\n"
4247 : "\n"
4248 : "%s\n"
4249 : "\n"
4250 : " CONCURRENTLY [ %s ]\n"
4251 : " TABLESPACE %s\n"
4252 : " VERBOSE [ %s ]",
4253 : _("option"),
4254 : _("name"),
4255 : _("option"),
4256 : _("name"),
4257 : _("where option can be one of:"),
4258 : _("boolean"),
4259 : _("new_tablespace"),
4260 : _("boolean"));
4261 0 : }
4262 :
4263 : static void
4264 0 : sql_help_RELEASE_SAVEPOINT(PQExpBuffer buf)
4265 : {
4266 0 : appendPQExpBuffer(buf,
4267 : "RELEASE [ SAVEPOINT ] %s",
4268 : _("savepoint_name"));
4269 0 : }
4270 :
4271 : static void
4272 0 : sql_help_RESET(PQExpBuffer buf)
4273 : {
4274 0 : appendPQExpBuffer(buf,
4275 : "RESET %s\n"
4276 : "RESET ALL",
4277 : _("configuration_parameter"));
4278 0 : }
4279 :
4280 : static void
4281 0 : sql_help_REVOKE(PQExpBuffer buf)
4282 : {
4283 0 : appendPQExpBuffer(buf,
4284 : "REVOKE [ GRANT OPTION FOR ]\n"
4285 : " { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER | MAINTAIN }\n"
4286 : " [, ...] | ALL [ PRIVILEGES ] }\n"
4287 : " ON { [ TABLE ] %s [, ...]\n"
4288 : " | ALL TABLES IN SCHEMA %s [, ...] }\n"
4289 : " FROM %s [, ...]\n"
4290 : " [ GRANTED BY %s ]\n"
4291 : " [ CASCADE | RESTRICT ]\n"
4292 : "\n"
4293 : "REVOKE [ GRANT OPTION FOR ]\n"
4294 : " { { SELECT | INSERT | UPDATE | REFERENCES } ( %s [, ...] )\n"
4295 : " [, ...] | ALL [ PRIVILEGES ] ( %s [, ...] ) }\n"
4296 : " ON [ TABLE ] %s [, ...]\n"
4297 : " FROM %s [, ...]\n"
4298 : " [ GRANTED BY %s ]\n"
4299 : " [ CASCADE | RESTRICT ]\n"
4300 : "\n"
4301 : "REVOKE [ GRANT OPTION FOR ]\n"
4302 : " { { USAGE | SELECT | UPDATE }\n"
4303 : " [, ...] | ALL [ PRIVILEGES ] }\n"
4304 : " ON { SEQUENCE %s [, ...]\n"
4305 : " | ALL SEQUENCES IN SCHEMA %s [, ...] }\n"
4306 : " FROM %s [, ...]\n"
4307 : " [ GRANTED BY %s ]\n"
4308 : " [ CASCADE | RESTRICT ]\n"
4309 : "\n"
4310 : "REVOKE [ GRANT OPTION FOR ]\n"
4311 : " { { CREATE | CONNECT | TEMPORARY | TEMP } [, ...] | ALL [ PRIVILEGES ] }\n"
4312 : " ON DATABASE %s [, ...]\n"
4313 : " FROM %s [, ...]\n"
4314 : " [ GRANTED BY %s ]\n"
4315 : " [ CASCADE | RESTRICT ]\n"
4316 : "\n"
4317 : "REVOKE [ GRANT OPTION FOR ]\n"
4318 : " { USAGE | ALL [ PRIVILEGES ] }\n"
4319 : " ON DOMAIN %s [, ...]\n"
4320 : " FROM %s [, ...]\n"
4321 : " [ GRANTED BY %s ]\n"
4322 : " [ CASCADE | RESTRICT ]\n"
4323 : "\n"
4324 : "REVOKE [ GRANT OPTION FOR ]\n"
4325 : " { USAGE | ALL [ PRIVILEGES ] }\n"
4326 : " ON FOREIGN DATA WRAPPER %s [, ...]\n"
4327 : " FROM %s [, ...]\n"
4328 : " [ GRANTED BY %s ]\n"
4329 : " [ CASCADE | RESTRICT ]\n"
4330 : "\n"
4331 : "REVOKE [ GRANT OPTION FOR ]\n"
4332 : " { USAGE | ALL [ PRIVILEGES ] }\n"
4333 : " ON FOREIGN SERVER %s [, ...]\n"
4334 : " FROM %s [, ...]\n"
4335 : " [ GRANTED BY %s ]\n"
4336 : " [ CASCADE | RESTRICT ]\n"
4337 : "\n"
4338 : "REVOKE [ GRANT OPTION FOR ]\n"
4339 : " { EXECUTE | ALL [ PRIVILEGES ] }\n"
4340 : " ON { { FUNCTION | PROCEDURE | ROUTINE } %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] [, ...]\n"
4341 : " | ALL { FUNCTIONS | PROCEDURES | ROUTINES } IN SCHEMA %s [, ...] }\n"
4342 : " FROM %s [, ...]\n"
4343 : " [ GRANTED BY %s ]\n"
4344 : " [ CASCADE | RESTRICT ]\n"
4345 : "\n"
4346 : "REVOKE [ GRANT OPTION FOR ]\n"
4347 : " { USAGE | ALL [ PRIVILEGES ] }\n"
4348 : " ON LANGUAGE %s [, ...]\n"
4349 : " FROM %s [, ...]\n"
4350 : " [ GRANTED BY %s ]\n"
4351 : " [ CASCADE | RESTRICT ]\n"
4352 : "\n"
4353 : "REVOKE [ GRANT OPTION FOR ]\n"
4354 : " { { SELECT | UPDATE } [, ...] | ALL [ PRIVILEGES ] }\n"
4355 : " ON LARGE OBJECT %s [, ...]\n"
4356 : " FROM %s [, ...]\n"
4357 : " [ GRANTED BY %s ]\n"
4358 : " [ CASCADE | RESTRICT ]\n"
4359 : "\n"
4360 : "REVOKE [ GRANT OPTION FOR ]\n"
4361 : " { { SET | ALTER SYSTEM } [, ...] | ALL [ PRIVILEGES ] }\n"
4362 : " ON PARAMETER %s [, ...]\n"
4363 : " FROM %s [, ...]\n"
4364 : " [ GRANTED BY %s ]\n"
4365 : " [ CASCADE | RESTRICT ]\n"
4366 : "\n"
4367 : "REVOKE [ GRANT OPTION FOR ]\n"
4368 : " { { CREATE | USAGE } [, ...] | ALL [ PRIVILEGES ] }\n"
4369 : " ON SCHEMA %s [, ...]\n"
4370 : " FROM %s [, ...]\n"
4371 : " [ GRANTED BY %s ]\n"
4372 : " [ CASCADE | RESTRICT ]\n"
4373 : "\n"
4374 : "REVOKE [ GRANT OPTION FOR ]\n"
4375 : " { CREATE | ALL [ PRIVILEGES ] }\n"
4376 : " ON TABLESPACE %s [, ...]\n"
4377 : " FROM %s [, ...]\n"
4378 : " [ GRANTED BY %s ]\n"
4379 : " [ CASCADE | RESTRICT ]\n"
4380 : "\n"
4381 : "REVOKE [ GRANT OPTION FOR ]\n"
4382 : " { USAGE | ALL [ PRIVILEGES ] }\n"
4383 : " ON TYPE %s [, ...]\n"
4384 : " FROM %s [, ...]\n"
4385 : " [ GRANTED BY %s ]\n"
4386 : " [ CASCADE | RESTRICT ]\n"
4387 : "\n"
4388 : "REVOKE [ { ADMIN | INHERIT | SET } OPTION FOR ]\n"
4389 : " %s [, ...] FROM %s [, ...]\n"
4390 : " [ GRANTED BY %s ]\n"
4391 : " [ CASCADE | RESTRICT ]\n"
4392 : "\n"
4393 : "%s\n"
4394 : "\n"
4395 : " [ GROUP ] %s\n"
4396 : " | PUBLIC\n"
4397 : " | CURRENT_ROLE\n"
4398 : " | CURRENT_USER\n"
4399 : " | SESSION_USER",
4400 : _("table_name"),
4401 : _("schema_name"),
4402 : _("role_specification"),
4403 : _("role_specification"),
4404 : _("column_name"),
4405 : _("column_name"),
4406 : _("table_name"),
4407 : _("role_specification"),
4408 : _("role_specification"),
4409 : _("sequence_name"),
4410 : _("schema_name"),
4411 : _("role_specification"),
4412 : _("role_specification"),
4413 : _("database_name"),
4414 : _("role_specification"),
4415 : _("role_specification"),
4416 : _("domain_name"),
4417 : _("role_specification"),
4418 : _("role_specification"),
4419 : _("fdw_name"),
4420 : _("role_specification"),
4421 : _("role_specification"),
4422 : _("server_name"),
4423 : _("role_specification"),
4424 : _("role_specification"),
4425 : _("function_name"),
4426 : _("argmode"),
4427 : _("arg_name"),
4428 : _("arg_type"),
4429 : _("schema_name"),
4430 : _("role_specification"),
4431 : _("role_specification"),
4432 : _("lang_name"),
4433 : _("role_specification"),
4434 : _("role_specification"),
4435 : _("loid"),
4436 : _("role_specification"),
4437 : _("role_specification"),
4438 : _("configuration_parameter"),
4439 : _("role_specification"),
4440 : _("role_specification"),
4441 : _("schema_name"),
4442 : _("role_specification"),
4443 : _("role_specification"),
4444 : _("tablespace_name"),
4445 : _("role_specification"),
4446 : _("role_specification"),
4447 : _("type_name"),
4448 : _("role_specification"),
4449 : _("role_specification"),
4450 : _("role_name"),
4451 : _("role_specification"),
4452 : _("role_specification"),
4453 : _("where role_specification can be:"),
4454 : _("role_name"));
4455 0 : }
4456 :
4457 : static void
4458 0 : sql_help_ROLLBACK(PQExpBuffer buf)
4459 : {
4460 0 : appendPQExpBuffer(buf,
4461 : "ROLLBACK [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]");
4462 0 : }
4463 :
4464 : static void
4465 0 : sql_help_ROLLBACK_PREPARED(PQExpBuffer buf)
4466 : {
4467 0 : appendPQExpBuffer(buf,
4468 : "ROLLBACK PREPARED %s",
4469 : _("transaction_id"));
4470 0 : }
4471 :
4472 : static void
4473 0 : sql_help_ROLLBACK_TO_SAVEPOINT(PQExpBuffer buf)
4474 : {
4475 0 : appendPQExpBuffer(buf,
4476 : "ROLLBACK [ WORK | TRANSACTION ] TO [ SAVEPOINT ] %s",
4477 : _("savepoint_name"));
4478 0 : }
4479 :
4480 : static void
4481 0 : sql_help_SAVEPOINT(PQExpBuffer buf)
4482 : {
4483 0 : appendPQExpBuffer(buf,
4484 : "SAVEPOINT %s",
4485 : _("savepoint_name"));
4486 0 : }
4487 :
4488 : static void
4489 0 : sql_help_SECURITY_LABEL(PQExpBuffer buf)
4490 : {
4491 0 : appendPQExpBuffer(buf,
4492 : "SECURITY LABEL [ FOR %s ] ON\n"
4493 : "{\n"
4494 : " TABLE %s |\n"
4495 : " COLUMN %s.%s |\n"
4496 : " AGGREGATE %s ( %s ) |\n"
4497 : " DATABASE %s |\n"
4498 : " DOMAIN %s |\n"
4499 : " EVENT TRIGGER %s |\n"
4500 : " FOREIGN TABLE %s |\n"
4501 : " FUNCTION %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
4502 : " LARGE OBJECT %s |\n"
4503 : " MATERIALIZED VIEW %s |\n"
4504 : " [ PROCEDURAL ] LANGUAGE %s |\n"
4505 : " PROCEDURE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
4506 : " PUBLICATION %s |\n"
4507 : " ROLE %s |\n"
4508 : " ROUTINE %s [ ( [ [ %s ] [ %s ] %s [, ...] ] ) ] |\n"
4509 : " SCHEMA %s |\n"
4510 : " SEQUENCE %s |\n"
4511 : " SUBSCRIPTION %s |\n"
4512 : " TABLESPACE %s |\n"
4513 : " TYPE %s |\n"
4514 : " VIEW %s\n"
4515 : "} IS { %s | NULL }\n"
4516 : "\n"
4517 : "%s\n"
4518 : "\n"
4519 : "* |\n"
4520 : "[ %s ] [ %s ] %s [ , ... ] |\n"
4521 : "[ [ %s ] [ %s ] %s [ , ... ] ] ORDER BY [ %s ] [ %s ] %s [ , ... ]",
4522 : _("provider"),
4523 : _("object_name"),
4524 : _("table_name"),
4525 : _("column_name"),
4526 : _("aggregate_name"),
4527 : _("aggregate_signature"),
4528 : _("object_name"),
4529 : _("object_name"),
4530 : _("object_name"),
4531 : _("object_name"),
4532 : _("function_name"),
4533 : _("argmode"),
4534 : _("argname"),
4535 : _("argtype"),
4536 : _("large_object_oid"),
4537 : _("object_name"),
4538 : _("object_name"),
4539 : _("procedure_name"),
4540 : _("argmode"),
4541 : _("argname"),
4542 : _("argtype"),
4543 : _("object_name"),
4544 : _("object_name"),
4545 : _("routine_name"),
4546 : _("argmode"),
4547 : _("argname"),
4548 : _("argtype"),
4549 : _("object_name"),
4550 : _("object_name"),
4551 : _("object_name"),
4552 : _("object_name"),
4553 : _("object_name"),
4554 : _("object_name"),
4555 : _("string_literal"),
4556 : _("where aggregate_signature is:"),
4557 : _("argmode"),
4558 : _("argname"),
4559 : _("argtype"),
4560 : _("argmode"),
4561 : _("argname"),
4562 : _("argtype"),
4563 : _("argmode"),
4564 : _("argname"),
4565 : _("argtype"));
4566 0 : }
4567 :
4568 : static void
4569 2 : sql_help_SELECT(PQExpBuffer buf)
4570 : {
4571 2 : appendPQExpBuffer(buf,
4572 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
4573 : "SELECT [ ALL | DISTINCT [ ON ( %s [, ...] ) ] ]\n"
4574 : " [ { * | %s [ [ AS ] %s ] } [, ...] ]\n"
4575 : " [ FROM %s [, ...] ]\n"
4576 : " [ WHERE %s ]\n"
4577 : " [ GROUP BY [ ALL | DISTINCT ] %s [, ...] ]\n"
4578 : " [ HAVING %s ]\n"
4579 : " [ WINDOW %s AS ( %s ) [, ...] ]\n"
4580 : " [ { UNION | INTERSECT | EXCEPT } [ ALL | DISTINCT ] %s ]\n"
4581 : " [ ORDER BY %s [ ASC | DESC | USING %s ] [ NULLS { FIRST | LAST } ] [, ...] ]\n"
4582 : " [ LIMIT { %s | ALL } ]\n"
4583 : " [ OFFSET %s [ ROW | ROWS ] ]\n"
4584 : " [ FETCH { FIRST | NEXT } [ %s ] { ROW | ROWS } { ONLY | WITH TIES } ]\n"
4585 : " [ FOR { UPDATE | NO KEY UPDATE | SHARE | KEY SHARE } [ OF %s [, ...] ] [ NOWAIT | SKIP LOCKED ] [...] ]\n"
4586 : "\n"
4587 : "%s\n"
4588 : "\n"
4589 : " [ ONLY ] %s [ * ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4590 : " [ TABLESAMPLE %s ( %s [, ...] ) [ REPEATABLE ( %s ) ] ]\n"
4591 : " [ LATERAL ] ( %s ) [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4592 : " %s [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4593 : " [ LATERAL ] %s ( [ %s [, ...] ] )\n"
4594 : " [ WITH ORDINALITY ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4595 : " [ LATERAL ] %s ( [ %s [, ...] ] ) [ AS ] %s ( %s [, ...] )\n"
4596 : " [ LATERAL ] %s ( [ %s [, ...] ] ) AS ( %s [, ...] )\n"
4597 : " [ LATERAL ] ROWS FROM( %s ( [ %s [, ...] ] ) [ AS ( %s [, ...] ) ] [, ...] )\n"
4598 : " [ WITH ORDINALITY ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4599 : " %s %s %s { ON %s | USING ( %s [, ...] ) [ AS %s ] }\n"
4600 : " %s NATURAL %s %s\n"
4601 : " %s CROSS JOIN %s\n"
4602 : "\n"
4603 : "%s\n"
4604 : "\n"
4605 : " ( )\n"
4606 : " %s\n"
4607 : " ( %s [, ...] )\n"
4608 : " ROLLUP ( { %s | ( %s [, ...] ) } [, ...] )\n"
4609 : " CUBE ( { %s | ( %s [, ...] ) } [, ...] )\n"
4610 : " GROUPING SETS ( %s [, ...] )\n"
4611 : "\n"
4612 : "%s\n"
4613 : "\n"
4614 : " %s [ ( %s [, ...] ) ] AS [ [ NOT ] MATERIALIZED ] ( %s | %s | %s | %s | %s | %s )\n"
4615 : " [ SEARCH { BREADTH | DEPTH } FIRST BY %s [, ...] SET %s ]\n"
4616 : " [ CYCLE %s [, ...] SET %s [ TO %s DEFAULT %s ] USING %s ]\n"
4617 : "\n"
4618 : "TABLE [ ONLY ] %s [ * ]",
4619 : _("with_query"),
4620 : _("expression"),
4621 : _("expression"),
4622 : _("output_name"),
4623 : _("from_item"),
4624 : _("condition"),
4625 : _("grouping_element"),
4626 : _("condition"),
4627 : _("window_name"),
4628 : _("window_definition"),
4629 : _("select"),
4630 : _("expression"),
4631 : _("operator"),
4632 : _("count"),
4633 : _("start"),
4634 : _("count"),
4635 : _("from_reference"),
4636 : _("where from_item can be one of:"),
4637 : _("table_name"),
4638 : _("alias"),
4639 : _("column_alias"),
4640 : _("sampling_method"),
4641 : _("argument"),
4642 : _("seed"),
4643 : _("select"),
4644 : _("alias"),
4645 : _("column_alias"),
4646 : _("with_query_name"),
4647 : _("alias"),
4648 : _("column_alias"),
4649 : _("function_name"),
4650 : _("argument"),
4651 : _("alias"),
4652 : _("column_alias"),
4653 : _("function_name"),
4654 : _("argument"),
4655 : _("alias"),
4656 : _("column_definition"),
4657 : _("function_name"),
4658 : _("argument"),
4659 : _("column_definition"),
4660 : _("function_name"),
4661 : _("argument"),
4662 : _("column_definition"),
4663 : _("alias"),
4664 : _("column_alias"),
4665 : _("from_item"),
4666 : _("join_type"),
4667 : _("from_item"),
4668 : _("join_condition"),
4669 : _("join_column"),
4670 : _("join_using_alias"),
4671 : _("from_item"),
4672 : _("join_type"),
4673 : _("from_item"),
4674 : _("from_item"),
4675 : _("from_item"),
4676 : _("and grouping_element can be one of:"),
4677 : _("expression"),
4678 : _("expression"),
4679 : _("expression"),
4680 : _("expression"),
4681 : _("expression"),
4682 : _("expression"),
4683 : _("grouping_element"),
4684 : _("and with_query is:"),
4685 : _("with_query_name"),
4686 : _("column_name"),
4687 : _("select"),
4688 : _("values"),
4689 : _("insert"),
4690 : _("update"),
4691 : _("delete"),
4692 : _("merge"),
4693 : _("column_name"),
4694 : _("search_seq_col_name"),
4695 : _("column_name"),
4696 : _("cycle_mark_col_name"),
4697 : _("cycle_mark_value"),
4698 : _("cycle_mark_default"),
4699 : _("cycle_path_col_name"),
4700 : _("table_name"));
4701 2 : }
4702 :
4703 : static void
4704 0 : sql_help_SELECT_INTO(PQExpBuffer buf)
4705 : {
4706 0 : appendPQExpBuffer(buf,
4707 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
4708 : "SELECT [ ALL | DISTINCT [ ON ( %s [, ...] ) ] ]\n"
4709 : " [ { * | %s [ [ AS ] %s ] } [, ...] ]\n"
4710 : " INTO [ TEMPORARY | TEMP | UNLOGGED ] [ TABLE ] %s\n"
4711 : " [ FROM %s [, ...] ]\n"
4712 : " [ WHERE %s ]\n"
4713 : " [ GROUP BY %s [, ...] ]\n"
4714 : " [ HAVING %s ]\n"
4715 : " [ WINDOW %s AS ( %s ) [, ...] ]\n"
4716 : " [ { UNION | INTERSECT | EXCEPT } [ ALL | DISTINCT ] %s ]\n"
4717 : " [ ORDER BY %s [ ASC | DESC | USING %s ] [ NULLS { FIRST | LAST } ] [, ...] ]\n"
4718 : " [ LIMIT { %s | ALL } ]\n"
4719 : " [ OFFSET %s [ ROW | ROWS ] ]\n"
4720 : " [ FETCH { FIRST | NEXT } [ %s ] { ROW | ROWS } ONLY ]\n"
4721 : " [ FOR { UPDATE | SHARE } [ OF %s [, ...] ] [ NOWAIT ] [...] ]",
4722 : _("with_query"),
4723 : _("expression"),
4724 : _("expression"),
4725 : _("output_name"),
4726 : _("new_table"),
4727 : _("from_item"),
4728 : _("condition"),
4729 : _("expression"),
4730 : _("condition"),
4731 : _("window_name"),
4732 : _("window_definition"),
4733 : _("select"),
4734 : _("expression"),
4735 : _("operator"),
4736 : _("count"),
4737 : _("start"),
4738 : _("count"),
4739 : _("table_name"));
4740 0 : }
4741 :
4742 : static void
4743 0 : sql_help_SET(PQExpBuffer buf)
4744 : {
4745 0 : appendPQExpBuffer(buf,
4746 : "SET [ SESSION | LOCAL ] %s { TO | = } { %s | '%s' | DEFAULT }\n"
4747 : "SET [ SESSION | LOCAL ] TIME ZONE { %s | '%s' | LOCAL | DEFAULT }",
4748 : _("configuration_parameter"),
4749 : _("value"),
4750 : _("value"),
4751 : _("value"),
4752 : _("value"));
4753 0 : }
4754 :
4755 : static void
4756 0 : sql_help_SET_CONSTRAINTS(PQExpBuffer buf)
4757 : {
4758 0 : appendPQExpBuffer(buf,
4759 : "SET CONSTRAINTS { ALL | %s [, ...] } { DEFERRED | IMMEDIATE }",
4760 : _("name"));
4761 0 : }
4762 :
4763 : static void
4764 0 : sql_help_SET_ROLE(PQExpBuffer buf)
4765 : {
4766 0 : appendPQExpBuffer(buf,
4767 : "SET [ SESSION | LOCAL ] ROLE %s\n"
4768 : "SET [ SESSION | LOCAL ] ROLE NONE\n"
4769 : "RESET ROLE",
4770 : _("role_name"));
4771 0 : }
4772 :
4773 : static void
4774 0 : sql_help_SET_SESSION_AUTHORIZATION(PQExpBuffer buf)
4775 : {
4776 0 : appendPQExpBuffer(buf,
4777 : "SET [ SESSION | LOCAL ] SESSION AUTHORIZATION %s\n"
4778 : "SET [ SESSION | LOCAL ] SESSION AUTHORIZATION DEFAULT\n"
4779 : "RESET SESSION AUTHORIZATION",
4780 : _("user_name"));
4781 0 : }
4782 :
4783 : static void
4784 0 : sql_help_SET_TRANSACTION(PQExpBuffer buf)
4785 : {
4786 0 : appendPQExpBuffer(buf,
4787 : "SET TRANSACTION %s [, ...]\n"
4788 : "SET TRANSACTION SNAPSHOT %s\n"
4789 : "SET SESSION CHARACTERISTICS AS TRANSACTION %s [, ...]\n"
4790 : "\n"
4791 : "%s\n"
4792 : "\n"
4793 : " ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED }\n"
4794 : " READ WRITE | READ ONLY\n"
4795 : " [ NOT ] DEFERRABLE",
4796 : _("transaction_mode"),
4797 : _("snapshot_id"),
4798 : _("transaction_mode"),
4799 : _("where transaction_mode is one of:"));
4800 0 : }
4801 :
4802 : static void
4803 0 : sql_help_SHOW(PQExpBuffer buf)
4804 : {
4805 0 : appendPQExpBuffer(buf,
4806 : "SHOW %s\n"
4807 : "SHOW ALL",
4808 : _("name"));
4809 0 : }
4810 :
4811 : static void
4812 0 : sql_help_START_TRANSACTION(PQExpBuffer buf)
4813 : {
4814 0 : appendPQExpBuffer(buf,
4815 : "START TRANSACTION [ %s [, ...] ]\n"
4816 : "\n"
4817 : "%s\n"
4818 : "\n"
4819 : " ISOLATION LEVEL { SERIALIZABLE | REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED }\n"
4820 : " READ WRITE | READ ONLY\n"
4821 : " [ NOT ] DEFERRABLE",
4822 : _("transaction_mode"),
4823 : _("where transaction_mode is one of:"));
4824 0 : }
4825 :
4826 : static void
4827 0 : sql_help_TABLE(PQExpBuffer buf)
4828 : {
4829 0 : appendPQExpBuffer(buf,
4830 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
4831 : "SELECT [ ALL | DISTINCT [ ON ( %s [, ...] ) ] ]\n"
4832 : " [ { * | %s [ [ AS ] %s ] } [, ...] ]\n"
4833 : " [ FROM %s [, ...] ]\n"
4834 : " [ WHERE %s ]\n"
4835 : " [ GROUP BY [ ALL | DISTINCT ] %s [, ...] ]\n"
4836 : " [ HAVING %s ]\n"
4837 : " [ WINDOW %s AS ( %s ) [, ...] ]\n"
4838 : " [ { UNION | INTERSECT | EXCEPT } [ ALL | DISTINCT ] %s ]\n"
4839 : " [ ORDER BY %s [ ASC | DESC | USING %s ] [ NULLS { FIRST | LAST } ] [, ...] ]\n"
4840 : " [ LIMIT { %s | ALL } ]\n"
4841 : " [ OFFSET %s [ ROW | ROWS ] ]\n"
4842 : " [ FETCH { FIRST | NEXT } [ %s ] { ROW | ROWS } { ONLY | WITH TIES } ]\n"
4843 : " [ FOR { UPDATE | NO KEY UPDATE | SHARE | KEY SHARE } [ OF %s [, ...] ] [ NOWAIT | SKIP LOCKED ] [...] ]\n"
4844 : "\n"
4845 : "%s\n"
4846 : "\n"
4847 : " [ ONLY ] %s [ * ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4848 : " [ TABLESAMPLE %s ( %s [, ...] ) [ REPEATABLE ( %s ) ] ]\n"
4849 : " [ LATERAL ] ( %s ) [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4850 : " %s [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4851 : " [ LATERAL ] %s ( [ %s [, ...] ] )\n"
4852 : " [ WITH ORDINALITY ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4853 : " [ LATERAL ] %s ( [ %s [, ...] ] ) [ AS ] %s ( %s [, ...] )\n"
4854 : " [ LATERAL ] %s ( [ %s [, ...] ] ) AS ( %s [, ...] )\n"
4855 : " [ LATERAL ] ROWS FROM( %s ( [ %s [, ...] ] ) [ AS ( %s [, ...] ) ] [, ...] )\n"
4856 : " [ WITH ORDINALITY ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
4857 : " %s %s %s { ON %s | USING ( %s [, ...] ) [ AS %s ] }\n"
4858 : " %s NATURAL %s %s\n"
4859 : " %s CROSS JOIN %s\n"
4860 : "\n"
4861 : "%s\n"
4862 : "\n"
4863 : " ( )\n"
4864 : " %s\n"
4865 : " ( %s [, ...] )\n"
4866 : " ROLLUP ( { %s | ( %s [, ...] ) } [, ...] )\n"
4867 : " CUBE ( { %s | ( %s [, ...] ) } [, ...] )\n"
4868 : " GROUPING SETS ( %s [, ...] )\n"
4869 : "\n"
4870 : "%s\n"
4871 : "\n"
4872 : " %s [ ( %s [, ...] ) ] AS [ [ NOT ] MATERIALIZED ] ( %s | %s | %s | %s | %s | %s )\n"
4873 : " [ SEARCH { BREADTH | DEPTH } FIRST BY %s [, ...] SET %s ]\n"
4874 : " [ CYCLE %s [, ...] SET %s [ TO %s DEFAULT %s ] USING %s ]\n"
4875 : "\n"
4876 : "TABLE [ ONLY ] %s [ * ]",
4877 : _("with_query"),
4878 : _("expression"),
4879 : _("expression"),
4880 : _("output_name"),
4881 : _("from_item"),
4882 : _("condition"),
4883 : _("grouping_element"),
4884 : _("condition"),
4885 : _("window_name"),
4886 : _("window_definition"),
4887 : _("select"),
4888 : _("expression"),
4889 : _("operator"),
4890 : _("count"),
4891 : _("start"),
4892 : _("count"),
4893 : _("from_reference"),
4894 : _("where from_item can be one of:"),
4895 : _("table_name"),
4896 : _("alias"),
4897 : _("column_alias"),
4898 : _("sampling_method"),
4899 : _("argument"),
4900 : _("seed"),
4901 : _("select"),
4902 : _("alias"),
4903 : _("column_alias"),
4904 : _("with_query_name"),
4905 : _("alias"),
4906 : _("column_alias"),
4907 : _("function_name"),
4908 : _("argument"),
4909 : _("alias"),
4910 : _("column_alias"),
4911 : _("function_name"),
4912 : _("argument"),
4913 : _("alias"),
4914 : _("column_definition"),
4915 : _("function_name"),
4916 : _("argument"),
4917 : _("column_definition"),
4918 : _("function_name"),
4919 : _("argument"),
4920 : _("column_definition"),
4921 : _("alias"),
4922 : _("column_alias"),
4923 : _("from_item"),
4924 : _("join_type"),
4925 : _("from_item"),
4926 : _("join_condition"),
4927 : _("join_column"),
4928 : _("join_using_alias"),
4929 : _("from_item"),
4930 : _("join_type"),
4931 : _("from_item"),
4932 : _("from_item"),
4933 : _("from_item"),
4934 : _("and grouping_element can be one of:"),
4935 : _("expression"),
4936 : _("expression"),
4937 : _("expression"),
4938 : _("expression"),
4939 : _("expression"),
4940 : _("expression"),
4941 : _("grouping_element"),
4942 : _("and with_query is:"),
4943 : _("with_query_name"),
4944 : _("column_name"),
4945 : _("select"),
4946 : _("values"),
4947 : _("insert"),
4948 : _("update"),
4949 : _("delete"),
4950 : _("merge"),
4951 : _("column_name"),
4952 : _("search_seq_col_name"),
4953 : _("column_name"),
4954 : _("cycle_mark_col_name"),
4955 : _("cycle_mark_value"),
4956 : _("cycle_mark_default"),
4957 : _("cycle_path_col_name"),
4958 : _("table_name"));
4959 0 : }
4960 :
4961 : static void
4962 0 : sql_help_TRUNCATE(PQExpBuffer buf)
4963 : {
4964 0 : appendPQExpBuffer(buf,
4965 : "TRUNCATE [ TABLE ] [ ONLY ] %s [ * ] [, ... ]\n"
4966 : " [ RESTART IDENTITY | CONTINUE IDENTITY ] [ CASCADE | RESTRICT ]",
4967 : _("name"));
4968 0 : }
4969 :
4970 : static void
4971 0 : sql_help_UNLISTEN(PQExpBuffer buf)
4972 : {
4973 0 : appendPQExpBuffer(buf,
4974 : "UNLISTEN { %s | * }",
4975 : _("channel"));
4976 0 : }
4977 :
4978 : static void
4979 0 : sql_help_UPDATE(PQExpBuffer buf)
4980 : {
4981 0 : appendPQExpBuffer(buf,
4982 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
4983 : "UPDATE [ ONLY ] %s [ * ] [ [ AS ] %s ]\n"
4984 : " SET { %s = { %s | DEFAULT } |\n"
4985 : " ( %s [, ...] ) = [ ROW ] ( { %s | DEFAULT } [, ...] ) |\n"
4986 : " ( %s [, ...] ) = ( %s )\n"
4987 : " } [, ...]\n"
4988 : " [ FROM %s [, ...] ]\n"
4989 : " [ WHERE %s | WHERE CURRENT OF %s ]\n"
4990 : " [ RETURNING [ WITH ( { OLD | NEW } AS %s [, ...] ) ]\n"
4991 : " { * | %s [ [ AS ] %s ] } [, ...] ]",
4992 : _("with_query"),
4993 : _("table_name"),
4994 : _("alias"),
4995 : _("column_name"),
4996 : _("expression"),
4997 : _("column_name"),
4998 : _("expression"),
4999 : _("column_name"),
5000 : _("sub-SELECT"),
5001 : _("from_item"),
5002 : _("condition"),
5003 : _("cursor_name"),
5004 : _("output_alias"),
5005 : _("output_expression"),
5006 : _("output_name"));
5007 0 : }
5008 :
5009 : static void
5010 0 : sql_help_VACUUM(PQExpBuffer buf)
5011 : {
5012 0 : appendPQExpBuffer(buf,
5013 : "VACUUM [ ( %s [, ...] ) ] [ %s [, ...] ]\n"
5014 : "\n"
5015 : "%s\n"
5016 : "\n"
5017 : " FULL [ %s ]\n"
5018 : " FREEZE [ %s ]\n"
5019 : " VERBOSE [ %s ]\n"
5020 : " ANALYZE [ %s ]\n"
5021 : " DISABLE_PAGE_SKIPPING [ %s ]\n"
5022 : " SKIP_LOCKED [ %s ]\n"
5023 : " INDEX_CLEANUP { AUTO | ON | OFF }\n"
5024 : " PROCESS_MAIN [ %s ]\n"
5025 : " PROCESS_TOAST [ %s ]\n"
5026 : " TRUNCATE [ %s ]\n"
5027 : " PARALLEL %s\n"
5028 : " SKIP_DATABASE_STATS [ %s ]\n"
5029 : " ONLY_DATABASE_STATS [ %s ]\n"
5030 : " BUFFER_USAGE_LIMIT %s\n"
5031 : "\n"
5032 : "%s\n"
5033 : "\n"
5034 : " [ ONLY ] %s [ * ] [ ( %s [, ...] ) ]",
5035 : _("option"),
5036 : _("table_and_columns"),
5037 : _("where option can be one of:"),
5038 : _("boolean"),
5039 : _("boolean"),
5040 : _("boolean"),
5041 : _("boolean"),
5042 : _("boolean"),
5043 : _("boolean"),
5044 : _("boolean"),
5045 : _("boolean"),
5046 : _("boolean"),
5047 : _("integer"),
5048 : _("boolean"),
5049 : _("boolean"),
5050 : _("size"),
5051 : _("and table_and_columns is:"),
5052 : _("table_name"),
5053 : _("column_name"));
5054 0 : }
5055 :
5056 : static void
5057 0 : sql_help_VALUES(PQExpBuffer buf)
5058 : {
5059 0 : appendPQExpBuffer(buf,
5060 : "VALUES ( %s [, ...] ) [, ...]\n"
5061 : " [ ORDER BY %s [ ASC | DESC | USING %s ] [, ...] ]\n"
5062 : " [ LIMIT { %s | ALL } ]\n"
5063 : " [ OFFSET %s [ ROW | ROWS ] ]\n"
5064 : " [ FETCH { FIRST | NEXT } [ %s ] { ROW | ROWS } ONLY ]",
5065 : _("expression"),
5066 : _("sort_expression"),
5067 : _("operator"),
5068 : _("count"),
5069 : _("start"),
5070 : _("count"));
5071 0 : }
5072 :
5073 : static void
5074 0 : sql_help_WITH(PQExpBuffer buf)
5075 : {
5076 0 : appendPQExpBuffer(buf,
5077 : "[ WITH [ RECURSIVE ] %s [, ...] ]\n"
5078 : "SELECT [ ALL | DISTINCT [ ON ( %s [, ...] ) ] ]\n"
5079 : " [ { * | %s [ [ AS ] %s ] } [, ...] ]\n"
5080 : " [ FROM %s [, ...] ]\n"
5081 : " [ WHERE %s ]\n"
5082 : " [ GROUP BY [ ALL | DISTINCT ] %s [, ...] ]\n"
5083 : " [ HAVING %s ]\n"
5084 : " [ WINDOW %s AS ( %s ) [, ...] ]\n"
5085 : " [ { UNION | INTERSECT | EXCEPT } [ ALL | DISTINCT ] %s ]\n"
5086 : " [ ORDER BY %s [ ASC | DESC | USING %s ] [ NULLS { FIRST | LAST } ] [, ...] ]\n"
5087 : " [ LIMIT { %s | ALL } ]\n"
5088 : " [ OFFSET %s [ ROW | ROWS ] ]\n"
5089 : " [ FETCH { FIRST | NEXT } [ %s ] { ROW | ROWS } { ONLY | WITH TIES } ]\n"
5090 : " [ FOR { UPDATE | NO KEY UPDATE | SHARE | KEY SHARE } [ OF %s [, ...] ] [ NOWAIT | SKIP LOCKED ] [...] ]\n"
5091 : "\n"
5092 : "%s\n"
5093 : "\n"
5094 : " [ ONLY ] %s [ * ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
5095 : " [ TABLESAMPLE %s ( %s [, ...] ) [ REPEATABLE ( %s ) ] ]\n"
5096 : " [ LATERAL ] ( %s ) [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
5097 : " %s [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
5098 : " [ LATERAL ] %s ( [ %s [, ...] ] )\n"
5099 : " [ WITH ORDINALITY ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
5100 : " [ LATERAL ] %s ( [ %s [, ...] ] ) [ AS ] %s ( %s [, ...] )\n"
5101 : " [ LATERAL ] %s ( [ %s [, ...] ] ) AS ( %s [, ...] )\n"
5102 : " [ LATERAL ] ROWS FROM( %s ( [ %s [, ...] ] ) [ AS ( %s [, ...] ) ] [, ...] )\n"
5103 : " [ WITH ORDINALITY ] [ [ AS ] %s [ ( %s [, ...] ) ] ]\n"
5104 : " %s %s %s { ON %s | USING ( %s [, ...] ) [ AS %s ] }\n"
5105 : " %s NATURAL %s %s\n"
5106 : " %s CROSS JOIN %s\n"
5107 : "\n"
5108 : "%s\n"
5109 : "\n"
5110 : " ( )\n"
5111 : " %s\n"
5112 : " ( %s [, ...] )\n"
5113 : " ROLLUP ( { %s | ( %s [, ...] ) } [, ...] )\n"
5114 : " CUBE ( { %s | ( %s [, ...] ) } [, ...] )\n"
5115 : " GROUPING SETS ( %s [, ...] )\n"
5116 : "\n"
5117 : "%s\n"
5118 : "\n"
5119 : " %s [ ( %s [, ...] ) ] AS [ [ NOT ] MATERIALIZED ] ( %s | %s | %s | %s | %s | %s )\n"
5120 : " [ SEARCH { BREADTH | DEPTH } FIRST BY %s [, ...] SET %s ]\n"
5121 : " [ CYCLE %s [, ...] SET %s [ TO %s DEFAULT %s ] USING %s ]\n"
5122 : "\n"
5123 : "TABLE [ ONLY ] %s [ * ]",
5124 : _("with_query"),
5125 : _("expression"),
5126 : _("expression"),
5127 : _("output_name"),
5128 : _("from_item"),
5129 : _("condition"),
5130 : _("grouping_element"),
5131 : _("condition"),
5132 : _("window_name"),
5133 : _("window_definition"),
5134 : _("select"),
5135 : _("expression"),
5136 : _("operator"),
5137 : _("count"),
5138 : _("start"),
5139 : _("count"),
5140 : _("from_reference"),
5141 : _("where from_item can be one of:"),
5142 : _("table_name"),
5143 : _("alias"),
5144 : _("column_alias"),
5145 : _("sampling_method"),
5146 : _("argument"),
5147 : _("seed"),
5148 : _("select"),
5149 : _("alias"),
5150 : _("column_alias"),
5151 : _("with_query_name"),
5152 : _("alias"),
5153 : _("column_alias"),
5154 : _("function_name"),
5155 : _("argument"),
5156 : _("alias"),
5157 : _("column_alias"),
5158 : _("function_name"),
5159 : _("argument"),
5160 : _("alias"),
5161 : _("column_definition"),
5162 : _("function_name"),
5163 : _("argument"),
5164 : _("column_definition"),
5165 : _("function_name"),
5166 : _("argument"),
5167 : _("column_definition"),
5168 : _("alias"),
5169 : _("column_alias"),
5170 : _("from_item"),
5171 : _("join_type"),
5172 : _("from_item"),
5173 : _("join_condition"),
5174 : _("join_column"),
5175 : _("join_using_alias"),
5176 : _("from_item"),
5177 : _("join_type"),
5178 : _("from_item"),
5179 : _("from_item"),
5180 : _("from_item"),
5181 : _("and grouping_element can be one of:"),
5182 : _("expression"),
5183 : _("expression"),
5184 : _("expression"),
5185 : _("expression"),
5186 : _("expression"),
5187 : _("expression"),
5188 : _("grouping_element"),
5189 : _("and with_query is:"),
5190 : _("with_query_name"),
5191 : _("column_name"),
5192 : _("select"),
5193 : _("values"),
5194 : _("insert"),
5195 : _("update"),
5196 : _("delete"),
5197 : _("merge"),
5198 : _("column_name"),
5199 : _("search_seq_col_name"),
5200 : _("column_name"),
5201 : _("cycle_mark_col_name"),
5202 : _("cycle_mark_value"),
5203 : _("cycle_mark_default"),
5204 : _("cycle_path_col_name"),
5205 : _("table_name"));
5206 0 : }
5207 :
5208 :
5209 : const struct _helpStruct QL_HELP[] = {
5210 : {"ABORT",
5211 : N_("abort the current transaction"),
5212 : "sql-abort",
5213 : sql_help_ABORT,
5214 : 0},
5215 :
5216 : {"ALTER AGGREGATE",
5217 : N_("change the definition of an aggregate function"),
5218 : "sql-alteraggregate",
5219 : sql_help_ALTER_AGGREGATE,
5220 : 9},
5221 :
5222 : {"ALTER COLLATION",
5223 : N_("change the definition of a collation"),
5224 : "sql-altercollation",
5225 : sql_help_ALTER_COLLATION,
5226 : 4},
5227 :
5228 : {"ALTER CONVERSION",
5229 : N_("change the definition of a conversion"),
5230 : "sql-alterconversion",
5231 : sql_help_ALTER_CONVERSION,
5232 : 2},
5233 :
5234 : {"ALTER DATABASE",
5235 : N_("change a database"),
5236 : "sql-alterdatabase",
5237 : sql_help_ALTER_DATABASE,
5238 : 19},
5239 :
5240 : {"ALTER DEFAULT PRIVILEGES",
5241 : N_("define default access privileges"),
5242 : "sql-alterdefaultprivileges",
5243 : sql_help_ALTER_DEFAULT_PRIVILEGES,
5244 : 61},
5245 :
5246 : {"ALTER DOMAIN",
5247 : N_("change the definition of a domain"),
5248 : "sql-alterdomain",
5249 : sql_help_ALTER_DOMAIN,
5250 : 22},
5251 :
5252 : {"ALTER EVENT TRIGGER",
5253 : N_("change the definition of an event trigger"),
5254 : "sql-altereventtrigger",
5255 : sql_help_ALTER_EVENT_TRIGGER,
5256 : 3},
5257 :
5258 : {"ALTER EXTENSION",
5259 : N_("change the definition of an extension"),
5260 : "sql-alterextension",
5261 : sql_help_ALTER_EXTENSION,
5262 : 40},
5263 :
5264 : {"ALTER FOREIGN DATA WRAPPER",
5265 : N_("change the definition of a foreign-data wrapper"),
5266 : "sql-alterforeigndatawrapper",
5267 : sql_help_ALTER_FOREIGN_DATA_WRAPPER,
5268 : 5},
5269 :
5270 : {"ALTER FOREIGN TABLE",
5271 : N_("change the definition of a foreign table"),
5272 : "sql-alterforeigntable",
5273 : sql_help_ALTER_FOREIGN_TABLE,
5274 : 33},
5275 :
5276 : {"ALTER FUNCTION",
5277 : N_("change the definition of a function"),
5278 : "sql-alterfunction",
5279 : sql_help_ALTER_FUNCTION,
5280 : 24},
5281 :
5282 : {"ALTER GROUP",
5283 : N_("change role name or membership"),
5284 : "sql-altergroup",
5285 : sql_help_ALTER_GROUP,
5286 : 10},
5287 :
5288 : {"ALTER INDEX",
5289 : N_("change the definition of an index"),
5290 : "sql-alterindex",
5291 : sql_help_ALTER_INDEX,
5292 : 9},
5293 :
5294 : {"ALTER LANGUAGE",
5295 : N_("change the definition of a procedural language"),
5296 : "sql-alterlanguage",
5297 : sql_help_ALTER_LANGUAGE,
5298 : 1},
5299 :
5300 : {"ALTER LARGE OBJECT",
5301 : N_("change the definition of a large object"),
5302 : "sql-alterlargeobject",
5303 : sql_help_ALTER_LARGE_OBJECT,
5304 : 0},
5305 :
5306 : {"ALTER MATERIALIZED VIEW",
5307 : N_("change the definition of a materialized view"),
5308 : "sql-altermaterializedview",
5309 : sql_help_ALTER_MATERIALIZED_VIEW,
5310 : 26},
5311 :
5312 : {"ALTER OPERATOR",
5313 : N_("change the definition of an operator"),
5314 : "sql-alteroperator",
5315 : sql_help_ALTER_OPERATOR,
5316 : 13},
5317 :
5318 : {"ALTER OPERATOR CLASS",
5319 : N_("change the definition of an operator class"),
5320 : "sql-alteropclass",
5321 : sql_help_ALTER_OPERATOR_CLASS,
5322 : 7},
5323 :
5324 : {"ALTER OPERATOR FAMILY",
5325 : N_("change the definition of an operator family"),
5326 : "sql-alteropfamily",
5327 : sql_help_ALTER_OPERATOR_FAMILY,
5328 : 19},
5329 :
5330 : {"ALTER POLICY",
5331 : N_("change the definition of a row-level security policy"),
5332 : "sql-alterpolicy",
5333 : sql_help_ALTER_POLICY,
5334 : 5},
5335 :
5336 : {"ALTER PROCEDURE",
5337 : N_("change the definition of a procedure"),
5338 : "sql-alterprocedure",
5339 : sql_help_ALTER_PROCEDURE,
5340 : 17},
5341 :
5342 : {"ALTER PUBLICATION",
5343 : N_("change the definition of a publication"),
5344 : "sql-alterpublication",
5345 : sql_help_ALTER_PUBLICATION,
5346 : 10},
5347 :
5348 : {"ALTER ROLE",
5349 : N_("change a database role"),
5350 : "sql-alterrole",
5351 : sql_help_ALTER_ROLE,
5352 : 27},
5353 :
5354 : {"ALTER ROUTINE",
5355 : N_("change the definition of a routine"),
5356 : "sql-alterroutine",
5357 : sql_help_ALTER_ROUTINE,
5358 : 22},
5359 :
5360 : {"ALTER RULE",
5361 : N_("change the definition of a rule"),
5362 : "sql-alterrule",
5363 : sql_help_ALTER_RULE,
5364 : 0},
5365 :
5366 : {"ALTER SCHEMA",
5367 : N_("change the definition of a schema"),
5368 : "sql-alterschema",
5369 : sql_help_ALTER_SCHEMA,
5370 : 1},
5371 :
5372 : {"ALTER SEQUENCE",
5373 : N_("change the definition of a sequence generator"),
5374 : "sql-altersequence",
5375 : sql_help_ALTER_SEQUENCE,
5376 : 12},
5377 :
5378 : {"ALTER SERVER",
5379 : N_("change the definition of a foreign server"),
5380 : "sql-alterserver",
5381 : sql_help_ALTER_SERVER,
5382 : 3},
5383 :
5384 : {"ALTER STATISTICS",
5385 : N_("change the definition of an extended statistics object"),
5386 : "sql-alterstatistics",
5387 : sql_help_ALTER_STATISTICS,
5388 : 3},
5389 :
5390 : {"ALTER SUBSCRIPTION",
5391 : N_("change the definition of a subscription"),
5392 : "sql-altersubscription",
5393 : sql_help_ALTER_SUBSCRIPTION,
5394 : 10},
5395 :
5396 : {"ALTER SYSTEM",
5397 : N_("change a server configuration parameter"),
5398 : "sql-altersystem",
5399 : sql_help_ALTER_SYSTEM,
5400 : 3},
5401 :
5402 : {"ALTER TABLE",
5403 : N_("change the definition of a table"),
5404 : "sql-altertable",
5405 : sql_help_ALTER_TABLE,
5406 : 119},
5407 :
5408 : {"ALTER TABLESPACE",
5409 : N_("change the definition of a tablespace"),
5410 : "sql-altertablespace",
5411 : sql_help_ALTER_TABLESPACE,
5412 : 3},
5413 :
5414 : {"ALTER TEXT SEARCH CONFIGURATION",
5415 : N_("change the definition of a text search configuration"),
5416 : "sql-altertsconfig",
5417 : sql_help_ALTER_TEXT_SEARCH_CONFIGURATION,
5418 : 12},
5419 :
5420 : {"ALTER TEXT SEARCH DICTIONARY",
5421 : N_("change the definition of a text search dictionary"),
5422 : "sql-altertsdictionary",
5423 : sql_help_ALTER_TEXT_SEARCH_DICTIONARY,
5424 : 5},
5425 :
5426 : {"ALTER TEXT SEARCH PARSER",
5427 : N_("change the definition of a text search parser"),
5428 : "sql-altertsparser",
5429 : sql_help_ALTER_TEXT_SEARCH_PARSER,
5430 : 1},
5431 :
5432 : {"ALTER TEXT SEARCH TEMPLATE",
5433 : N_("change the definition of a text search template"),
5434 : "sql-altertstemplate",
5435 : sql_help_ALTER_TEXT_SEARCH_TEMPLATE,
5436 : 1},
5437 :
5438 : {"ALTER TRIGGER",
5439 : N_("change the definition of a trigger"),
5440 : "sql-altertrigger",
5441 : sql_help_ALTER_TRIGGER,
5442 : 1},
5443 :
5444 : {"ALTER TYPE",
5445 : N_("change the definition of a type"),
5446 : "sql-altertype",
5447 : sql_help_ALTER_TYPE,
5448 : 13},
5449 :
5450 : {"ALTER USER",
5451 : N_("change a database role"),
5452 : "sql-alteruser",
5453 : sql_help_ALTER_USER,
5454 : 27},
5455 :
5456 : {"ALTER USER MAPPING",
5457 : N_("change the definition of a user mapping"),
5458 : "sql-alterusermapping",
5459 : sql_help_ALTER_USER_MAPPING,
5460 : 2},
5461 :
5462 : {"ALTER VIEW",
5463 : N_("change the definition of a view"),
5464 : "sql-alterview",
5465 : sql_help_ALTER_VIEW,
5466 : 7},
5467 :
5468 : {"ANALYZE",
5469 : N_("collect statistics about a database"),
5470 : "sql-analyze",
5471 : sql_help_ANALYZE,
5472 : 10},
5473 :
5474 : {"BEGIN",
5475 : N_("start a transaction block"),
5476 : "sql-begin",
5477 : sql_help_BEGIN,
5478 : 6},
5479 :
5480 : {"CALL",
5481 : N_("invoke a procedure"),
5482 : "sql-call",
5483 : sql_help_CALL,
5484 : 0},
5485 :
5486 : {"CHECKPOINT",
5487 : N_("force a write-ahead log checkpoint"),
5488 : "sql-checkpoint",
5489 : sql_help_CHECKPOINT,
5490 : 0},
5491 :
5492 : {"CLOSE",
5493 : N_("close a cursor"),
5494 : "sql-close",
5495 : sql_help_CLOSE,
5496 : 0},
5497 :
5498 : {"CLUSTER",
5499 : N_("cluster a table according to an index"),
5500 : "sql-cluster",
5501 : sql_help_CLUSTER,
5502 : 4},
5503 :
5504 : {"COMMENT",
5505 : N_("define or change the comment of an object"),
5506 : "sql-comment",
5507 : sql_help_COMMENT,
5508 : 51},
5509 :
5510 : {"COMMIT",
5511 : N_("commit the current transaction"),
5512 : "sql-commit",
5513 : sql_help_COMMIT,
5514 : 0},
5515 :
5516 : {"COMMIT PREPARED",
5517 : N_("commit a transaction that was earlier prepared for two-phase commit"),
5518 : "sql-commit-prepared",
5519 : sql_help_COMMIT_PREPARED,
5520 : 0},
5521 :
5522 : {"COPY",
5523 : N_("copy data between a file and a table"),
5524 : "sql-copy",
5525 : sql_help_COPY,
5526 : 25},
5527 :
5528 : {"CREATE ACCESS METHOD",
5529 : N_("define a new access method"),
5530 : "sql-create-access-method",
5531 : sql_help_CREATE_ACCESS_METHOD,
5532 : 2},
5533 :
5534 : {"CREATE AGGREGATE",
5535 : N_("define a new aggregate function"),
5536 : "sql-createaggregate",
5537 : sql_help_CREATE_AGGREGATE,
5538 : 59},
5539 :
5540 : {"CREATE CAST",
5541 : N_("define a new cast"),
5542 : "sql-createcast",
5543 : sql_help_CREATE_CAST,
5544 : 10},
5545 :
5546 : {"CREATE COLLATION",
5547 : N_("define a new collation"),
5548 : "sql-createcollation",
5549 : sql_help_CREATE_COLLATION,
5550 : 9},
5551 :
5552 : {"CREATE CONVERSION",
5553 : N_("define a new encoding conversion"),
5554 : "sql-createconversion",
5555 : sql_help_CREATE_CONVERSION,
5556 : 1},
5557 :
5558 : {"CREATE DATABASE",
5559 : N_("create a new database"),
5560 : "sql-createdatabase",
5561 : sql_help_CREATE_DATABASE,
5562 : 17},
5563 :
5564 : {"CREATE DOMAIN",
5565 : N_("define a new domain"),
5566 : "sql-createdomain",
5567 : sql_help_CREATE_DOMAIN,
5568 : 8},
5569 :
5570 : {"CREATE EVENT TRIGGER",
5571 : N_("define a new event trigger"),
5572 : "sql-createeventtrigger",
5573 : sql_help_CREATE_EVENT_TRIGGER,
5574 : 3},
5575 :
5576 : {"CREATE EXTENSION",
5577 : N_("install an extension"),
5578 : "sql-createextension",
5579 : sql_help_CREATE_EXTENSION,
5580 : 3},
5581 :
5582 : {"CREATE FOREIGN DATA WRAPPER",
5583 : N_("define a new foreign-data wrapper"),
5584 : "sql-createforeigndatawrapper",
5585 : sql_help_CREATE_FOREIGN_DATA_WRAPPER,
5586 : 3},
5587 :
5588 : {"CREATE FOREIGN TABLE",
5589 : N_("define a new foreign table"),
5590 : "sql-createforeigntable",
5591 : sql_help_CREATE_FOREIGN_TABLE,
5592 : 41},
5593 :
5594 : {"CREATE FUNCTION",
5595 : N_("define a new function"),
5596 : "sql-createfunction",
5597 : sql_help_CREATE_FUNCTION,
5598 : 19},
5599 :
5600 : {"CREATE GROUP",
5601 : N_("define a new database role"),
5602 : "sql-creategroup",
5603 : sql_help_CREATE_GROUP,
5604 : 19},
5605 :
5606 : {"CREATE INDEX",
5607 : N_("define a new index"),
5608 : "sql-createindex",
5609 : sql_help_CREATE_INDEX,
5610 : 6},
5611 :
5612 : {"CREATE LANGUAGE",
5613 : N_("define a new procedural language"),
5614 : "sql-createlanguage",
5615 : sql_help_CREATE_LANGUAGE,
5616 : 2},
5617 :
5618 : {"CREATE MATERIALIZED VIEW",
5619 : N_("define a new materialized view"),
5620 : "sql-creatematerializedview",
5621 : sql_help_CREATE_MATERIALIZED_VIEW,
5622 : 6},
5623 :
5624 : {"CREATE OPERATOR",
5625 : N_("define a new operator"),
5626 : "sql-createoperator",
5627 : sql_help_CREATE_OPERATOR,
5628 : 6},
5629 :
5630 : {"CREATE OPERATOR CLASS",
5631 : N_("define a new operator class"),
5632 : "sql-createopclass",
5633 : sql_help_CREATE_OPERATOR_CLASS,
5634 : 5},
5635 :
5636 : {"CREATE OPERATOR FAMILY",
5637 : N_("define a new operator family"),
5638 : "sql-createopfamily",
5639 : sql_help_CREATE_OPERATOR_FAMILY,
5640 : 0},
5641 :
5642 : {"CREATE POLICY",
5643 : N_("define a new row-level security policy for a table"),
5644 : "sql-createpolicy",
5645 : sql_help_CREATE_POLICY,
5646 : 5},
5647 :
5648 : {"CREATE PROCEDURE",
5649 : N_("define a new procedure"),
5650 : "sql-createprocedure",
5651 : sql_help_CREATE_PROCEDURE,
5652 : 9},
5653 :
5654 : {"CREATE PUBLICATION",
5655 : N_("define a new publication"),
5656 : "sql-createpublication",
5657 : sql_help_CREATE_PUBLICATION,
5658 : 8},
5659 :
5660 : {"CREATE ROLE",
5661 : N_("define a new database role"),
5662 : "sql-createrole",
5663 : sql_help_CREATE_ROLE,
5664 : 17},
5665 :
5666 : {"CREATE RULE",
5667 : N_("define a new rewrite rule"),
5668 : "sql-createrule",
5669 : sql_help_CREATE_RULE,
5670 : 6},
5671 :
5672 : {"CREATE SCHEMA",
5673 : N_("define a new schema"),
5674 : "sql-createschema",
5675 : sql_help_CREATE_SCHEMA,
5676 : 10},
5677 :
5678 : {"CREATE SEQUENCE",
5679 : N_("define a new sequence generator"),
5680 : "sql-createsequence",
5681 : sql_help_CREATE_SEQUENCE,
5682 : 7},
5683 :
5684 : {"CREATE SERVER",
5685 : N_("define a new foreign server"),
5686 : "sql-createserver",
5687 : sql_help_CREATE_SERVER,
5688 : 2},
5689 :
5690 : {"CREATE STATISTICS",
5691 : N_("define extended statistics"),
5692 : "sql-createstatistics",
5693 : sql_help_CREATE_STATISTICS,
5694 : 7},
5695 :
5696 : {"CREATE SUBSCRIPTION",
5697 : N_("define a new subscription"),
5698 : "sql-createsubscription",
5699 : sql_help_CREATE_SUBSCRIPTION,
5700 : 3},
5701 :
5702 : {"CREATE TABLE",
5703 : N_("define a new table"),
5704 : "sql-createtable",
5705 : sql_help_CREATE_TABLE,
5706 : 88},
5707 :
5708 : {"CREATE TABLE AS",
5709 : N_("define a new table from the results of a query"),
5710 : "sql-createtableas",
5711 : sql_help_CREATE_TABLE_AS,
5712 : 7},
5713 :
5714 : {"CREATE TABLESPACE",
5715 : N_("define a new tablespace"),
5716 : "sql-createtablespace",
5717 : sql_help_CREATE_TABLESPACE,
5718 : 3},
5719 :
5720 : {"CREATE TEXT SEARCH CONFIGURATION",
5721 : N_("define a new text search configuration"),
5722 : "sql-createtsconfig",
5723 : sql_help_CREATE_TEXT_SEARCH_CONFIGURATION,
5724 : 3},
5725 :
5726 : {"CREATE TEXT SEARCH DICTIONARY",
5727 : N_("define a new text search dictionary"),
5728 : "sql-createtsdictionary",
5729 : sql_help_CREATE_TEXT_SEARCH_DICTIONARY,
5730 : 3},
5731 :
5732 : {"CREATE TEXT SEARCH PARSER",
5733 : N_("define a new text search parser"),
5734 : "sql-createtsparser",
5735 : sql_help_CREATE_TEXT_SEARCH_PARSER,
5736 : 6},
5737 :
5738 : {"CREATE TEXT SEARCH TEMPLATE",
5739 : N_("define a new text search template"),
5740 : "sql-createtstemplate",
5741 : sql_help_CREATE_TEXT_SEARCH_TEMPLATE,
5742 : 3},
5743 :
5744 : {"CREATE TRANSFORM",
5745 : N_("define a new transform"),
5746 : "sql-createtransform",
5747 : sql_help_CREATE_TRANSFORM,
5748 : 3},
5749 :
5750 : {"CREATE TRIGGER",
5751 : N_("define a new trigger"),
5752 : "sql-createtrigger",
5753 : sql_help_CREATE_TRIGGER,
5754 : 14},
5755 :
5756 : {"CREATE TYPE",
5757 : N_("define a new data type"),
5758 : "sql-createtype",
5759 : sql_help_CREATE_TYPE,
5760 : 37},
5761 :
5762 : {"CREATE USER",
5763 : N_("define a new database role"),
5764 : "sql-createuser",
5765 : sql_help_CREATE_USER,
5766 : 19},
5767 :
5768 : {"CREATE USER MAPPING",
5769 : N_("define a new mapping of a user to a foreign server"),
5770 : "sql-createusermapping",
5771 : sql_help_CREATE_USER_MAPPING,
5772 : 2},
5773 :
5774 : {"CREATE VIEW",
5775 : N_("define a new view"),
5776 : "sql-createview",
5777 : sql_help_CREATE_VIEW,
5778 : 3},
5779 :
5780 : {"DEALLOCATE",
5781 : N_("deallocate a prepared statement"),
5782 : "sql-deallocate",
5783 : sql_help_DEALLOCATE,
5784 : 0},
5785 :
5786 : {"DECLARE",
5787 : N_("define a cursor"),
5788 : "sql-declare",
5789 : sql_help_DECLARE,
5790 : 1},
5791 :
5792 : {"DELETE",
5793 : N_("delete rows of a table"),
5794 : "sql-delete",
5795 : sql_help_DELETE,
5796 : 5},
5797 :
5798 : {"DISCARD",
5799 : N_("discard session state"),
5800 : "sql-discard",
5801 : sql_help_DISCARD,
5802 : 0},
5803 :
5804 : {"DO",
5805 : N_("execute an anonymous code block"),
5806 : "sql-do",
5807 : sql_help_DO,
5808 : 0},
5809 :
5810 : {"DROP ACCESS METHOD",
5811 : N_("remove an access method"),
5812 : "sql-drop-access-method",
5813 : sql_help_DROP_ACCESS_METHOD,
5814 : 0},
5815 :
5816 : {"DROP AGGREGATE",
5817 : N_("remove an aggregate function"),
5818 : "sql-dropaggregate",
5819 : sql_help_DROP_AGGREGATE,
5820 : 6},
5821 :
5822 : {"DROP CAST",
5823 : N_("remove a cast"),
5824 : "sql-dropcast",
5825 : sql_help_DROP_CAST,
5826 : 0},
5827 :
5828 : {"DROP COLLATION",
5829 : N_("remove a collation"),
5830 : "sql-dropcollation",
5831 : sql_help_DROP_COLLATION,
5832 : 0},
5833 :
5834 : {"DROP CONVERSION",
5835 : N_("remove a conversion"),
5836 : "sql-dropconversion",
5837 : sql_help_DROP_CONVERSION,
5838 : 0},
5839 :
5840 : {"DROP DATABASE",
5841 : N_("remove a database"),
5842 : "sql-dropdatabase",
5843 : sql_help_DROP_DATABASE,
5844 : 4},
5845 :
5846 : {"DROP DOMAIN",
5847 : N_("remove a domain"),
5848 : "sql-dropdomain",
5849 : sql_help_DROP_DOMAIN,
5850 : 0},
5851 :
5852 : {"DROP EVENT TRIGGER",
5853 : N_("remove an event trigger"),
5854 : "sql-dropeventtrigger",
5855 : sql_help_DROP_EVENT_TRIGGER,
5856 : 0},
5857 :
5858 : {"DROP EXTENSION",
5859 : N_("remove an extension"),
5860 : "sql-dropextension",
5861 : sql_help_DROP_EXTENSION,
5862 : 0},
5863 :
5864 : {"DROP FOREIGN DATA WRAPPER",
5865 : N_("remove a foreign-data wrapper"),
5866 : "sql-dropforeigndatawrapper",
5867 : sql_help_DROP_FOREIGN_DATA_WRAPPER,
5868 : 0},
5869 :
5870 : {"DROP FOREIGN TABLE",
5871 : N_("remove a foreign table"),
5872 : "sql-dropforeigntable",
5873 : sql_help_DROP_FOREIGN_TABLE,
5874 : 0},
5875 :
5876 : {"DROP FUNCTION",
5877 : N_("remove a function"),
5878 : "sql-dropfunction",
5879 : sql_help_DROP_FUNCTION,
5880 : 1},
5881 :
5882 : {"DROP GROUP",
5883 : N_("remove a database role"),
5884 : "sql-dropgroup",
5885 : sql_help_DROP_GROUP,
5886 : 0},
5887 :
5888 : {"DROP INDEX",
5889 : N_("remove an index"),
5890 : "sql-dropindex",
5891 : sql_help_DROP_INDEX,
5892 : 0},
5893 :
5894 : {"DROP LANGUAGE",
5895 : N_("remove a procedural language"),
5896 : "sql-droplanguage",
5897 : sql_help_DROP_LANGUAGE,
5898 : 0},
5899 :
5900 : {"DROP MATERIALIZED VIEW",
5901 : N_("remove a materialized view"),
5902 : "sql-dropmaterializedview",
5903 : sql_help_DROP_MATERIALIZED_VIEW,
5904 : 0},
5905 :
5906 : {"DROP OPERATOR",
5907 : N_("remove an operator"),
5908 : "sql-dropoperator",
5909 : sql_help_DROP_OPERATOR,
5910 : 0},
5911 :
5912 : {"DROP OPERATOR CLASS",
5913 : N_("remove an operator class"),
5914 : "sql-dropopclass",
5915 : sql_help_DROP_OPERATOR_CLASS,
5916 : 0},
5917 :
5918 : {"DROP OPERATOR FAMILY",
5919 : N_("remove an operator family"),
5920 : "sql-dropopfamily",
5921 : sql_help_DROP_OPERATOR_FAMILY,
5922 : 0},
5923 :
5924 : {"DROP OWNED",
5925 : N_("remove database objects owned by a database role"),
5926 : "sql-drop-owned",
5927 : sql_help_DROP_OWNED,
5928 : 0},
5929 :
5930 : {"DROP POLICY",
5931 : N_("remove a row-level security policy from a table"),
5932 : "sql-droppolicy",
5933 : sql_help_DROP_POLICY,
5934 : 0},
5935 :
5936 : {"DROP PROCEDURE",
5937 : N_("remove a procedure"),
5938 : "sql-dropprocedure",
5939 : sql_help_DROP_PROCEDURE,
5940 : 1},
5941 :
5942 : {"DROP PUBLICATION",
5943 : N_("remove a publication"),
5944 : "sql-droppublication",
5945 : sql_help_DROP_PUBLICATION,
5946 : 0},
5947 :
5948 : {"DROP ROLE",
5949 : N_("remove a database role"),
5950 : "sql-droprole",
5951 : sql_help_DROP_ROLE,
5952 : 0},
5953 :
5954 : {"DROP ROUTINE",
5955 : N_("remove a routine"),
5956 : "sql-droproutine",
5957 : sql_help_DROP_ROUTINE,
5958 : 1},
5959 :
5960 : {"DROP RULE",
5961 : N_("remove a rewrite rule"),
5962 : "sql-droprule",
5963 : sql_help_DROP_RULE,
5964 : 0},
5965 :
5966 : {"DROP SCHEMA",
5967 : N_("remove a schema"),
5968 : "sql-dropschema",
5969 : sql_help_DROP_SCHEMA,
5970 : 0},
5971 :
5972 : {"DROP SEQUENCE",
5973 : N_("remove a sequence"),
5974 : "sql-dropsequence",
5975 : sql_help_DROP_SEQUENCE,
5976 : 0},
5977 :
5978 : {"DROP SERVER",
5979 : N_("remove a foreign server descriptor"),
5980 : "sql-dropserver",
5981 : sql_help_DROP_SERVER,
5982 : 0},
5983 :
5984 : {"DROP STATISTICS",
5985 : N_("remove extended statistics"),
5986 : "sql-dropstatistics",
5987 : sql_help_DROP_STATISTICS,
5988 : 0},
5989 :
5990 : {"DROP SUBSCRIPTION",
5991 : N_("remove a subscription"),
5992 : "sql-dropsubscription",
5993 : sql_help_DROP_SUBSCRIPTION,
5994 : 0},
5995 :
5996 : {"DROP TABLE",
5997 : N_("remove a table"),
5998 : "sql-droptable",
5999 : sql_help_DROP_TABLE,
6000 : 0},
6001 :
6002 : {"DROP TABLESPACE",
6003 : N_("remove a tablespace"),
6004 : "sql-droptablespace",
6005 : sql_help_DROP_TABLESPACE,
6006 : 0},
6007 :
6008 : {"DROP TEXT SEARCH CONFIGURATION",
6009 : N_("remove a text search configuration"),
6010 : "sql-droptsconfig",
6011 : sql_help_DROP_TEXT_SEARCH_CONFIGURATION,
6012 : 0},
6013 :
6014 : {"DROP TEXT SEARCH DICTIONARY",
6015 : N_("remove a text search dictionary"),
6016 : "sql-droptsdictionary",
6017 : sql_help_DROP_TEXT_SEARCH_DICTIONARY,
6018 : 0},
6019 :
6020 : {"DROP TEXT SEARCH PARSER",
6021 : N_("remove a text search parser"),
6022 : "sql-droptsparser",
6023 : sql_help_DROP_TEXT_SEARCH_PARSER,
6024 : 0},
6025 :
6026 : {"DROP TEXT SEARCH TEMPLATE",
6027 : N_("remove a text search template"),
6028 : "sql-droptstemplate",
6029 : sql_help_DROP_TEXT_SEARCH_TEMPLATE,
6030 : 0},
6031 :
6032 : {"DROP TRANSFORM",
6033 : N_("remove a transform"),
6034 : "sql-droptransform",
6035 : sql_help_DROP_TRANSFORM,
6036 : 0},
6037 :
6038 : {"DROP TRIGGER",
6039 : N_("remove a trigger"),
6040 : "sql-droptrigger",
6041 : sql_help_DROP_TRIGGER,
6042 : 0},
6043 :
6044 : {"DROP TYPE",
6045 : N_("remove a data type"),
6046 : "sql-droptype",
6047 : sql_help_DROP_TYPE,
6048 : 0},
6049 :
6050 : {"DROP USER",
6051 : N_("remove a database role"),
6052 : "sql-dropuser",
6053 : sql_help_DROP_USER,
6054 : 0},
6055 :
6056 : {"DROP USER MAPPING",
6057 : N_("remove a user mapping for a foreign server"),
6058 : "sql-dropusermapping",
6059 : sql_help_DROP_USER_MAPPING,
6060 : 0},
6061 :
6062 : {"DROP VIEW",
6063 : N_("remove a view"),
6064 : "sql-dropview",
6065 : sql_help_DROP_VIEW,
6066 : 0},
6067 :
6068 : {"END",
6069 : N_("commit the current transaction"),
6070 : "sql-end",
6071 : sql_help_END,
6072 : 0},
6073 :
6074 : {"EXECUTE",
6075 : N_("execute a prepared statement"),
6076 : "sql-execute",
6077 : sql_help_EXECUTE,
6078 : 0},
6079 :
6080 : {"EXPLAIN",
6081 : N_("show the execution plan of a statement"),
6082 : "sql-explain",
6083 : sql_help_EXPLAIN,
6084 : 15},
6085 :
6086 : {"FETCH",
6087 : N_("retrieve rows from a query using a cursor"),
6088 : "sql-fetch",
6089 : sql_help_FETCH,
6090 : 17},
6091 :
6092 : {"GRANT",
6093 : N_("define access privileges"),
6094 : "sql-grant",
6095 : sql_help_GRANT,
6096 : 86},
6097 :
6098 : {"IMPORT FOREIGN SCHEMA",
6099 : N_("import table definitions from a foreign server"),
6100 : "sql-importforeignschema",
6101 : sql_help_IMPORT_FOREIGN_SCHEMA,
6102 : 4},
6103 :
6104 : {"INSERT",
6105 : N_("create new rows in a table"),
6106 : "sql-insert",
6107 : sql_help_INSERT,
6108 : 20},
6109 :
6110 : {"LISTEN",
6111 : N_("listen for a notification"),
6112 : "sql-listen",
6113 : sql_help_LISTEN,
6114 : 0},
6115 :
6116 : {"LOAD",
6117 : N_("load a shared library file"),
6118 : "sql-load",
6119 : sql_help_LOAD,
6120 : 0},
6121 :
6122 : {"LOCK",
6123 : N_("lock a table"),
6124 : "sql-lock",
6125 : sql_help_LOCK,
6126 : 5},
6127 :
6128 : {"MERGE",
6129 : N_("conditionally insert, update, or delete rows of a table"),
6130 : "sql-merge",
6131 : sql_help_MERGE,
6132 : 32},
6133 :
6134 : {"MOVE",
6135 : N_("position a cursor"),
6136 : "sql-move",
6137 : sql_help_MOVE,
6138 : 17},
6139 :
6140 : {"NOTIFY",
6141 : N_("generate a notification"),
6142 : "sql-notify",
6143 : sql_help_NOTIFY,
6144 : 0},
6145 :
6146 : {"PREPARE",
6147 : N_("prepare a statement for execution"),
6148 : "sql-prepare",
6149 : sql_help_PREPARE,
6150 : 0},
6151 :
6152 : {"PREPARE TRANSACTION",
6153 : N_("prepare the current transaction for two-phase commit"),
6154 : "sql-prepare-transaction",
6155 : sql_help_PREPARE_TRANSACTION,
6156 : 0},
6157 :
6158 : {"REASSIGN OWNED",
6159 : N_("change the ownership of database objects owned by a database role"),
6160 : "sql-reassign-owned",
6161 : sql_help_REASSIGN_OWNED,
6162 : 1},
6163 :
6164 : {"REFRESH MATERIALIZED VIEW",
6165 : N_("replace the contents of a materialized view"),
6166 : "sql-refreshmaterializedview",
6167 : sql_help_REFRESH_MATERIALIZED_VIEW,
6168 : 1},
6169 :
6170 : {"REINDEX",
6171 : N_("rebuild indexes"),
6172 : "sql-reindex",
6173 : sql_help_REINDEX,
6174 : 7},
6175 :
6176 : {"RELEASE SAVEPOINT",
6177 : N_("release a previously defined savepoint"),
6178 : "sql-release-savepoint",
6179 : sql_help_RELEASE_SAVEPOINT,
6180 : 0},
6181 :
6182 : {"RESET",
6183 : N_("restore the value of a run-time parameter to the default value"),
6184 : "sql-reset",
6185 : sql_help_RESET,
6186 : 1},
6187 :
6188 : {"REVOKE",
6189 : N_("remove access privileges"),
6190 : "sql-revoke",
6191 : sql_help_REVOKE,
6192 : 115},
6193 :
6194 : {"ROLLBACK",
6195 : N_("abort the current transaction"),
6196 : "sql-rollback",
6197 : sql_help_ROLLBACK,
6198 : 0},
6199 :
6200 : {"ROLLBACK PREPARED",
6201 : N_("cancel a transaction that was earlier prepared for two-phase commit"),
6202 : "sql-rollback-prepared",
6203 : sql_help_ROLLBACK_PREPARED,
6204 : 0},
6205 :
6206 : {"ROLLBACK TO SAVEPOINT",
6207 : N_("roll back to a savepoint"),
6208 : "sql-rollback-to",
6209 : sql_help_ROLLBACK_TO_SAVEPOINT,
6210 : 0},
6211 :
6212 : {"SAVEPOINT",
6213 : N_("define a new savepoint within the current transaction"),
6214 : "sql-savepoint",
6215 : sql_help_SAVEPOINT,
6216 : 0},
6217 :
6218 : {"SECURITY LABEL",
6219 : N_("define or change a security label applied to an object"),
6220 : "sql-security-label",
6221 : sql_help_SECURITY_LABEL,
6222 : 29},
6223 :
6224 : {"SELECT",
6225 : N_("retrieve rows from a table or view"),
6226 : "sql-select",
6227 : sql_help_SELECT,
6228 : 46},
6229 :
6230 : {"SELECT INTO",
6231 : N_("define a new table from the results of a query"),
6232 : "sql-selectinto",
6233 : sql_help_SELECT_INTO,
6234 : 14},
6235 :
6236 : {"SET",
6237 : N_("change a run-time parameter"),
6238 : "sql-set",
6239 : sql_help_SET,
6240 : 1},
6241 :
6242 : {"SET CONSTRAINTS",
6243 : N_("set constraint check timing for the current transaction"),
6244 : "sql-set-constraints",
6245 : sql_help_SET_CONSTRAINTS,
6246 : 0},
6247 :
6248 : {"SET ROLE",
6249 : N_("set the current user identifier of the current session"),
6250 : "sql-set-role",
6251 : sql_help_SET_ROLE,
6252 : 2},
6253 :
6254 : {"SET SESSION AUTHORIZATION",
6255 : N_("set the session user identifier and the current user identifier of the current session"),
6256 : "sql-set-session-authorization",
6257 : sql_help_SET_SESSION_AUTHORIZATION,
6258 : 2},
6259 :
6260 : {"SET TRANSACTION",
6261 : N_("set the characteristics of the current transaction"),
6262 : "sql-set-transaction",
6263 : sql_help_SET_TRANSACTION,
6264 : 8},
6265 :
6266 : {"SHOW",
6267 : N_("show the value of a run-time parameter"),
6268 : "sql-show",
6269 : sql_help_SHOW,
6270 : 1},
6271 :
6272 : {"START TRANSACTION",
6273 : N_("start a transaction block"),
6274 : "sql-start-transaction",
6275 : sql_help_START_TRANSACTION,
6276 : 6},
6277 :
6278 : {"TABLE",
6279 : N_("retrieve rows from a table or view"),
6280 : "sql-select",
6281 : sql_help_TABLE,
6282 : 46},
6283 :
6284 : {"TRUNCATE",
6285 : N_("empty a table or set of tables"),
6286 : "sql-truncate",
6287 : sql_help_TRUNCATE,
6288 : 1},
6289 :
6290 : {"UNLISTEN",
6291 : N_("stop listening for a notification"),
6292 : "sql-unlisten",
6293 : sql_help_UNLISTEN,
6294 : 0},
6295 :
6296 : {"UPDATE",
6297 : N_("update rows of a table"),
6298 : "sql-update",
6299 : sql_help_UPDATE,
6300 : 9},
6301 :
6302 : {"VACUUM",
6303 : N_("garbage-collect and optionally analyze a database"),
6304 : "sql-vacuum",
6305 : sql_help_VACUUM,
6306 : 21},
6307 :
6308 : {"VALUES",
6309 : N_("compute a set of rows"),
6310 : "sql-values",
6311 : sql_help_VALUES,
6312 : 4},
6313 :
6314 : {"WITH",
6315 : N_("retrieve rows from a table or view"),
6316 : "sql-select",
6317 : sql_help_WITH,
6318 : 46},
6319 :
6320 :
6321 : {NULL, NULL, NULL} /* End of list marker */
6322 : };
|