-ALTER USER username [ [ WITH ] option [ ... ] ]
+ALTER USER name [ [ WITH ] option [ ... ] ]
where option can be:
| CREATEUSER | NOCREATEUSER
| VALID UNTIL 'abstime'
-ALTER USER username RENAME TO newname
+ALTER USER name RENAME TO newname
-ALTER USER username SET variable { TO | = } { value | DEFAULT }
-ALTER USER username RESET variable
+ALTER USER name SET parameter { TO | = } { value | DEFAULT }
+ALTER USER name RESET parameter
- username
+ name
The name of the user whose attributes are to be altered.
- variable
+ parameter
value
Set this user's session default for the specified configuration
- variable to the given value. If
+ parameter to the given value. If
value is DEFAULT
or, equivalently, RESET is used, the
user-specific variable setting is removed and the user will
- See and linkend="runtime-config">
- for more information about allowed variable names
- and values.
+ See
and
+ linkend="runtime-config"> for more information about allowed
+ parameter names and values.
-CLOSE cursor
+CLOSE name
- cursor
+ name
The name of an open cursor to close.
COPY
- copy data between files and tables
+ copy data between a file and a table
-COPY table [ ( column [, ...] ) ]
+COPY tablename [ ( column [, ...] ) ]
FROM { 'filename' | STDIN }
[ [ WITH ]
[ BINARY ]
[ DELIMITER [ AS ] 'delimiter' ]
[ NULL [ AS ] 'null string' ] ]
-COPY table [ ( column [, ...] ) ]
+COPY tablename [ ( column [, ...] ) ]
TO { 'filename' | STDOUT }
[ [ WITH ]
[ BINARY ]
- table
+ tablename
The name (possibly schema-qualified) of an existing table.
still supported:
-COPY [ BINARY ] table [ WITH OIDS ]
+COPY [ BINARY ] tablename [ WITH OIDS ]
FROM { 'filename' | STDIN }
[ [USING] DELIMITERS 'delimiter' ]
[ WITH NULL AS 'null string' ]
-COPY [ BINARY ] table [ WITH OIDS ]
+COPY [ BINARY ] tablename [ WITH OIDS ]
TO { 'filename' | STDOUT }
[ [USING] DELIMITERS 'delimiter' ]
[ WITH NULL AS 'null string' ]
-
+
CREATE CAST
- define a user-defined cast
+ define a new cast
CREATE CONSTRAINT TRIGGER name
AFTER events ON
- table constraint attributes
- FOR EACH ROW EXECUTE PROCEDURE func ( args )
+ tablename constraint attributes
+ FOR EACH ROW EXECUTE PROCEDURE funcname ( args )
- table
+ tablename
The name (possibly schema-qualified) of the table in which
- func(args)
+ funcname(args)
The function to call as part of the trigger processing.
-
+
CREATE CONVERSION
- define a user-defined conversion
+ define a new conversion
-CREATE DOMAIN domainname [AS] data_type
- [ DEFAULT default_expr> ]
+CREATE DOMAIN name [AS] data_type
+ [ DEFAULT expression> ]
[ constraint [ ... ] ]
where constraint is:
- domainname
+ name
The name (optionally schema-qualified) of a domain to be created.
- DEFAULT default_expr
+ DEFAULT expression
-CREATE [ UNIQUE ] INDEX index_name ON table [ USING method ]
+CREATE [ UNIQUE ] INDEX name ON table [ USING method ]
( { column | ( expression ) } [ opclass ] [, ...] )
[ WHERE predicate ]
- index_name
+ name
The name of the index to be created. No schema name can be included
-CREATE [ TRUSTED ] [ PROCEDURAL ] LANGUAGE langname
+CREATE [ TRUSTED ] [ PROCEDURAL ] LANGUAGE name
HANDLER call_handler [ VALIDATOR valfunction ]
- langname
+ name
CREATE OPERATOR CLASS
- define a new operator class for indexes
+ define a new operator class
CREATE OPERATOR CLASS name [ DEFAULT ] FOR TYPE data_type USING index_method AS
{ OPERATOR strategy_number operator_name [ ( op_type, op_type ) ] [ RECHECK ]
- | FUNCTION support_number func_name ( argument_types )
+ | FUNCTION support_number funcname ( argument_type [, ...] )
| STORAGE storage_type
} [, ... ]
- func_name
+ funcname
The name (optionally schema-qualified) of a function that is an
CREATE OPERATOR name (
- PROCEDURE = func_name
+ PROCEDURE = funcname
[, LEFTARG = lefttype ] [, RIGHTARG = righttype ]
[, COMMUTATOR = com_op ] [, NEGATOR = neg_op ]
[, RESTRICT = res_proc ] [, JOIN = join_proc ]
- The func_name
+ The funcname
procedure must have been previously defined using CREATE
FUNCTION and must be defined to accept the correct number
of arguments (either one or two) of the indicated types.
- func_name
+ funcname
The function used to implement this operator.
-CREATE [ TEMPORARY | TEMP ] SEQUENCE seqname [ INCREMENT [ BY ] increment ]
+CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ]
[ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
[ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
CREATE SEQUENCE creates a new sequence number
generator. This involves creating and initializing a new special
single-row table with the name
- class="parameter">seqname. The generator will be
+ class="parameter">name. The generator will be
owned by the user issuing the command.
Although you cannot update a sequence directly, you can use a query like
-SELECT * FROM seqname;
+SELECT * FROM name;
to examine the parameters and current state of a sequence. In particular,
- seqname
+ name
The name (optionally schema-qualified) of the sequence to be created.
CREATE TRIGGER name { BEFORE | AFTER } { event [ OR ... ] }
ON table [ FOR [ EACH ] { ROW | STATEMENT } ]
- EXECUTE PROCEDURE func ( arguments )
+ EXECUTE PROCEDURE funcname ( arguments )
-CREATE TYPE typename AS
+CREATE TYPE name AS
( attribute_name data_type [, ... ] )
-CREATE TYPE typename (
+CREATE TYPE name (
INPUT = input_function,
OUTPUT = output_function
[ , RECEIVE = receive_function ]
- typename
+ name
The name (optionally schema-qualified) of a type to be created.
-CREATE USER username [ [ WITH ] option [ ... ] ]
+CREATE USER name [ [ WITH ] option [ ... ] ]
where option can be:
- username
+ name
The name of the user.
-DECLARE cursorname [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ]
+DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ]
CURSOR [ { WITH | WITHOUT } HOLD ] FOR query
[ FOR { READ ONLY | UPDATE [ OF column [, ...] ] } ]
- cursorname
+ name
The name of the cursor to be created.
DROP AGGREGATE
- remove a user-defined aggregate function
+ remove an aggregate function
-
+
DROP CAST
- remove a user-defined cast
+ remove a cast
-
+
DROP CONVERSION
- remove a user-defined conversion
+ remove a conversion
-DROP CONVERSION conversion_name [ CASCADE | RESTRICT ]
+DROP CONVERSION name [ CASCADE | RESTRICT ]
- conversion_name
+ name
-DROP DOMAIN domainname [, ...] [ CASCADE | RESTRICT ]
+DROP DOMAIN name [, ...] [ CASCADE | RESTRICT ]
- domainname
+ name
The name (optionally schema-qualified) of an existing domain.
DROP FUNCTION
- remove a user-defined function
+ remove a function
DROP LANGUAGE
- remove a user-defined procedural language
+ remove a procedural language
DROP OPERATOR CLASS
- remove a user-defined operator class
+ remove an operator class
DROP OPERATOR
- remove a user-defined operator
+ remove an operator
DROP TYPE
- remove a user-defined data type
+ remove a data type
-DROP TYPE typename [, ...] [ CASCADE | RESTRICT ]
+DROP TYPE name [, ...] [ CASCADE | RESTRICT ]
- typename
+ name
The name (optionally schema-qualified) of the data type to remove.
-FETCH [ direction { FROM | IN } ] cursor
+FETCH [ direction { FROM | IN } ] cursorname
where direction can be empty or one of:
- cursor
+ cursorname
An open cursor's name.
MOVE
- reposition a cursor
+ position a cursor
-MOVE [ direction { FROM | IN } ] cursor
+MOVE [ direction { FROM | IN } ] cursorname
MOVE repositions a cursor without retrieving any data.
MOVE works exactly like the FETCH
- command, except it only repositions the cursor and does not return rows.
+ command, except it only positions the cursor and does not return rows.
-RESET parameter
-
-
+RESET name
RESET ALL
- parameter
+ name
The name of a run-time parameter. See
-SET [ SESSION | LOCAL ] variable { TO | = } { value | 'value' | DEFAULT }
+SET [ SESSION | LOCAL ] name { TO | = } { value | 'value' | DEFAULT }
SET [ SESSION | LOCAL ] TIME ZONE { timezone | LOCAL | DEFAULT }
- variable
+ name
Name of a settable run-time parameter. Available parameters are
-
+
SET CONSTRAINTS
-SET CONSTRAINTS { ALL | constraint [, ...] } { DEFERRED | IMMEDIATE }
+SET CONSTRAINTS { ALL | name [, ...] } { DEFERRED | IMMEDIATE }