From 4bec96f16f48f034ac4d39cb272ee6c228d05193 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 3 Oct 1996 15:46:31 +0000 Subject: [PATCH] Brought psql help up to date with syntax and manual. --- src/bin/psql/psqlHelp.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/bin/psql/psqlHelp.h b/src/bin/psql/psqlHelp.h index a10b0a4dcb..0b41027afd 100644 --- a/src/bin/psql/psqlHelp.h +++ b/src/bin/psql/psqlHelp.h @@ -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 [*] add column ;\n\talter table [*] rename [column] to ;\n\talter table rename to "}, + "alter table [*] add column ;\n\talter table [*] rename [column] to ;\n\talter table rename to "}, { "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 ;"}, + "close an existing cursor (cursor)", + "close ;"}, { "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] [with oids]\n\t{to|from} {|stdin|stdout} [using delimiters ];"}, + "copy [binary] [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 [using ] (|(,...) []);"}, + "create index on [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 ( ,... )\n\t[inherits (,...\n\tarchive=\n\tstore=\n\tarch_store=];"}, + "create table ( ,... )\n\t[inherits (,...\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 [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 [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 [where ];"}, + "delete from [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 [,...[,...;"}, @@ -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 ];"}, + "retrieve tuples from a cursor", + "fetch [forward|backward] [|all] [in ];"}, { "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 [(...)]\n\t[values (...); |\n\tselect ,... [from ] [where ];"}, + "insert into [(...)]\n\t[values (...); |\n\tselect ,... [from ] [where ];"}, { "listen", "listen for notification on a relation", - "listen "}, + "listen "}, { "load", "dynamically load a module", "load ;"}, { "notify", "signal all frontends and backends listening on a relation", - "notify "}, + "notify "}, { "purge", "purge historical data", - "purge [before ] [after ];"}, + "purge [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 ] [from ]\n\t[where ]\n\t[order by \n\t\t[using ],.. [[using ] | ASC | DESC]];" }, + "select [distinct on ] [as ], ... [as ]\n\t[into table ] [from ]\n\t[where ]\n\t[order by \n\t\t[using ],.. [[using ] | ASC | DESC]];" }, { "update", "update tuples", - "update set =,...= [from ] [where ];"}, + "update set =,...= [from ] [where ];"}, { "vacuum", "vacuum the database, i.e. cleans out deleted records, updates statistics", "vacuum [table];"}, -- 2.40.0