Brought psql help up to date with syntax and manual.
authorBruce Momjian
Thu, 3 Oct 1996 15:46:31 +0000 (15:46 +0000)
committerBruce Momjian
Thu, 3 Oct 1996 15:46:31 +0000 (15:46 +0000)
src/bin/psql/psqlHelp.h

index a10b0a4dcbfeeeb6c0eabfaf41c8871b9d9a55d6..0b41027afdc105cf0449d42f73d4e27ea08d0d62 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: psqlHelp.h,v 1.4 1996/10/03 04:20:41 momjian Exp $
+ * $Id: psqlHelp.h,v 1.5 1996/10/03 15:46:31 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -25,7 +25,7 @@ static struct _helpStruct QL_HELP[] = {
       "abort [transaction];"},
   { "alter table",
       "add/rename attributes, rename tables",
-      "alter table <relname> [*] add column  ;\n\talter table  [*] rename [column]  to ;\n\talter table  rename to name2>"},
+      "alter table <class_name> [*] add column  ;\n\talter table  [*] rename [column]  to ;\n\talter table  rename to name2>"},
   { "begin",
       "begin a new transaction",
       "begin [transaction|work];"},
@@ -39,8 +39,8 @@ static struct _helpStruct QL_HELP[] = {
       "create a clustered index (from an existing index)",
       "cluster  on "},
   { "close",
-      "close an existing cursor (portal)",
-      "close <portalname>;"},
+      "close an existing cursor (cursor)",
+      "close <cursorname>;"},
   { "commit",
       "commit a transaction",
       "commit [work]"},
@@ -49,7 +49,7 @@ static struct _helpStruct QL_HELP[] = {
       "commit [work]"},
   { "copy",
       "copy data to and from a table",
-      "copy [binary] <relname> [with oids]\n\t{to|from} {|stdin|stdout} [using delimiters ];"},
+      "copy [binary] <class_name> [with oids]\n\t{to|from} {|stdin|stdout} [using delimiters ];"},
   { "create",   
       "Please more be specific:",
       "\tcreate aggregate\n\tcreate database\n\tcreate function\n\tcreate index\n\tcreate operator\n\tcreate rule\n\tcreate table\n\tcreate type\n\tcreate view"},
@@ -64,7 +64,7 @@ static struct _helpStruct QL_HELP[] = {
       "create function  ([,...]) returns \n\tas ''|''\n\tlanguage 'c'|'sql'|'internal';"},
   { "create index",
       "construct an index",
-      "create index  on <relname> [using ] (|(,...) []);"},
+      "create index  on <class_name> [using ] (|(,...) []);"},
   { "create operator",
       "create a user-defined operator",
       "create operator  (\n\t[leftarg = ][,rightarg = ]\n\t,procedure = ,\n\t[,commutator = ][,negator = ]\n\t[,restrict = ][,hashes]\n\t[,join = ][,sort = ...]);"},
@@ -73,7 +73,7 @@ static struct _helpStruct QL_HELP[] = {
       "create rule  as on\n\t[select|update|delete|insert]\n\tto  [where ]\n\tdo [instead] [|nothing| []];"},
   { "create table",
       "create a new table",
-      "create table <relname> (  ,...  )\n\t[inherits (,...nameN>\n\tarchive=\n\tstore=\n\tarch_store=];"},
+      "create table <class_name> (  ,...  )\n\t[inherits (,...nameN>\n\tarchive=\n\tstore=\n\tarch_store=];"},
   { "create type",
       "create a new user-defined base data type",
       "create type  (\n\tinternallength = ( | variable),\n\t[externallength = (|variable),]\n\tinput=, output = \n\t[,element = ][,delimiter=][,default=\'\']\n\t[,send = ][,receive = ][,passedbyvalue]);"},
@@ -81,11 +81,11 @@ static struct _helpStruct QL_HELP[] = {
       "create a view",
       "create view  as select [as ][,... [as ]] [from ] [where ];"},
   { "declare",
-      "set up a cursor (portal)",
-      "declare <portalname> [binary] cursor for\n\tselect [distinct]\n\t [as ],... [as ]\n\t[from ] [where ]\n\t[order by  [using ],...  [using ]];"},
+      "set up a cursor",
+      "declare <cursorname> [binary] cursor for\n\tselect [distinct]\n\t [as ],... [as ]\n\t[from ] [where ]\n\t[order by  [using ],...  [using ]];"},
   { "delete",
       "delete tuples",
-      "delete from <relname> [where ];"},
+      "delete from <class_name> [where ];"},
   { "drop",   
       "Please more be specific:",
       "\tdrop aggregate\n\tdrop database\n\tdrop function\n\tdrop index\n\tdrop operator\n\tdrop rule\n\tdrop table\n\tdrop type\n\tdrop view"},
@@ -109,7 +109,7 @@ static struct _helpStruct QL_HELP[] = {
       "drop rule ;"},
   { "drop table", 
       "remove a table", 
-      "drop table <relname>[,...nameN];"},
+      "drop table <class_name>[,...nameN];"},
   { "drop type",
       "remove a user-defined base type",
       "drop type ;"},
@@ -129,38 +129,38 @@ static struct _helpStruct QL_HELP[] = {
       "extend a partial index",
       "extend index  [where ];"},
   { "fetch",
-      "retrieve tuples from a cursor (portal)",
-      "fetch [forward|backward] [|all] [in <portalname>];"},
+      "retrieve tuples from a cursor",
+      "fetch [forward|backward] [|all] [in <cursorname>];"},
   { "grant",
       "grant access control to a user or group",
       "grant  on [,...] to \n[public | group  | ]\n\t privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"},
   { "insert",
       "insert tuples",
-      "insert into <relname> [(...)]\n\t[values (...); |\n\tselect ,... [from ] [where ];"},
+      "insert into <class_name> [(...)]\n\t[values (...); |\n\tselect ,... [from ] [where ];"},
   { "listen",
        "listen for notification on a relation",
-       "listen <relname>"},
+       "listen <class_name>"},
   { "load",
       "dynamically load a module",
       "load ;"},
   { "notify",
       "signal all frontends and backends listening on a relation",
-      "notify <relname>"},
+      "notify <class_name>"},
   { "purge",
       "purge historical data",
-      "purge <relname> [before ] [after ];"},
+      "purge <class_name> [before ] [after ];"},
   { "revoke",
       "revoke access control from a user or group",
       "revoke  on [,...] from \n[public | group  | ]\n\t privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"},
   { "rollback",
       "abort a transaction",
-      "rollback [work]"},
+      "rollback [transaction|work]"},
   { "select",
       "retrieve tuples",
-      "select [distinct on  [as ], ...  [as ]\n\t[into table <relname>] [from ]\n\t[where ]\n\t[order by \n\t\t[using ],.. [[using ] | ASC | DESC]];" },
+      "select [distinct on  [as ], ...  [as ]\n\t[into table <class_name>] [from ]\n\t[where ]\n\t[order by \n\t\t[using ],.. [[using ] | ASC | DESC]];" },
   { "update",
       "update tuples",
-      "update <relname> set =,...= [from ] [where ];"},
+      "update <class_name> set =,...= [from ] [where ];"},
   { "vacuum",
       "vacuum the database, i.e. cleans out deleted records, updates statistics",
       "vacuum [table];"},