Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
4bec96f1
Commit
4bec96f1
authored
28 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Brought psql help up to date with syntax and manual.
parent
92210d49
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/psql/psqlHelp.h
+20
-20
20 additions, 20 deletions
src/bin/psql/psqlHelp.h
with
20 additions
and
20 deletions
src/bin/psql/psqlHelp.h
+
20
−
20
View file @
4bec96f1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: psqlHelp.h,v 1.
4
1996/10/03
04:20:4
1 momjian Exp $
* $Id: psqlHelp.h,v 1.
5
1996/10/03
15:46:3
1 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -25,7 +25,7 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -25,7 +25,7 @@ static struct _helpStruct QL_HELP[] = {
"abort [transaction];"
},
"abort [transaction];"
},
{
"alter table"
,
{
"alter table"
,
"add/rename attributes, rename tables"
,
"add/rename attributes, rename tables"
,
"alter table <
rel
name> [*] add column <attr> <type>;
\n\t
alter table <
rel
name> [*] rename [column] <attr1> to <attr2>;
\n\t
alter table <
rel
name1> rename to <
rel
name2>"
},
"alter table <
class_
name> [*] add column <attr> <type>;
\n\t
alter table <
class_
name> [*] rename [column] <attr1> to <attr2>;
\n\t
alter table <
class_
name1> rename to <
class_
name2>"
},
{
"begin"
,
{
"begin"
,
"begin a new transaction"
,
"begin a new transaction"
,
"begin [transaction|work];"
},
"begin [transaction|work];"
},
...
@@ -39,8 +39,8 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -39,8 +39,8 @@ static struct _helpStruct QL_HELP[] = {
"create a clustered index (from an existing index)"
,
"create a clustered index (from an existing index)"
,
"cluster <index_name> on <relation_name>"
},
"cluster <index_name> on <relation_name>"
},
{
"close"
,
{
"close"
,
"close an existing cursor (
portal
)"
,
"close an existing cursor (
cursor
)"
,
"close <
portal
name>;"
},
"close <
cursor
name>;"
},
{
"commit"
,
{
"commit"
,
"commit a transaction"
,
"commit a transaction"
,
"commit [work]"
},
"commit [work]"
},
...
@@ -49,7 +49,7 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -49,7 +49,7 @@ static struct _helpStruct QL_HELP[] = {
"commit [work]"
},
"commit [work]"
},
{
"copy"
,
{
"copy"
,
"copy data to and from a table"
,
"copy data to and from a table"
,
"copy [binary] <
rel
name> [with oids]
\n\t
{to|from} {<filename>|stdin|stdout} [using delimiters <delim>];"
},
"copy [binary] <
class_
name> [with oids]
\n\t
{to|from} {<filename>|stdin|stdout} [using delimiters <delim>];"
},
{
"create"
,
{
"create"
,
"Please more be specific:"
,
"Please more be specific:"
,
"
\t
create aggregate
\n\t
create database
\n\t
create function
\n\t
create index
\n\t
create operator
\n\t
create rule
\n\t
create table
\n\t
create type
\n\t
create view"
},
"
\t
create aggregate
\n\t
create database
\n\t
create function
\n\t
create index
\n\t
create operator
\n\t
create rule
\n\t
create table
\n\t
create type
\n\t
create view"
},
...
@@ -64,7 +64,7 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -64,7 +64,7 @@ static struct _helpStruct QL_HELP[] = {
"create function <function_name> ([<type1>,...<typeN>]) returns <return_type>
\n\t
as '<object_filename>'|'<sql-queries>'
\n\t
language 'c'|'sql'|'internal';"
},
"create function <function_name> ([<type1>,...<typeN>]) returns <return_type>
\n\t
as '<object_filename>'|'<sql-queries>'
\n\t
language 'c'|'sql'|'internal';"
},
{
"create index"
,
{
"create index"
,
"construct an index"
,
"construct an index"
,
"create index <indexname> on <
rel
name> [using <access_method>] (<attr1>|<funcname>(<attr1>,...) [<type_class1>]);"
},
"create index <indexname> on <
class_
name> [using <access_method>] (<attr1>|<funcname>(<attr1>,...) [<type_class1>]);"
},
{
"create operator"
,
{
"create operator"
,
"create a user-defined operator"
,
"create a user-defined operator"
,
"create operator <operator_name> (
\n\t
[leftarg = <type1>][,rightarg = <type2>]
\n\t
,procedure = <func_name>,
\n\t
[,commutator = <com_op>][,negator = <neg_op>]
\n\t
[,restrict = <res_proc>][,hashes]
\n\t
[,join = <join_proc>][,sort = <sort_op1>...<sort_opN>]);"
},
"create operator <operator_name> (
\n\t
[leftarg = <type1>][,rightarg = <type2>]
\n\t
,procedure = <func_name>,
\n\t
[,commutator = <com_op>][,negator = <neg_op>]
\n\t
[,restrict = <res_proc>][,hashes]
\n\t
[,join = <join_proc>][,sort = <sort_op1>...<sort_opN>]);"
},
...
@@ -73,7 +73,7 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -73,7 +73,7 @@ static struct _helpStruct QL_HELP[] = {
"create rule <rule_name> as on
\n\t
[select|update|delete|insert]
\n\t
to <object> [where <qual>]
\n\t
do [instead] [<action>|nothing| [<actions>]];"
},
"create rule <rule_name> as on
\n\t
[select|update|delete|insert]
\n\t
to <object> [where <qual>]
\n\t
do [instead] [<action>|nothing| [<actions>]];"
},
{
"create table"
,
{
"create table"
,
"create a new table"
,
"create a new table"
,
"create table <
rel
name> ( <attr1> <type1>,... <attrN> <typeN>)
\n\t
[inherits (<
rel
name1>,...<
rel
nameN>
\n\t
archive=<archive_mode>
\n\t
store=<smgr_name>
\n\t
arch_store=<smgr_name>];"
},
"create table <
class_
name> ( <attr1> <type1>,... <attrN> <typeN>)
\n\t
[inherits (<
class_
name1>,...<
class_
nameN>
\n\t
archive=<archive_mode>
\n\t
store=<smgr_name>
\n\t
arch_store=<smgr_name>];"
},
{
"create type"
,
{
"create type"
,
"create a new user-defined base data type"
,
"create a new user-defined base data type"
,
"create type <typename> (
\n\t
internallength = (<number> | variable),
\n\t
[externallength = (<number>|variable),]
\n\t
input=<input_function>, output = <output_function>
\n\t
[,element = <typename>][,delimiter=<character>][,default=
\'
<string>
\'
]
\n\t
[,send = <send_function>][,receive = <receive_function>][,passedbyvalue]);"
},
"create type <typename> (
\n\t
internallength = (<number> | variable),
\n\t
[externallength = (<number>|variable),]
\n\t
input=<input_function>, output = <output_function>
\n\t
[,element = <typename>][,delimiter=<character>][,default=
\'
<string>
\'
]
\n\t
[,send = <send_function>][,receive = <receive_function>][,passedbyvalue]);"
},
...
@@ -81,11 +81,11 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -81,11 +81,11 @@ static struct _helpStruct QL_HELP[] = {
"create a view"
,
"create a view"
,
"create view <view_name> as select <expr1>[as <attr1>][,... <exprN>[as <attrN>]] [from <from_list>] [where <qual>];"
},
"create view <view_name> as select <expr1>[as <attr1>][,... <exprN>[as <attrN>]] [from <from_list>] [where <qual>];"
},
{
"declare"
,
{
"declare"
,
"set up a cursor
(portal)
"
,
"set up a cursor"
,
"declare <
portal
name> [binary] cursor for
\n\t
select [distinct]
\n\t
<expr1> [as <attr1>],...<exprN> [as <attrN>]
\n\t
[from <from_list>] [where <qual>]
\n\t
[order by <attr1> [using <op1>],... <attrN> [using <opN>]];"
},
"declare <
cursor
name> [binary] cursor for
\n\t
select [distinct]
\n\t
<expr1> [as <attr1>],...<exprN> [as <attrN>]
\n\t
[from <from_list>] [where <qual>]
\n\t
[order by <attr1> [using <op1>],... <attrN> [using <opN>]];"
},
{
"delete"
,
{
"delete"
,
"delete tuples"
,
"delete tuples"
,
"delete from <
rel
name> [where <qual>];"
},
"delete from <
class_
name> [where <qual>];"
},
{
"drop"
,
{
"drop"
,
"Please more be specific:"
,
"Please more be specific:"
,
"
\t
drop aggregate
\n\t
drop database
\n\t
drop function
\n\t
drop index
\n\t
drop operator
\n\t
drop rule
\n\t
drop table
\n\t
drop type
\n\t
drop view"
},
"
\t
drop aggregate
\n\t
drop database
\n\t
drop function
\n\t
drop index
\n\t
drop operator
\n\t
drop rule
\n\t
drop table
\n\t
drop type
\n\t
drop view"
},
...
@@ -109,7 +109,7 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -109,7 +109,7 @@ static struct _helpStruct QL_HELP[] = {
"drop rule <rulename>;"
},
"drop rule <rulename>;"
},
{
"drop table"
,
{
"drop table"
,
"remove a table"
,
"remove a table"
,
"drop table <
rel
name>[,...<
rel
nameN];"
},
"drop table <
class_
name>[,...<
class_
nameN];"
},
{
"drop type"
,
{
"drop type"
,
"remove a user-defined base type"
,
"remove a user-defined base type"
,
"drop type <typename>;"
},
"drop type <typename>;"
},
...
@@ -129,38 +129,38 @@ static struct _helpStruct QL_HELP[] = {
...
@@ -129,38 +129,38 @@ static struct _helpStruct QL_HELP[] = {
"extend a partial index"
,
"extend a partial index"
,
"extend index <indexname> [where <qual>];"
},
"extend index <indexname> [where <qual>];"
},
{
"fetch"
,
{
"fetch"
,
"retrieve tuples from a cursor
(portal)
"
,
"retrieve tuples from a cursor"
,
"fetch [forward|backward] [<number>|all] [in <
portal
name>];"
},
"fetch [forward|backward] [<number>|all] [in <
cursor
name>];"
},
{
"grant"
,
{
"grant"
,
"grant access control to a user or group"
,
"grant access control to a user or group"
,
"grant <privilege[,privilege,...]> on <rel1>[,...<reln>] to
\n
[public | group <group> | <username>]
\n\t
privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"
},
"grant <privilege[,privilege,...]> on <rel1>[,...<reln>] to
\n
[public | group <group> | <username>]
\n\t
privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"
},
{
"insert"
,
{
"insert"
,
"insert tuples"
,
"insert tuples"
,
"insert into <
rel
name> [(<attr1>...<attrN>)]
\n\t
[values (<expr1>...<exprN>); |
\n\t
select <expr1>,...<exprN> [from <from_clause>] [where <qual>];"
},
"insert into <
class_
name> [(<attr1>...<attrN>)]
\n\t
[values (<expr1>...<exprN>); |
\n\t
select <expr1>,...<exprN> [from <from_clause>] [where <qual>];"
},
{
"listen"
,
{
"listen"
,
"listen for notification on a relation"
,
"listen for notification on a relation"
,
"listen <
rel
name>"
},
"listen <
class_
name>"
},
{
"load"
,
{
"load"
,
"dynamically load a module"
,
"dynamically load a module"
,
"load <filename>;"
},
"load <filename>;"
},
{
"notify"
,
{
"notify"
,
"signal all frontends and backends listening on a relation"
,
"signal all frontends and backends listening on a relation"
,
"notify <
rel
name>"
},
"notify <
class_
name>"
},
{
"purge"
,
{
"purge"
,
"purge historical data"
,
"purge historical data"
,
"purge <
rel
name> [before <abstime>] [after <reltime>];"
},
"purge <
class_
name> [before <abstime>] [after <reltime>];"
},
{
"revoke"
,
{
"revoke"
,
"revoke access control from a user or group"
,
"revoke access control from a user or group"
,
"revoke <privilege[,privilege,...]> on <rel1>[,...<reln>] from
\n
[public | group <group> | <username>]
\n\t
privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"
},
"revoke <privilege[,privilege,...]> on <rel1>[,...<reln>] from
\n
[public | group <group> | <username>]
\n\t
privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"
},
{
"rollback"
,
{
"rollback"
,
"abort a transaction"
,
"abort a transaction"
,
"rollback [work]"
},
"rollback [
transaction|
work]"
},
{
"select"
,
{
"select"
,
"retrieve tuples"
,
"retrieve tuples"
,
"select [distinct on <attr>] <expr1> [as <attr1>], ... <exprN> [as <attrN>]
\n\t
[into table <
rel
name>] [from <from_list>]
\n\t
[where <qual>]
\n\t
[order by <attr1>
\n\t\t
[using <op1>],..<attrN> [[using <opN>] | ASC | DESC]];"
},
"select [distinct on <attr>] <expr1> [as <attr1>], ... <exprN> [as <attrN>]
\n\t
[into table <
class_
name>] [from <from_list>]
\n\t
[where <qual>]
\n\t
[order by <attr1>
\n\t\t
[using <op1>],..<attrN> [[using <opN>] | ASC | DESC]];"
},
{
"update"
,
{
"update"
,
"update tuples"
,
"update tuples"
,
"update <
rel
name> set <attr1>=<expr1>,...<attrN>=<exprN> [from <from_clause>] [where <qual>];"
},
"update <
class_
name> set <attr1>=<expr1>,...<attrN>=<exprN> [from <from_clause>] [where <qual>];"
},
{
"vacuum"
,
{
"vacuum"
,
"vacuum the database, i.e. cleans out deleted records, updates statistics"
,
"vacuum the database, i.e. cleans out deleted records, updates statistics"
,
"vacuum [table];"
},
"vacuum [table];"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment