Outputs
-
-
-
-status
-
-
+
Message returned if table or column is not available.
-
-
-
-
-
-
+
Outputs
-
-
-
-
- status
-
-
Error message returned if the user specified doesn't
exist.
-
-
-
-
-
-
-
+
Outputs
-
-
-
-
- status
-
-
+
This indicates that a transaction was already in progress.
The current transaction is not affected.
-
-
-
-
-
-
-
+
Outputs
-
-
-
-
-
- status
-
-
-
This warning is given if
cursor is not
declared or has already been closed.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
-
-
-
+
Outputs
-
-
-
-status
-
-
+
If there is no transaction in progress.
-
-
-
-
-
-
+
Outputs
-
-
-
- status
-
-
+
The copy failed for the reason stated in the error message.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
+
Message returned if the command completes successfully.
-
-
-
-
-
-
Outputs
-
-
-
-
- status
-
-
+
There was a problem with creating the required directory; this operation will
- need permissions for the postgres user on the specified location.
-
-
-
-
-
-
+need permissions for the postgres user on the specified location.
+
Outputs
-
-
-
-
-status
-
-
+
This is returned if the command completes successfully.
-
-
-
-
-
-
-
-
-
-status
-
-
This error occurs if it is impossible to create the index.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
This error is returned if the function
funcname()
is not found.
-
-
-
-
-
-
1998-09-09
-CREATE OPERATOR name
- ( PROCEDURE = func_name
+CREATE OPERATOR name (
+ PROCEDURE = func_name
[, LEFTARG = type1 ]
[, RIGHTARG = type2 ]
[, COMMUTATOR = com_op ]
Outputs
-
-
-
-
-status
-
-
Message returned if the operator is successfully created.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
Message returned if the rule is successfully created.
-
-
-
-
-
+
of the following two rule definitions are accepted by
retrieve command will cause
Postgres to crash:
+
Example of a circular rewrite rule combination.
select * from EMP
+
You must have rule definition access to a class in order
Outputs
-
-
-
-
-status
-
-
+
If the minimum and maximum values are inconsistant.
-
-
-
-
-
-
+
Outputs
-
-
-
-
- status
-
-
+
if data type of default value doesn't match the
column definition's data type.
-
-
-
-
-
-
-
- CREATE TABLE
+ CREATE TABLE AS
SQL - Language Statements
- CREATE TABLE
+ CREATE TABLE AS
Creates a new table
Outputs
-
-
-
-
-status
-
-
This message is returned if the trigger is successfully created.
-
-
-
-
-
-
+
CREATE TYPE typename (
-
-Why are parentheses required around the length parameters?
-
- INPUT = input_function
- , OUTPUT = output_function
- , INTERNALLENGTH = (internallength | VARIABLE)
+ INPUT = input_function
+ , OUTPUT = output_function
+ , INTERNALLENGTH = (internallength | VARIABLE)
[ , EXTERNALLENGTH = (externallength | VARIABLE) ]
[ , ELEMENT = element ]
[ , DELIMITER = delimiter ]
Outputs
-
-
-
-
-status
-
-
+
Message returned if the type is successfully created.
-
-
-
-
-
-
+
-
-
-
-status
-
-
I don't understand this and I don't know how to get
this error message.
-
-
-
-
-
Outputs
-
-
-
-
-status
-
-
CREATE VIEW vista AS SELECT 'Hello World'::text
-
-
-
-
-
-
+
To create the database demo
using the postmaster on the local host, port 5432:
+
createdb demo
To create the database demo
using the postmaster on host eden, port 5000:
+
createdb -p 5000 -h eden demo
PGREALM
environment variables will be passed on to
-and processed as described in app-psql">.
+and processed as described in psql-ref">.
will ask a series of questions to obtain parameters not specified on
- SQL_CURRENT_DATE
+ CURRENT_DATE
Returns the current date
Inputs
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
+None.
Outputs
-
-
-
-
-
-
- Returns "today"
+date
+
-
-
-
-
-
-
+ Returns "today".
- SQL_CURRENT_TIME
+ CURRENT_TIME
Returns the current local time
Inputs
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
+None.
Outputs
-
-
-
-
-
-
- <ReturnValue>Returns "now"e>
-
+ <replaceable>timee>
+
-
-
-
-
-
-
+ Returns "now"
+
- SQL_CURRENT_TIMESTAMP
+ CURRENT_TIMESTAMP
Returns the current date and time
Inputs
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
+None.
+
Outputs
-
-
-
-
-
-
- Returns "today" and "now".e>
-
+timestampe>
+
-
-
-
-
-
-
+ Returns "today" and "now".
+
- SQL_CURRENT_USER
+ CURRENT_USER
Returns the current user name
Inputs
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
+
+None.
Outputs
-
-
-
-
-
-
+
- <ReturnValue>The name of the current user.e>
+ <replaceable>usernamee>
-
-
-
-
-
-
+The name of the current user.
+
Outputs
-
-
-
-
-status
-
-
If count is 0,
no rows were deleted.
-
-
-
-
-
-
+
PGREALM
environment variables will be passed on to
-and processed as described in app-psql">.
+and processed as described in psql-ref">.
Once invoked,
destroyuser
Outputs
-
-
-
-
-status
-
-
This message occurs if the aggregate function specified does not
exist in the database.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
+
This message occurs if the specified database does not exist.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
+
This message is given if the function specified does not
exist in the current database.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
This message occurs if index_name
is not an index in the database.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
This message occurs if the language
"langname" is
not found.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
+
This message occurs if the specified right unary operator
specified does not exist.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
This message occurs if the specified rule does not exist.
-
-
-
-
-
-
Outputs
-
-
-
-
-status
-
-
+
This message occurs if the specified sequence does not exist.
-
-
-
-
-
-
Outputs
-
-
-
-
-status
-
-
If the specified table or view does not exist in the database.
-
-
-
-
-
-
Outputs
-
-
-
-
-status
-
-
-
+
+
DROP
This message occurs if the trigger specified does not exist.
-
-
-
-
-
-
-
+
+
Outputs
-
-
-
-
-status
-
-
This message occurs if the specified type is not found.
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
-
-
-
-
+
Outputs
-
-
-
-
-status
-
-
-
-
-
- DROP
-
-
+
+
+
+
+DROP
+
+
The message returned if the command is successful.
-
-
-
-
-
-
- ERROR: RewriteGetRuleEventRel: rule "_RETview" not found
-
-
- This message occurs if the specified view does not exist in
- the database.
-
-
-
-
-
-
-
-
+
+
+
+
+ERROR: RewriteGetRuleEventRel: rule "_RETview" not found
+
+
+This message occurs if the specified view does not exist in
+the database.
+
+
+
Explicit query plan from the
Postgres backend.
-
-
-
-status
-
-
EXPLAIN
Flag sent after query plan is shown.
-
FETCH [ selector ] [ count ]
{ IN | FROM } cursor
-FETCH [ RELATIVE ] [ { [ # | ALL | NEXT | PRIOR ] } ] FROM ] cursor
+FETCH [ RELATIVE ] [ { [ # | ALL | NEXT | PRIOR ] } ]
+ FROM ] cursor
The name of an object to which to grant access.
The possible objects are:
-
-
- table
-
- view
-
- sequence
-
- index
-
+
+
+
+table
+
+
+view
+
+
+sequence
+
+
+index
+
-
-
-
-status
-
-
-
to give privileges to the specified group or users.
-
-Only the Unix superuser can create a database system with a
-different user as
Postgres superuser.
+Only the Unix superuser (root)
+ can create a database system with an owner
+different from the
Postgres superuser.
Outputs
-
-
-
-status
-
-
+
is the number of rows inserted.
-
-
-
-
-status
-
-
If this backend is already registered for that notify condition.
-
-
-
-
-
-
-
-
-status
-
-
-
with the appropriate full path name specified, to avoid this message.
-
-
-
-
-status
-
-
-
does not exist.
-
-
-
-
-status
-
-
-
Acknowledgement that notify command has executed.
-
-
-
-
-
-
+
Notify events
-
+ id="pg-dump">
Application
- id="pg-dump">
+
-
+ id="psql-ref">
Application
- id="psql-ref">
+
-The full set of command-line arguments and meta-commands are described in a following
+The full set of command-line arguments and meta-commands are described in a subsequent
section.
+The port number on which a
Postgres server is listening.
+Defaults to 5432.
+The target for display of messages from the client support library.
+Not required.
If PGOPTION
is specified, then the options it contains are parsed
-.BR before
+before
any command-line options.
-
-
-
-status
-
-
-
variable is successfully reset
to its default value..
-
The name of an object from which to revoke access.
The possible objects are:
-
-
- table
-
- view
-
- sequence
-
- index
-
+
+
+table
+
+
+view
+
+
+sequence
+
+
+index
+
-
-
-
-status
-
-
-
to revoke privileges from a group or users.
-
- SELECT
+SELECT
SQL - Language Statements
- SELECT
+SELECT
Retrieve rows from a table or view.
-
-
- status
-
-
-
-
count
The count of rows returned by the query.
-
-
-
-
- SELECT INTO
+SELECT INTO
SQL - Language Statements
- SELECT INTO
+SELECT INTO
- Create a new table from an existing table or view
+Create a new table from an existing table or view
-
-
-
-status
-
-
-
If the command fails to set variable.
-
-
+
-
-
-
-status
-
-
-
If the TZ environment variable is not set.
-
-
-
-
-status
-
-
Acknowledgement that statement has executed.
-
-
-
-
-
-
+
for the current session.
--ref" endterm="sql-notify-ref">
+
contains a more extensive
discussion of the use of LISTEN and
NOTIFY.