postgresql_16:7.1 SQL Commands
PostgreSQL 16 > Reference > SQL Commands
This part contains reference information for the SQL commands supported by PostgreSQL. By “SQL” the language in general is meant; information about the standards conformance and compatibility of each command can be found on the respective reference page.
Subsections
- postgresql_16:7.1.1 ABORT
- postgresql_16:7.1.2 ALTER AGGREGATE
- postgresql_16:7.1.3 ALTER COLLATION
- postgresql_16:7.1.4 ALTER CONVERSION
- postgresql_16:7.1.5 ALTER DATABASE
- postgresql_16:7.1.6 ALTER DEFAULT PRIVILEGES
- postgresql_16:7.1.7 ALTER DOMAIN
- postgresql_16:7.1.8 ALTER EVENT TRIGGER
- postgresql_16:7.1.9 ALTER EXTENSION
- postgresql_16:7.1.10 ALTER FOREIGN DATA WRAPPER
- postgresql_16:7.1.11 ALTER FOREIGN TABLE
- postgresql_16:7.1.12 ALTER FUNCTION
- postgresql_16:7.1.13 ALTER GROUP
- postgresql_16:7.1.14 ALTER INDEX
- postgresql_16:7.1.15 ALTER LANGUAGE
- postgresql_16:7.1.16 ALTER LARGE OBJECT
- postgresql_16:7.1.17 ALTER MATERIALIZED VIEW
- postgresql_16:7.1.18 ALTER OPERATOR
- postgresql_16:7.1.19 ALTER OPERATOR CLASS
- postgresql_16:7.1.20 ALTER OPERATOR FAMILY
- postgresql_16:7.1.21 ALTER POLICY
- postgresql_16:7.1.22 ALTER PROCEDURE
- postgresql_16:7.1.23 ALTER PUBLICATION
- postgresql_16:7.1.24 ALTER ROLE
- postgresql_16:7.1.25 ALTER ROUTINE
- postgresql_16:7.1.26 ALTER RULE
- postgresql_16:7.1.27 ALTER SCHEMA
- postgresql_16:7.1.28 ALTER SEQUENCE
- postgresql_16:7.1.29 ALTER SERVER
- postgresql_16:7.1.30 ALTER STATISTICS
- postgresql_16:7.1.31 ALTER SUBSCRIPTION
- postgresql_16:7.1.32 ALTER SYSTEM
- postgresql_16:7.1.33 ALTER TABLE
- postgresql_16:7.1.34 ALTER TABLESPACE
- postgresql_16:7.1.35 ALTER TEXT SEARCH CONFIGURATION
- postgresql_16:7.1.36 ALTER TEXT SEARCH DICTIONARY
- postgresql_16:7.1.37 ALTER TEXT SEARCH PARSER
- postgresql_16:7.1.38 ALTER TEXT SEARCH TEMPLATE
- postgresql_16:7.1.39 ALTER TRIGGER
- postgresql_16:7.1.40 ALTER TYPE
- postgresql_16:7.1.41 ALTER USER
- postgresql_16:7.1.42 ALTER USER MAPPING
- postgresql_16:7.1.43 ALTER VIEW
- postgresql_16:7.1.44 ANALYZE
- postgresql_16:7.1.45 BEGIN
- postgresql_16:7.1.46 CALL
- postgresql_16:7.1.47 CHECKPOINT
- postgresql_16:7.1.48 CLOSE
- postgresql_16:7.1.49 CLUSTER
- postgresql_16:7.1.50 COMMENT
- postgresql_16:7.1.51 COMMIT
- postgresql_16:7.1.52 COMMIT PREPARED
- postgresql_16:7.1.53 COPY
- postgresql_16:7.1.54 CREATE ACCESS METHOD
- postgresql_16:7.1.55 CREATE AGGREGATE
- postgresql_16:7.1.56 CREATE CAST
- postgresql_16:7.1.57 CREATE COLLATION
- postgresql_16:7.1.58 CREATE CONVERSION
- postgresql_16:7.1.59 CREATE DATABASE
- postgresql_16:7.1.60 CREATE DOMAIN
- postgresql_16:7.1.61 CREATE EVENT TRIGGER
- postgresql_16:7.1.62 CREATE EXTENSION
- postgresql_16:7.1.63 CREATE FOREIGN DATA WRAPPER
- postgresql_16:7.1.64 CREATE FOREIGN TABLE
- postgresql_16:7.1.65 CREATE FUNCTION
- postgresql_16:7.1.66 CREATE GROUP
- postgresql_16:7.1.67 CREATE INDEX
- postgresql_16:7.1.68 CREATE LANGUAGE
- postgresql_16:7.1.69 CREATE MATERIALIZED VIEW
- postgresql_16:7.1.70 CREATE OPERATOR
- postgresql_16:7.1.71 CREATE OPERATOR CLASS
- postgresql_16:7.1.72 CREATE OPERATOR FAMILY
- postgresql_16:7.1.73 CREATE POLICY
- postgresql_16:7.1.74 CREATE PROCEDURE
- postgresql_16:7.1.75 CREATE PUBLICATION
- postgresql_16:7.1.76 CREATE ROLE
- postgresql_16:7.1.77 CREATE RULE
- postgresql_16:7.1.78 CREATE SCHEMA
- postgresql_16:7.1.79 CREATE SEQUENCE
- postgresql_16:7.1.80 CREATE SERVER
- postgresql_16:7.1.81 CREATE STATISTICS
- postgresql_16:7.1.82 CREATE SUBSCRIPTION
- postgresql_16:7.1.83 CREATE TABLE
- postgresql_16:7.1.84 CREATE TABLE AS
- postgresql_16:7.1.85 CREATE TABLESPACE
- postgresql_16:7.1.86 CREATE TEXT SEARCH CONFIGURATION
- postgresql_16:7.1.87 CREATE TEXT SEARCH DICTIONARY
- postgresql_16:7.1.88 CREATE TEXT SEARCH PARSER
- postgresql_16:7.1.89 CREATE TEXT SEARCH TEMPLATE
- postgresql_16:7.1.90 CREATE TRANSFORM
- postgresql_16:7.1.91 CREATE TRIGGER
- postgresql_16:7.1.92 CREATE TYPE
- postgresql_16:7.1.93 CREATE USER
- postgresql_16:7.1.94 CREATE USER MAPPING
- postgresql_16:7.1.95 CREATE VIEW
- postgresql_16:7.1.96 DEALLOCATE
- postgresql_16:7.1.97 DECLARE
- postgresql_16:7.1.98 DELETE
- postgresql_16:7.1.99 DISCARD
- postgresql_16:7.1.100 DO
- postgresql_16:7.1.101 DROP ACCESS METHOD
- postgresql_16:7.1.102 DROP AGGREGATE
- postgresql_16:7.1.103 DROP CAST
- postgresql_16:7.1.104 DROP COLLATION
- postgresql_16:7.1.105 DROP CONVERSION
- postgresql_16:7.1.106 DROP DATABASE
- postgresql_16:7.1.107 DROP DOMAIN
- postgresql_16:7.1.108 DROP EVENT TRIGGER
- postgresql_16:7.1.109 DROP EXTENSION
- postgresql_16:7.1.110 DROP FOREIGN DATA WRAPPER
- postgresql_16:7.1.111 DROP FOREIGN TABLE
- postgresql_16:7.1.112 DROP FUNCTION
- postgresql_16:7.1.113 DROP GROUP
- postgresql_16:7.1.114 DROP INDEX
- postgresql_16:7.1.115 DROP LANGUAGE
- postgresql_16:7.1.116 DROP MATERIALIZED VIEW
- postgresql_16:7.1.117 DROP OPERATOR
- postgresql_16:7.1.118 DROP OPERATOR CLASS
- postgresql_16:7.1.119 DROP OPERATOR FAMILY
- postgresql_16:7.1.120 DROP OWNED
- postgresql_16:7.1.121 DROP POLICY
- postgresql_16:7.1.122 DROP PROCEDURE
- postgresql_16:7.1.123 DROP PUBLICATION
- postgresql_16:7.1.124 DROP ROLE
- postgresql_16:7.1.125 DROP ROUTINE
- postgresql_16:7.1.126 DROP RULE
- postgresql_16:7.1.127 DROP SCHEMA
- postgresql_16:7.1.128 DROP SEQUENCE
- postgresql_16:7.1.129 DROP SERVER
- postgresql_16:7.1.130 DROP STATISTICS
- postgresql_16:7.1.131 DROP SUBSCRIPTION
- postgresql_16:7.1.132 DROP TABLE
- postgresql_16:7.1.133 DROP TABLESPACE
- postgresql_16:7.1.134 DROP TEXT SEARCH CONFIGURATION
- postgresql_16:7.1.135 DROP TEXT SEARCH DICTIONARY
- postgresql_16:7.1.136 DROP TEXT SEARCH PARSER
- postgresql_16:7.1.137 DROP TEXT SEARCH TEMPLATE
- postgresql_16:7.1.138 DROP TRANSFORM
- postgresql_16:7.1.139 DROP TRIGGER
- postgresql_16:7.1.140 DROP TYPE
- postgresql_16:7.1.141 DROP USER
- postgresql_16:7.1.142 DROP USER MAPPING
- postgresql_16:7.1.143 DROP VIEW
- postgresql_16:7.1.144 END
- postgresql_16:7.1.145 EXECUTE
- postgresql_16:7.1.146 EXPLAIN
- postgresql_16:7.1.147 FETCH
- postgresql_16:7.1.148 GRANT
- postgresql_16:7.1.149 IMPORT FOREIGN SCHEMA
- postgresql_16:7.1.150 INSERT
- postgresql_16:7.1.151 LISTEN
- postgresql_16:7.1.152 LOAD
- postgresql_16:7.1.153 LOCK
- postgresql_16:7.1.154 MERGE
- postgresql_16:7.1.155 MOVE
- postgresql_16:7.1.156 NOTIFY
- postgresql_16:7.1.157 PREPARE
- postgresql_16:7.1.158 PREPARE TRANSACTION
- postgresql_16:7.1.159 REASSIGN OWNED
- postgresql_16:7.1.160 REFRESH MATERIALIZED VIEW
- postgresql_16:7.1.161 REINDEX
- postgresql_16:7.1.162 RELEASE SAVEPOINT
- postgresql_16:7.1.163 RESET
- postgresql_16:7.1.164 REVOKE
- postgresql_16:7.1.165 ROLLBACK
- postgresql_16:7.1.166 ROLLBACK PREPARED
- postgresql_16:7.1.167 ROLLBACK TO SAVEPOINT
- postgresql_16:7.1.168 SAVEPOINT
- postgresql_16:7.1.169 SECURITY LABEL
- postgresql_16:7.1.170 SELECT
- postgresql_16:7.1.171 SELECT INTO
- postgresql_16:7.1.172 SET
- postgresql_16:7.1.173 SET CONSTRAINTS
- postgresql_16:7.1.174 SET ROLE
- postgresql_16:7.1.175 SET SESSION AUTHORIZATION
- postgresql_16:7.1.176 SET TRANSACTION
- postgresql_16:7.1.177 SHOW
- postgresql_16:7.1.178 START TRANSACTION
- postgresql_16:7.1.179 TRUNCATE
- postgresql_16:7.1.180 UNLISTEN
- postgresql_16:7.1.181 UPDATE
- postgresql_16:7.1.182 VACUUM
- postgresql_16:7.1.183 VALUES