Commit 2323b636 authored by Bruce Momjian's avatar Bruce Momjian

Update psql with man pages and new version of help.

parent a45195a1
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,6 +14,10 @@ struct _helpStruct ...@@ -14,6 +14,10 @@ struct _helpStruct
static struct _helpStruct QL_HELP[] = { static struct _helpStruct QL_HELP[] = {
{ "TRUNCATE",
"Empty a table",
"TRUNCATE [ TABLE ] name" },
{ "ABORT", { "ABORT",
"Aborts the current transaction", "Aborts the current transaction",
"ABORT [ WORK | TRANSACTION ]" }, "ABORT [ WORK | TRANSACTION ]" },
...@@ -44,7 +48,7 @@ static struct _helpStruct QL_HELP[] = { ...@@ -44,7 +48,7 @@ static struct _helpStruct QL_HELP[] = {
{ "COPY", { "COPY",
"Copies data between files and tables", "Copies data between files and tables",
"COPY [ BINARY ] table [ WITH OIDS ]\n FROM { 'filename' | stdin }\n [ USING DELIMITERS 'delimiter' ]\nCOPY [ BINARY ] table [ WITH OIDS ]\n TO { 'filename' | stdout }\n [ USING DELIMITERS 'delimiter' ]" }, "COPY [ BINARY ] table [ WITH OIDS ]\n FROM { 'filename' | stdin }\n [ [USING] DELIMITERS 'delimiter' ]\nCOPY [ BINARY ] table [ WITH OIDS ]\n TO { 'filename' | stdout }\n [ [USING] DELIMITERS 'delimiter' ]" },
{ "CREATE AGGREGATE", { "CREATE AGGREGATE",
"Defines a new aggregate function", "Defines a new aggregate function",
...@@ -56,7 +60,7 @@ static struct _helpStruct QL_HELP[] = { ...@@ -56,7 +60,7 @@ static struct _helpStruct QL_HELP[] = {
{ "CREATE FUNCTION", { "CREATE FUNCTION",
"Defines a new function", "Defines a new function",
"CREATE FUNCTION name ( [ ftype [, ...] ] )\n RETURNS rtype\n AS definition\n LANGUAGE 'langname'" }, "CREATE FUNCTION name ( [ ftype [, ...] ] )\n RETURNS rtype\n [ WITH ( attribute [, ...] ) ]\n AS definition \n LANGUAGE 'langname'\n\n\nCREATE FUNCTION name ( [ ftype [, ...] ] )\n RETURNS rtype\n [ WITH ( attribute [, ...] ) ]\n AS obj_file , link_symbol \n LANGUAGE 'C'" },
{ "CREATE INDEX", { "CREATE INDEX",
"Constructs a secondary index", "Constructs a secondary index",
...@@ -107,21 +111,21 @@ static struct _helpStruct QL_HELP[] = { ...@@ -107,21 +111,21 @@ static struct _helpStruct QL_HELP[] = {
"DECLARE cursor [ BINARY ] [ INSENSITIVE ] [ SCROLL ]\n CURSOR FOR query\n [ FOR { READ ONLY | UPDATE [ OF column [, ...] ] ]" }, "DECLARE cursor [ BINARY ] [ INSENSITIVE ] [ SCROLL ]\n CURSOR FOR query\n [ FOR { READ ONLY | UPDATE [ OF column [, ...] ] ]" },
{ "DELETE", { "DELETE",
"Deletes rows from a table", "Removes rows from a table",
"DELETE FROM table [ WHERE condition ]" }, "DELETE FROM table [ WHERE condition ]" },
{ "DROP AGGREGATE", { "DROP AGGREGATE",
"Removes the definition of an aggregate function", "Removes the definition of an aggregate function",
"DROP AGGREGATE name type" }, "DROP AGGREGATE name type" },
{ "FETCH",
"Gets rows using a cursor",
"FETCH [ selector ] [ count ] { IN | FROM } cursor\nFETCH [ RELATIVE ] [ { [ # | ALL | NEXT | PRIOR ] } ] FROM ] cursor" },
{ "DROP DATABASE", { "DROP DATABASE",
"Destroys an existing database", "Destroys an existing database",
"DROP DATABASE name" }, "DROP DATABASE name" },
{ "END",
"Commits the current transaction",
"END [ WORK | TRANSACTION ]" },
{ "DROP FUNCTION", { "DROP FUNCTION",
"Removes a user-defined C function", "Removes a user-defined C function",
"DROP FUNCTION name ( [ type [, ...] ] )" }, "DROP FUNCTION name ( [ type [, ...] ] )" },
...@@ -170,10 +174,6 @@ static struct _helpStruct QL_HELP[] = { ...@@ -170,10 +174,6 @@ static struct _helpStruct QL_HELP[] = {
"Shows statement execution details", "Shows statement execution details",
"EXPLAIN [ VERBOSE ] query" }, "EXPLAIN [ VERBOSE ] query" },
{ "FETCH",
"Gets rows using a cursor",
"FETCH [ selector ] [ count ] { IN | FROM } cursor\nFETCH [ RELATIVE ] [ { [ # | ALL | NEXT | PRIOR ] } ] FROM ] cursor" },
{ "GRANT", { "GRANT",
"Grants access privilege to a user, a group or all users", "Grants access privilege to a user, a group or all users",
"GRANT privilege [, ...] ON object [, ...]\n TO { PUBLIC | GROUP group | username }" }, "GRANT privilege [, ...] ON object [, ...]\n TO { PUBLIC | GROUP group | username }" },
...@@ -191,8 +191,8 @@ static struct _helpStruct QL_HELP[] = { ...@@ -191,8 +191,8 @@ static struct _helpStruct QL_HELP[] = {
"LOAD 'filename'" }, "LOAD 'filename'" },
{ "LOCK", { "LOCK",
"Explicit lock of a table inside a transaction", "Explicitly lock a table inside a transaction",
"LOCK [ TABLE ] table\nLOCK [ TABLE ] table IN [ ROW | ACCESS ] { SHARE | EXCLUSIVE } MODE\nLOCK [ TABLE ] table IN SHARE ROW EXCLUSIVE MODE" }, "LOCK [ TABLE ] name\nLOCK [ TABLE ] name IN [ ROW | ACCESS ] { SHARE | EXCLUSIVE } MODE\nLOCK [ TABLE ] name IN SHARE ROW EXCLUSIVE MODE" },
{ "MOVE", { "MOVE",
"Moves cursor position", "Moves cursor position",
...@@ -230,22 +230,26 @@ static struct _helpStruct QL_HELP[] = { ...@@ -230,22 +230,26 @@ static struct _helpStruct QL_HELP[] = {
"Shows run-time parameters for session", "Shows run-time parameters for session",
"SHOW keyword" }, "SHOW keyword" },
{ "TRUNCATE", { "UNLISTEN",
"Close a cursor", "Stop listening for notification",
"TRUNCATE TABLE table" }, "UNLISTEN { notifyname | * }" },
{ "UPDATE", { "UPDATE",
"Replaces values of columns in a table", "Replaces values of columns in a table",
"UPDATE table SET R\">colle> = expression [, ...]\n [ FROM fromlist ]\n [ WHERE condition ]" }, "UPDATE table SET R\">colle> = expression [, ...]\n [ FROM fromlist ]\n [ WHERE condition ]" },
{ "UNLISTEN",
"Stop listening for notification",
"UNLISTEN { notifyname | * }" },
{ "VACUUM", { "VACUUM",
"Clean and analyze a Postgres database", "Clean and analyze a Postgres database",
"VACUUM [ VERBOSE ] [ ANALYZE ] [ table ]\nVACUUM [ VERBOSE ] ANALYZE [ ER\">tBLE> [ (column [, ...] ) ] ]" }, "VACUUM [ VERBOSE ] [ ANALYZE ] [ table ]\nVACUUM [ VERBOSE ] ANALYZE [ ER\">tBLE> [ (column [, ...] ) ] ]" },
{ "END",
"Commits the current transaction",
"END [ WORK | TRANSACTION ]" },
{ "COMMENT",
"Add comment to an object",
"COMMENT ON\n[\n [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ]\n object_name |\n COLUMN table_name.column_name|\n AGGREGATE agg_name agg_type|\n FUNCTION func_name (arg1, arg2, ...)|\n OPERATOR op (leftoperand_type rightoperand_type) |\n TRIGGER trigger_name ON table_name\n] IS 'text'" },
{ NULL, NULL, NULL } /* End of list marker */ { NULL, NULL, NULL } /* End of list marker */
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment