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

Generated by: LCOV version 1.14