LCOV - code coverage report
Current view: top level - src/bin/psql - sql_help.c (source / functions) Hit Total Coverage
Test: PostgreSQL 13devel Lines: 0 552 0.0 %
Date: 2019-09-19 02:07:14 Functions: 0 184 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13