+
+
+
dblink_connect
3
opens a persistent connection to a remote database
-
-
-
dblink_connect(text connstr) returns text
+
+
+
dblink_connect_u
3
opens a persistent connection to a remote database, insecurely
-
-
-
dblink_connect_u(text connstr) returns text
+
+
+
dblink_disconnect
3
closes a persistent connection to a remote database
-
-
-
dblink_disconnect() returns text
+
+
+
dblink
3
executes a query in a remote database
-
-
-
dblink(text connname, text sql [, bool fail_on_error]) returns setof record
+
+
+
dblink_exec
3
executes a command in a remote database
-
-
-
dblink_exec(text connname, text sql [, bool fail_on_error]) returns text
+
+
+
dblink_open
3
opens a cursor in a remote database
-
-
-
dblink_open(text cursorname, text sql [, bool fail_on_error]) returns text
+
+
+
dblink_fetch
3
returns rows from an open cursor in a remote database
-
-
-
dblink_fetch(text cursorname, int howmany [, bool fail_on_error]) returns setof record
+
+
+
dblink_close
3
closes a cursor in a remote database
-
-
-
dblink_close(text cursorname [, bool fail_on_error]) returns text
+
+
+
dblink_get_connections
3
returns the names of all open named dblink connections
-
-
-
dblink_get_connections() returns text[]
+
+
+
dblink_error_message
3
gets last error message on the named connection
-
-
-
dblink_error_message(text connname) returns text
+
+
+
dblink_send_query
3
sends an async query to a remote database
-
-
-
dblink_send_query(text connname, text sql) returns int
+
+
+
dblink_is_busy
3
checks if connection is busy with an async query
-
-
-
dblink_is_busy(text connname) returns int
+
+
+
dblink_get_notify
3
retrieve async notifications on a connection
-
-
-
dblink_get_notify() returns setof (notify_name text, be_pid int, extra text)
+
+
+
dblink_get_result
3
gets an async query result
-
-
-
dblink_get_result(text connname [, bool fail_on_error]) returns setof record
+
+
+
dblink_cancel_query
3
cancels any active query on the named connection
-
-
-
dblink_cancel_query(text connname) returns text
+
+
+
dblink_get_pkey
3
-
-
-
dblink_get_pkey(text relname) returns setof dblink_pkey_results
+
+
dblink_build_sql_insert
+
+
dblink_build_sql_insert
3
-
-
dblink_build_sql_insert
-
-
dblink_build_sql_insert(text relname,
+
+
dblink_build_sql_delete
+
+
dblink_build_sql_delete
3
-
-
dblink_build_sql_delete
-
-
dblink_build_sql_delete(text relname,
+
+
dblink_build_sql_update
+
+
dblink_build_sql_update
3
-
-
dblink_build_sql_update
-
-
dblink_build_sql_update(text relname,
+
+
+
oid2name
1
resolve OIDs and file nodes in a PostgreSQL data directory
-
-
-
oid2name
-->
+
+
+
1
Display a human-readable rendering of the write-ahead log of a PostgreSQL database cluster
-
-
-
pg_xlogdump
+
+
+
1
clean up PostgreSQL WAL archive files
-
-
-
pg_archivecleanup
+
+
+
1
run a benchmark test on PostgreSQL
-
-
-
pgbench
+
+
+
1
supports the creation of a PostgreSQL warm standby server
-
-
-
pg_standby
+
+
+
1
determine fastest wal_sync_method for PostgreSQL
-
-
-
pg_test_fsync
+
+
+
1
measure timing overhead
-
-
-
pg_test_timing
+
+
+
1
upgrade a PostgreSQL server instance
-
-
-
pg_upgrade
-->
+
+
+
ABORT
7
abort the current transaction
-
-
-
ABORT [ WORK | TRANSACTION ]
-->
+
+
+
ALTER AGGREGATE
7
change the definition of an aggregate function
-
-
-
ALTER AGGREGATE name ( aggregate_signature ) RENAME TO new_name
-->
+
+
+
ALTER COLLATION
7
change the definition of a collation
-
-
-
ALTER COLLATION name RENAME TO new_name
-->
+
+
+
ALTER CONVERSION
7
change the definition of a conversion
-
-
-
ALTER CONVERSION name RENAME TO new_name
-->
+
+
+
ALTER DATABASE
7
change a database
-
-
-
ALTER DATABASE name [ [ WITH ] option [ ... ] ]
-->
+
+
ALTER DEFAULT PRIVILEGES
+
+
ALTER DEFAULT PRIVILEGES
7
define default access privileges
-
-
ALTER DEFAULT PRIVILEGES
-
-
ALTER DEFAULT PRIVILEGES
-->
+
+
+
ALTER DOMAIN
7
-
-
-
ALTER DOMAIN name
-->
+
+
+
ALTER EVENT TRIGGER
7
change the definition of an event trigger
-
-
-
ALTER EVENT TRIGGER name DISABLE
-->
+
+
+
ALTER EXTENSION
7
-
-
-
ALTER EXTENSION name UPDATE [ TO new_version ]
-->
+
+
ALTER FOREIGN DATA WRAPPER
+
+
ALTER FOREIGN DATA WRAPPER
7
change the definition of a foreign-data wrapper
-
-
ALTER FOREIGN DATA WRAPPER
-
-
ALTER FOREIGN DATA WRAPPER name
-->
+
+
+
ALTER FOREIGN TABLE
7
change the definition of a foreign table
-
-
-
ALTER FOREIGN TABLE [ IF EXISTS ] name
-->
+
+
+
ALTER FUNCTION
7
change the definition of a function
-
-
-
ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
-->
+
+
+
ALTER GROUP
7
change role name or membership
-
-
-
ALTER GROUP group_name ADD USER user_name [, ... ]
-->
+
+
+
ALTER INDEX
7
change the definition of an index
-
-
-
ALTER INDEX [ IF EXISTS ] name RENAME TO new_name
-->
+
+
+
ALTER LANGUAGE
7
change the definition of a procedural language
-
-
-
ALTER [ PROCEDURAL ] LANGUAGE name RENAME TO new_name
-->
+
+
+
ALTER LARGE OBJECT
7
change the definition of a large object
-
-
-
ALTER LARGE OBJECT large_object_oid OWNER TO new_owner
-->
+
+
ALTER MATERIALIZED VIEW
+
+
ALTER MATERIALIZED VIEW
7
change the definition of a materialized view
-
-
ALTER MATERIALIZED VIEW
-
-
ALTER MATERIALIZED VIEW [ IF EXISTS ] name
-->
+
+
+
ALTER OPERATOR CLASS
7
change the definition of an operator class
-
-
-
ALTER OPERATOR CLASS name USING index_method RENAME TO new_name
-->
+
+
+
ALTER OPERATOR
7
change the definition of an operator
-
-
-
ALTER OPERATOR name ( { left_type | NONE } , { right_type | NONE } ) OWNER TO new_owner
-->
+
+
+
ALTER OPERATOR FAMILY
7
change the definition of an operator family
-
-
-
ALTER OPERATOR FAMILY name USING index_method ADD
-->
+
+
+
ALTER ROLE
7
change a database role
-
-
-
ALTER ROLE name [ [ WITH ] option [ ... ] ]
-->
+
+
+
ALTER RULE
7
change the definition of a rule
-
-
-
ALTER RULE name ON table_name RENAME TO new_name
-->
+
+
+
ALTER SCHEMA
7
change the definition of a schema
-
-
-
ALTER SCHEMA name RENAME TO new_name
-->
+
+
+
ALTER SEQUENCE
7
-
-
-
ALTER SEQUENCE [ IF EXISTS ] name [ INCREMENT [ BY ] increment ]
-->
+
+
+
ALTER SERVER
7
change the definition of a foreign server
-
-
-
ALTER SERVER name [ VERSION 'new_version' ]
-->
+
+
+
ALTER SYSTEM
7
change a server configuration parameter
-
-
-
ALTER SYSTEM SET configuration_parameter { TO | = } { value | 'value' | DEFAULT }
-->
+
+
+
ALTER TABLE
7
change the definition of a table
-
-
-
ALTER TABLE [ IF EXISTS ] [ ONLY ] name [ * ]
-->
+
+
+
ALTER TABLESPACE
7
change the definition of a tablespace or affect objects of a tablespace
-
-
-
ALTER TABLESPACE name RENAME TO new_name
-->
+
+
+
ALTER TRIGGER
7
change the definition of a trigger
-
-
-
ALTER TRIGGER name ON table_name RENAME TO new_name
-->
+
+
ALTER TEXT SEARCH CONFIGURATION
+
+
ALTER TEXT SEARCH CONFIGURATION
7
change the definition of a text search configuration
-
-
ALTER TEXT SEARCH CONFIGURATION
-
-
ALTER TEXT SEARCH CONFIGURATION name
-->
+
+
ALTER TEXT SEARCH DICTIONARY
+
+
ALTER TEXT SEARCH DICTIONARY
7
change the definition of a text search dictionary
-
-
ALTER TEXT SEARCH DICTIONARY
-
-
ALTER TEXT SEARCH DICTIONARY name (
-->
+
+
ALTER TEXT SEARCH PARSER
+
+
ALTER TEXT SEARCH PARSER
7
change the definition of a text search parser
-
-
ALTER TEXT SEARCH PARSER
-
-
ALTER TEXT SEARCH PARSER name RENAME TO new_name
-->
+
+
ALTER TEXT SEARCH TEMPLATE
+
+
ALTER TEXT SEARCH TEMPLATE
7
change the definition of a text search template
-
-
ALTER TEXT SEARCH TEMPLATE
-
-
ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name
-->
+
+
+
ALTER TYPE
7
-
-
-
ALTER TYPE name action [, ... ]
-->
+
+
+
ALTER USER
7
change a database role
-
-
-
ALTER USER name [ [ WITH ] option [ ... ] ]
-->
+
+
+
ALTER USER MAPPING
7
change the definition of a user mapping
-
-
-
ALTER USER MAPPING FOR { user_name | USER | CURRENT_USER | PUBLIC }
-->
+
+
+
ALTER VIEW
7
change the definition of a view
-
-
-
ALTER VIEW [ IF EXISTS ] name ALTER [ COLUMN ] column_name SET DEFAULT expression
-->
+
+
+
ANALYZE
7
collect statistics about a database
-
-
-
ANALYZE [ VERBOSE ] [ table_name [ ( column_name [, ...] ) ] ]
-->
+
+
+
BEGIN
7
start a transaction block
-
-
-
BEGIN [ WORK | TRANSACTION ] [ transaction_mode [, ...] ]
+
+
+
CHECKPOINT
7
force a transaction log checkpoint
-
-
-
CHECKPOINT
-->
+
+
+
+
+ CLOSE
+
+
CLOSE
7
close a cursor
-
-
-
-
- CLOSE
-
-
CLOSE { name | ALL }
-->
+
+
+
CLUSTER
7
cluster a table according to an index
-
-
-
CLUSTER [VERBOSE] table_name [ USING index_name ]
-->
+
+
+
1
cluster a PostgreSQL database
-
-
-
clusterdb
-->
+
+
+
COMMENT
7
define or change the comment of an object
-
-
-
COMMENT ON
-->
+
+
+
COMMIT
7
commit the current transaction
-
-
-
COMMIT [ WORK | TRANSACTION ]
-->
+
+
+
COMMIT PREPARED
7
commit a transaction that was earlier prepared for two-phase commit
-
-
-
COMMIT PREPARED transaction_id
+
+
+
COPY
7
copy data between a file and a table
-
-
-
COPY table_name [ ( column_name [, ...] ) ]
-->
+
+
+
CREATE AGGREGATE
7
define a new aggregate function
-
-
-
CREATE AGGREGATE name ( [ argmode ] [ argname ] arg_data_type [ , ... ] ) (
+
+
+
CREATE CAST
7
define a new cast
-
-
-
CREATE CAST (source_type AS target_type)
+
+
+
CREATE COLLATION
7
define a new collation
-
-
-
CREATE COLLATION name (
+
+
+
CREATE CONVERSION
7
define a new encoding conversion
-
-
-
CREATE [ DEFAULT ] CONVERSION name
-->
+
+
+
CREATE DATABASE
7
create a new database
-
-
-
CREATE DATABASE name
-->
+
+
+
CREATE DOMAIN
7
define a new domain
-
-
-
CREATE DOMAIN name [ AS ] data_type
-->
+
+
+
CREATE EVENT TRIGGER
7
define a new event trigger
-
-
-
CREATE EVENT TRIGGER name
-->
+
+
+
CREATE EXTENSION
7
install an extension
-
-
-
CREATE EXTENSION [ IF NOT EXISTS ] extension_name
-->
+
+
CREATE FOREIGN DATA WRAPPER
+
+
CREATE FOREIGN DATA WRAPPER
7
define a new foreign-data wrapper
-
-
CREATE FOREIGN DATA WRAPPER
-
-
CREATE FOREIGN DATA WRAPPER name
+
+
+
CREATE FOREIGN TABLE
7
define a new foreign table
-
-
-
CREATE FOREIGN TABLE [ IF NOT EXISTS ] table_name ( [
-->
+
+
+
CREATE FUNCTION
7
define a new function
-
-
-
CREATE [ OR REPLACE ] FUNCTION
-->
+
+
+
CREATE GROUP
7
define a new database role
-
-
-
CREATE GROUP name [ [ WITH ] option [ ... ] ]
-->
+
+
+
CREATE INDEX
7
define a new index
-
-
-
CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ name ] ON table_name [ USING method ]
-->
+
+
+
CREATE LANGUAGE
7
define a new procedural language
-
-
-
CREATE [ OR REPLACE ] [ PROCEDURAL ] LANGUAGE name
-->
+
+
CREATE MATERIALIZED VIEW
+
+
CREATE MATERIALIZED VIEW
7
define a new materialized view
-
-
CREATE MATERIALIZED VIEW
-
-
CREATE MATERIALIZED VIEW table_name
-->
+
+
+
CREATE OPERATOR CLASS
7
define a new operator class
-
-
-
CREATE OPERATOR CLASS name [ DEFAULT ] FOR TYPE data_type
-->
+
+
+
CREATE OPERATOR
7
define a new operator
-
-
-
CREATE OPERATOR name (
-->
+
+
+
CREATE OPERATOR FAMILY
7
define a new operator family
-
-
-
CREATE OPERATOR FAMILY name USING index_method
-->
+
+
+
CREATE ROLE
7
define a new database role
-
-
-
CREATE ROLE name [ [ WITH ] option [ ... ] ]
-->
+
+
+
CREATE RULE
7
define a new rewrite rule
-
-
-
CREATE [ OR REPLACE ] RULE name AS ON event
-->
+
+
+
CREATE SCHEMA
7
define a new schema
-
-
-
CREATE SCHEMA schema_name [ AUTHORIZATION user_name ] [ schema_element [ ... ] ]
-->
+
+
+
CREATE SEQUENCE
7
define a new sequence generator
-
-
-
CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ]
-->
+
+
+
CREATE SERVER
7
define a new foreign server
-
-
-
CREATE SERVER server_name [ TYPE 'server_type' ] [ VERSION 'server_version' ]
-->
+
+
+
CREATE TABLE
7
define a new table
-
-
-
CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] table_name ( [
-->
+
+
+
CREATE TABLE AS
7
define a new table from the results of a query
-
-
-
CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE table_name
-->
+
+
+
CREATE TABLESPACE
7
define a new tablespace
-
-
-
CREATE TABLESPACE tablespace_name
-->
+
+
+
CREATE TRIGGER
7
define a new trigger
-
-
-
CREATE [ CONSTRAINT ] TRIGGER name { BEFORE | AFTER | INSTEAD OF } { event [ OR ... ] }
-->
+
+
CREATE TEXT SEARCH CONFIGURATION
+
+
CREATE TEXT SEARCH CONFIGURATION
7
define a new text search configuration
-
-
CREATE TEXT SEARCH CONFIGURATION
-
-
CREATE TEXT SEARCH CONFIGURATION name (
-->
+
+
CREATE TEXT SEARCH DICTIONARY
+
+
CREATE TEXT SEARCH DICTIONARY
7
define a new text search dictionary
-
-
CREATE TEXT SEARCH DICTIONARY
-
-
CREATE TEXT SEARCH DICTIONARY name (
-->
+
+
CREATE TEXT SEARCH PARSER
+
+
CREATE TEXT SEARCH PARSER
7
define a new text search parser
-
-
CREATE TEXT SEARCH PARSER
-
-
CREATE TEXT SEARCH PARSER name (
-->
+
+
CREATE TEXT SEARCH TEMPLATE
+
+
CREATE TEXT SEARCH TEMPLATE
7
define a new text search template
-
-
CREATE TEXT SEARCH TEMPLATE
-
-
CREATE TEXT SEARCH TEMPLATE name (
-->
+
+
+
CREATE TYPE
7
define a new data type
-
-
-
CREATE TYPE name AS
-->
+
+
+
CREATE USER
7
define a new database role
-
-
-
CREATE USER name [ [ WITH ] option [ ... ] ]
-->
+
+
+
CREATE USER MAPPING
7
define a new mapping of a user to a foreign server
-
-
-
CREATE USER MAPPING FOR { user_name | USER | CURRENT_USER | PUBLIC }
-->
+
+
+
CREATE VIEW
7
define a new view
-
-
-
CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] [ RECURSIVE ] VIEW name [ ( column_name [, ...] ) ]
-->
+
+
+
1
create a new PostgreSQL database
-
-
-
createdb
-->
+
+
+
1
install a PostgreSQL procedural language
-
-
-
createlang
-->
+
+
+
1
define a new PostgreSQL user account
-
-
-
createuser
-->
+
+
+
+
+ removing
+
+
DEALLOCATE
7
deallocate a prepared statement
-
-
-
-
- removing
-
-
DEALLOCATE [ PREPARE ] { name | ALL }
-->
+
+
+
+
+ DECLARE
+
+
DECLARE
7
define a cursor
-
-
-
-
- DECLARE
-
-
DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ]
-->
+
+
+
DELETE
7
delete rows of a table
-
-
-
[ WITH [ RECURSIVE ] with_query [, ...] ]
-->
+
+
+
DISCARD
7
discard session state
-
-
-
DISCARD { ALL | PLANS | SEQUENCES | TEMPORARY | TEMP }
-->
+
+
+
+
+
+
DO
7
execute an anonymous code block
-
-
-
-
-
-
DO [ LANGUAGE lang_name ] code
-->
+
+
+
DROP AGGREGATE
7
remove an aggregate function
-
-
-
DROP AGGREGATE [ IF EXISTS ] name ( aggregate_signature ) [ CASCADE | RESTRICT ]
+
+
+
DROP CAST
7
remove a cast
-
-
-
DROP CAST [ IF EXISTS ] (source_type AS target_type) [ CASCADE | RESTRICT ]
+
+
+
DROP COLLATION
7
remove a collation
-
-
-
DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
+
+
+
DROP CONVERSION
7
remove a conversion
-
-
-
DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
+
DROP DATABASE
7
remove a database
-
-
-
DROP DATABASE [ IF EXISTS ] name
-->
+
+
+
DROP DOMAIN
7
remove a domain
-
-
-
DROP DOMAIN [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP EVENT TRIGGER
7
remove an event trigger
-
-
-
DROP EVENT TRIGGER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
+
DROP EXTENSION
7
remove an extension
-
-
-
DROP EXTENSION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
DROP FOREIGN DATA WRAPPER
+
+
DROP FOREIGN DATA WRAPPER
7
remove a foreign-data wrapper
-
-
DROP FOREIGN DATA WRAPPER
-
-
DROP FOREIGN DATA WRAPPER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
+
+
+
DROP FOREIGN TABLE
7
remove a foreign table
-
-
-
DROP FOREIGN TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP FUNCTION
7
remove a function
-
-
-
DROP FUNCTION [ IF EXISTS ] name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
-->
+
+
+
DROP GROUP
7
remove a database role
-
-
-
DROP GROUP [ IF EXISTS ] name [, ...]
-->
+
+
+
DROP INDEX
7
remove an index
-
-
-
DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP LANGUAGE
7
remove a procedural language
-
-
-
DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
+
DROP MATERIALIZED VIEW
7
remove a materialized view
-
-
-
DROP MATERIALIZED VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP OPERATOR CLASS
7
remove an operator class
-
-
-
DROP OPERATOR CLASS [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
-->
+
+
+
DROP OPERATOR
7
remove an operator
-
-
-
DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [ CASCADE | RESTRICT ]
-->
+
+
+
DROP OPERATOR FAMILY
7
remove an operator family
-
-
-
DROP OPERATOR FAMILY [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
-->
+
+
+
DROP OWNED
7
remove database objects owned by a database role
-
-
-
DROP OWNED BY name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP ROLE
7
remove a database role
-
-
-
DROP ROLE [ IF EXISTS ] name [, ...]
-->
+
+
+
DROP RULE
7
remove a rewrite rule
-
-
-
DROP RULE [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
-->
+
+
+
DROP SCHEMA
7
remove a schema
-
-
-
DROP SCHEMA [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP SEQUENCE
7
remove a sequence
-
-
-
DROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP SERVER
7
remove a foreign server descriptor
-
-
-
DROP SERVER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
+
DROP TABLE
7
remove a table
-
-
-
DROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP TABLESPACE
7
remove a tablespace
-
-
-
DROP TABLESPACE [ IF EXISTS ] name
-->
+
+
+
DROP TRIGGER
7
remove a trigger
-
-
-
DROP TRIGGER [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
-->
+
+
DROP TEXT SEARCH CONFIGURATION
+
+
DROP TEXT SEARCH CONFIGURATION
7
remove a text search configuration
-
-
DROP TEXT SEARCH CONFIGURATION
-
-
DROP TEXT SEARCH CONFIGURATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
DROP TEXT SEARCH DICTIONARY
+
+
DROP TEXT SEARCH DICTIONARY
7
remove a text search dictionary
-
-
DROP TEXT SEARCH DICTIONARY
-
-
DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
DROP TEXT SEARCH PARSER
+
+
DROP TEXT SEARCH PARSER
7
remove a text search parser
-
-
DROP TEXT SEARCH PARSER
-
-
DROP TEXT SEARCH PARSER [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
DROP TEXT SEARCH TEMPLATE
+
+
DROP TEXT SEARCH TEMPLATE
7
remove a text search template
-
-
DROP TEXT SEARCH TEMPLATE
-
-
DROP TEXT SEARCH TEMPLATE [ IF EXISTS ] name [ CASCADE | RESTRICT ]
-->
+
+
+
DROP TYPE
7
remove a data type
-
-
-
DROP TYPE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
DROP USER
7
remove a database role
-
-
-
DROP USER [ IF EXISTS ] name [, ...]
-->
+
+
+
DROP USER MAPPING
7
remove a user mapping for a foreign server
-
-
-
DROP USER MAPPING [ IF EXISTS ] FOR { user_name | USER | CURRENT_USER | PUBLIC } SERVER server_name
-->
+
+
+
DROP VIEW
7
remove a view
-
-
-
DROP VIEW [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
-->
+
+
+
1
remove a PostgreSQL database
-
-
-
dropdb
-->
+
+
+
1
remove a PostgreSQL procedural language
-
-
-
droplang
-->
+
+
+
1
remove a PostgreSQL user account
-
-
-
dropuser
-->
+
+
+
1
embedded SQL C preprocessor
-
-
-
ecpg
-->
+
+
+
END
7
commit the current transaction
-
-
-
END [ WORK | TRANSACTION ]
-->
+
+
+
+
+ executing
+
+
EXECUTE
7
execute a prepared statement
-
-
-
-
- executing
-
-
EXECUTE name [ ( parameter [, ...] ) ]
-->
-
- EXPLAIN
- 7
- SQL - Language Statements
-
-
-
- EXPLAIN
- show the execution plan of a statement
-
-
showing the query plan
+
+ EXPLAIN
+ 7
+ SQL - Language Statements
+
+
+
+ EXPLAIN
+ show the execution plan of a statement
+
+
EXPLAIN [ ( option [, ...] ) ] statement
-->
+
+
+
+
+
+ FETCH
+
FETCH
7
retrieve rows from a query using a cursor
-
-
-
-
- FETCH
-
-
-->
+
+
+
GRANT
7
define access privileges
-
-
-
GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER }
-->
+
+
+
initdb
1
create a new PostgreSQL database cluster
-
-
-
initdb
-->
+
+
+
INSERT
7
create new rows in a table
-
-
-
[ WITH [ RECURSIVE ] with_query [, ...] ]
-->
+
+
+
LISTEN
7
listen for a notification
-
-
-
LISTEN channel
-->
+
+
+
LOAD
7
load a shared library file
-
-
-
LOAD 'filename'
-->
+
+
+
LOCK
7
lock a table
-
-
-
LOCK [ TABLE ] [ ONLY ] name [ * ] [, ...] [ IN lockmode MODE ] [ NOWAIT ]
-->
+
+
+
+
+ MOVE
+
+
MOVE
7
position a cursor
-
-
-
-
- MOVE
-
-
-->
+
+
+
NOTIFY
7
generate a notification
-
-
-
NOTIFY channel [ , payload ]
-->
+
+
+
pg_basebackup
1
take a base backup of a PostgreSQL cluster
-
-
-
pg_basebackup
+
+
+
pg_config
1
retrieve information about the installed version of PostgreSQL>
-
-
-
pg_config
-->
+
+
+
1
display control information of a PostgreSQL database cluster
-
-
-
pg_controldata
-->
+
+
+
1
initialize, start, stop, or control a PostgreSQL server
-
-
-
pg_ctl
-->
+
+
+
pg_dump
1
-
-
-
pg_dump
-->
+
+
+
1
extract a PostgreSQL database cluster into a script file
-
-
-
pg_dumpall
-->
+
+
+
1
check the connection status of a PostgreSQL server
-
-
-
pg_isready
-->
+
+
+
pg_receivexlog
1
streams transaction logs from a PostgreSQL cluster
-
-
-
pg_receivexlog
-->
+
+
+
1
reset the write-ahead log and other control information of a PostgreSQL database cluster
-
-
-
pg_resetxlog
+
+
+
pg_restore
1
-
-
-
pg_restore
-->
+
+
+
1
PostgreSQL database server
-
-
-
postgres
-->
+
+
+
1
PostgreSQL database server
-
-
-
postmaster
-->
+
+
+
+
+ creating
+
+
PREPARE
7
prepare a statement for execution
-
-
-
-
- creating
-
-
PREPARE name [ ( data_type [, ...] ) ] AS statement
-->
+
+
+
PREPARE TRANSACTION
7
prepare the current transaction for two-phase commit
-
-
-
PREPARE TRANSACTION transaction_id
-->
+
+
+
REASSIGN OWNED
7
change the ownership of database objects owned by a database role
-
-
-
REASSIGN OWNED BY old_role [, ...] TO new_role
-->
+
+
REFRESH MATERIALIZED VIEW
+
+
REFRESH MATERIALIZED VIEW
7
replace the contents of a materialized view
-
-
REFRESH MATERIALIZED VIEW
-
-
REFRESH MATERIALIZED VIEW [ CONCURRENTLY ] name
-->
+
+
+
REINDEX
7
rebuild indexes
-
-
-
REINDEX { INDEX | TABLE | DATABASE | SYSTEM } name [ FORCE ]
-->
+
+
+
1
reindex a PostgreSQL database
-
-
-
reindexdb
-->
+
+
+
+
+ releasing
+
+
RELEASE SAVEPOINT
7
destroy a previously defined savepoint
-
-
-
-
- releasing
-
-
RELEASE [ SAVEPOINT ] savepoint_name
-->
+
+
+
RESET
7
restore the value of a run-time parameter to the default value
-
-
-
RESET configuration_parameter
-->
+
+
+
REVOKE
7
remove access privileges
-
-
-
REVOKE [ GRANT OPTION FOR ]
-->
+
+
+
ROLLBACK
7
abort the current transaction
-
-
-
ROLLBACK [ WORK | TRANSACTION ]
-->
+
+
+
ROLLBACK PREPARED
7
cancel a transaction that was earlier prepared for two-phase commit
-
-
-
ROLLBACK PREPARED transaction_id
-->
+
+
+
+
+ rolling back
+
+
ROLLBACK TO SAVEPOINT
7
roll back to a savepoint
-
-
-
-
- rolling back
-
-
ROLLBACK [ WORK | TRANSACTION ] TO [ SAVEPOINT ] savepoint_name
-->
+
+
+
+
+ defining
+
+
SAVEPOINT
7
define a new savepoint within the current transaction
-
-
-
-
- defining
-
-
SAVEPOINT savepoint_name
-->
+
+
+
SECURITY LABEL
7
define or change a security label applied to an object
-
-
-
SECURITY LABEL [ FOR provider ] ON
-->
-
- SELECT
- 7
- SQL - Language Statements
-
-
-
- SELECT
- TABLE
- WITH
- retrieve rows from a table or view
-
-
in SELECT
+
+ SELECT
+ 7
+ SQL - Language Statements
+
+
+
+ SELECT
+ TABLE
+ WITH
+ retrieve rows from a table or view
+
+
[ WITH [ RECURSIVE ] with_query [, ...] ]
-->
+
+
+
SELECT INTO
7
define a new table from the results of a query
-
-
-
[ WITH [ RECURSIVE ] with_query [, ...] ]
-->
+
+
+
SET
7
change a run-time parameter
-
-
-
SET [ SESSION | LOCAL ] configuration_parameter { TO | = } { value | 'value' | DEFAULT }
+
+
+
SET CONSTRAINTS
7
set constraint check timing for the current transaction
-
-
-
SET CONSTRAINTS { ALL | name [, ...] } { DEFERRED | IMMEDIATE }
-->
+
+
+
SET ROLE
7
set the current user identifier of the current session
-
-
-
SET [ SESSION | LOCAL ] ROLE role_name
+
+
SET SESSION AUTHORIZATION
+
+
SET SESSION AUTHORIZATION
7
set the session user identifier and the current user identifier of the current session
-
-
SET SESSION AUTHORIZATION
-
-
SET [ SESSION | LOCAL ] SESSION AUTHORIZATION user_name
-
- SET TRANSACTION
- 7
- SQL - Language Statements
-
-
-
- SET TRANSACTION
- set the characteristics of the current transaction
-
-
setting
+
+ SET TRANSACTION
+ 7
+ SQL - Language Statements
+
+
+
+ SET TRANSACTION
+ set the characteristics of the current transaction
+
+
SET TRANSACTION transaction_mode [, ...]
-->
+
+
+
SHOW
7
show the value of a run-time parameter
-
-
-
SHOW name
-->
+
+
+
START TRANSACTION
7
start a transaction block
-
-
-
START TRANSACTION [ transaction_mode [, ...] ]
-->
+
+
+
TRUNCATE
7
empty a table or set of tables
-
-
-
TRUNCATE [ TABLE ] [ ONLY ] name [ * ] [, ... ]
-->
+
+
+
UNLISTEN
7
stop listening for a notification
-
-
-
UNLISTEN { channel | * }
-->
+
+
+
UPDATE
7
update rows of a table
-
-
-
[ WITH [ RECURSIVE ] with_query [, ...] ]
-->
+
+
+
VACUUM
7
garbage-collect and optionally analyze a database
-
-
-
VACUUM [ ( { FULL | FREEZE | VERBOSE | ANALYZE } [, ...] ) ] [ table_name [ (column_name [, ...] ) ] ]
-->
+
+
+
1
garbage-collect and analyze a PostgreSQL database
-
-
-
vacuumdb
-->
+
+
+
VALUES
7
compute a set of rows
-
-
-
VALUES ( expression [, ...] ) [, ...]
Interface Functions
+
SPI_connect
3
connect a procedure to the SPI manager
-
int SPI_connect(void)
+
SPI_finish
3
disconnect a procedure from the SPI manager
-
int SPI_finish(void)
+
SPI_push
3
push SPI stack to allow recursive SPI usage
-
void SPI_push(void)
+
SPI_pop
3
pop SPI stack to return from recursive SPI usage
-
void SPI_pop(void)
+
SPI_execute
3
execute a command
-
int SPI_execute(const char *
command, bool
read_only, long
count)
+
SPI_exec
3
execute a read/write command
-
int SPI_exec(const char *
command, long
count)
+
SPI_execute_with_args
3
execute a command with out-of-line parameters
-
int SPI_execute_with_args(const char *
command,
+
SPI_prepare
3
prepare a statement, without executing it yet
-
SPIPlanPtr SPI_prepare(const char *
command, int
nargs, Oid *
argtypes)
+
SPI_prepare_cursor
3
prepare a statement, without executing it yet
-
SPIPlanPtr SPI_prepare_cursor(const char *
command, int
nargs,
+
SPI_prepare_params
3
prepare a statement, without executing it yet
-
SPIPlanPtr SPI_prepare_params(const char *
command,
+
SPI_getargcount
3
prepared by SPI_prepare
-
int SPI_getargcount(SPIPlanPtr
plan)
+
SPI_getargtypeid
3
a statement prepared by SPI_prepare
-
Oid SPI_getargtypeid(SPIPlanPtr
plan, int
argIndex)
+
SPI_is_cursor_plan
3
SPI_cursor_open
-
bool SPI_is_cursor_plan(SPIPlanPtr
plan)
+
SPI_execute_plan
3
execute a statement prepared by SPI_prepare
-
int SPI_execute_plan(SPIPlanPtr
plan, Datum *
values, const char *
nulls,
+
SPI_execute_plan_with_paramlist
+
SPI_execute_plan_with_paramlist
3
execute a statement prepared by SPI_prepare
-
SPI_execute_plan_with_paramlist
-
int SPI_execute_plan_with_paramlist(SPIPlanPtr
plan,
+
SPI_execp
3
execute a statement in read/write mode
-
int SPI_execp(SPIPlanPtr
plan, Datum *
values, const char *
nulls, long
count)
+
SPI_cursor_open
3
set up a cursor using a statement created with SPI_prepare
-
Portal SPI_cursor_open(const char *
name, SPIPlanPtr
plan,
+
SPI_cursor_open_with_args
+
SPI_cursor_open_with_args
3
set up a cursor using a query and parameters
-
SPI_cursor_open_with_args
-
Portal SPI_cursor_open_with_args(const char *
name,
+
SPI_cursor_open_with_paramlist
+
SPI_cursor_open_with_paramlist
3
set up a cursor using parameters
-
SPI_cursor_open_with_paramlist
-
Portal SPI_cursor_open_with_paramlist(const char *
name,
+
SPI_cursor_find
3
find an existing cursor by name
-
Portal SPI_cursor_find(const char *
name)
+
SPI_cursor_fetch
3
fetch some rows from a cursor
-
void SPI_cursor_fetch(Portal
portal, bool
forward, long
count)
+
SPI_cursor_move
3
move a cursor
-
void SPI_cursor_move(Portal
portal, bool
forward, long
count)
+
SPI_scroll_cursor_fetch
+
SPI_scroll_cursor_fetch
3
fetch some rows from a cursor
-
SPI_scroll_cursor_fetch
-
void SPI_scroll_cursor_fetch(Portal
portal, FetchDirection
direction,
+
SPI_scroll_cursor_move
3
move a cursor
-
void SPI_scroll_cursor_move(Portal
portal, FetchDirection
direction,
+
SPI_cursor_close
3
close a cursor
-
void SPI_cursor_close(Portal
portal)
+
SPI_keepplan
3
save a prepared statement
-
int SPI_keepplan(SPIPlanPtr
plan)
+
SPI_saveplan
3
save a prepared statement
-
SPIPlanPtr SPI_saveplan(SPIPlanPtr
plan)
+
SPI_fname
3
determine the column name for the specified column number
-
char * SPI_fname(TupleDesc
rowdesc, int
colnumber)
+
SPI_fnumber
3
determine the column number for the specified column name
-
int SPI_fnumber(TupleDesc
rowdesc, const char *
colname)
+
SPI_getvalue
3
return the string value of the specified column
-
char * SPI_getvalue(HeapTuple
row, TupleDesc
rowdesc, int
colnumber)
+
SPI_getbinval
3
return the binary value of the specified column
-
Datum SPI_getbinval(HeapTuple
row, TupleDesc
rowdesc, int
colnumber,
+
SPI_gettype
3
return the data type name of the specified column
-
char * SPI_gettype(TupleDesc
rowdesc, int
colnumber)
+
SPI_gettypeid
3
return the data type OID of the specified column
-
Oid SPI_gettypeid(TupleDesc
rowdesc, int
colnumber)
+
SPI_getrelname
3
return the name of the specified relation
-
char * SPI_getrelname(Relation
rel)
+
SPI_getnspname
3
return the namespace of the specified relation
-
char * SPI_getnspname(Relation
rel)
+
SPI_palloc
3
allocate memory in the upper executor context
-
void * SPI_palloc(Size
size)
+
SPI_repalloc
3
reallocate memory in the upper executor context
-
void * SPI_repalloc(void *
pointer, Size
size)
+
SPI_pfree
3
free memory in the upper executor context
-
void SPI_pfree(void *
pointer)
+
SPI_copytuple
3
make a copy of a row in the upper executor context
-
HeapTuple SPI_copytuple(HeapTuple
row)
+
SPI_returntuple
3
prepare to return a tuple as a Datum
-
HeapTupleHeader SPI_returntuple(HeapTuple
row, TupleDesc
rowdesc)
+
SPI_modifytuple
3
create a row by replacing selected fields of a given row
-
HeapTuple SPI_modifytuple(Relation
rel, HeapTuple
row, int
ncols,
+
SPI_freetuple
3
free a row allocated in the upper executor context
-
void SPI_freetuple(HeapTuple
row)
+
SPI_freetuptable
3
function
-
void SPI_freetuptable(SPITupleTable *
tuptable)
+
SPI_freeplan
3
free a previously saved prepared statement
-
int SPI_freeplan(SPIPlanPtr
plan)
+
+
+
1
remove orphaned large objects from a PostgreSQL database
-
-
-
vacuumlo