SQL Statements Index
Access Method
- CREATE ACCESS METHOD - Defines a new access method.
- DROP ACCESS METHOD - Removes an access method.
Cast
- CREATE CAST - Defines a new cast.
- DROP CAST - Removes a cast.
Collation
- CREATE COLLATION - Defines a new collation.
- ALTER COLLATION - Changes the definition of a collation.
- DROP COLLATION - Removes a previously defined collation.
Conversion
- CREATE CONVERSION - Defines a new encoding conversion.
- ALTER CONVERSION - Changes the definition of a conversion.
- DROP CONVERSION - Removes a conversion.
Cursor
- DECLARE - Defines a cursor.
- CLOSE - Closes a cursor.
- FETCH - Retrieves rows from a query using a cursor.
- MOVE - Positions a cursor.
- RETRIEVE - Retrieves rows from a query using a parallel retrieve cursor.
Database
- CREATE DATABASE - Creates a new database.
- ALTER DATABASE - Changes the attributes of a database.
- DROP DATABASE - Removes a database.
- ANALYZE - Collects statistics about a database.
- VACUUM - Garbage-collects and optionally analyzes a database.
- CHECKPOINT - Forces a write-ahead log checkpoint.
- COMMENT - Defines or changes the comment of an object.
- COPY - Copies data between a file and a table.
- LOAD - Loads or reloads a shared library file.
Domain
- CREATE DOMAIN - Defines a new domain.
- ALTER DOMAIN - Changes the definition of a domain.
- DROP DOMAIN - Removes a domain.
Extension
- CREATE EXTENSION - Registers an extension in a Apache Cloudberry.
- ALTER EXTENSION - Change the definition of an extension.
- DROP EXTENSION - Removes an extension from a Apache Cloudberry.
External Table
- CREATE EXTERNAL TABLE - Defines a new external table.
- ALTER EXTERNAL TABLE - Changes the definition of an external table.
- DROP EXTERNAL TABLE - Removes an external table definition.
Foreign Data Wrapper
- CREATE FOREIGN DATA WRAPPER - Defines a new foreign-data wrapper.
- ALTER FOREIGN DATA WRAPPER - Changes the definition of a foreign-data wrapper.
- DROP FOREIGN DATA WRAPPER - Removes a foreign-data wrapper.
Function & Aggregate Function
Function
- CREATE FUNCTION - Defines a new function.
- ALTER FUNCTION - Changes the definition of a function.
- DROP FUNCTION - Removes a function.
Aggregate Function
- CREATE AGGREGATE - Defines a new aggregate function.
- ALTER AGGREGATE - Changes the definition of an aggregate function.
- DROP AGGREGATE - Removes an aggregate function.
Foreign Table
- CREATE FOREIGN TABLE - Defines a new foreign table.
- ALTER FOREIGN TABLE - Changes the definition of a foreign table.
- DROP FOREIGN TABLE - Removes a foreign table.
User & Group
- CREATE ROLE - Defines a new database role (user or group).
- ALTER ROLE - Changes a database role (user or group).
- SET ROLE - Sets the current role identifier of the current session.
- DROP ROLE - Removes a database role.
- CREATE USER - Defines a new database role.
- ALTER USER - Changes the definition of a database role.
- DROP USER - Removes a database role.
- CREATE GROUP - Defines a new database role.
- ALTER GROUP - Changes a role name or membership.
- DROP GROUP - Removes a database role.
- DROP OWNED - Removes database objects owned by a database role.
- REASSIGN OWNED - Changes the ownership of database objects owned by a database role.
Index
- CREATE INDEX - Defines a new index.
- ALTER INDEX - Changes the definition of an index.
- REINDEX - Rebuilds indexes.
- DROP INDEX - Removes an index.
Notification
- NOTIFY - Generates a notification.
- LISTEN - Listens for a notification.
- UNLISTEN - Stops listening for a notification.
Procedural Language
- CREATE LANGUAGE - Defines a new procedural language.
- ALTER LANGUAGE - Changes the definition of a procedural language.
- DROP LANGUAGE - Removes a procedural language.
- DO - Runs anonymous code block as a transient anonymous function.
View and Materialized View
- CREATE VIEW - Defines a new view.
- ALTER VIEW - Changes properties of a view.
- DROP VIEW - Removes a view.
- CREATE MATERIALIZED VIEW - Defines a new materialized view.
- ALTER MATERIALIZED VIEW - Changes the definition of a materialized view.
- DROP MATERIALIZED VIEW - Removes a materialized view.
- REFRESH MATERIALIZED VIEW - Replaces the contents of a materialized view.
Operator & Operator Class & Operator Family
Operator
- CREATE OPERATOR - Defines a new operator.
- ALTER OPERATOR - Changes the definition of an operator.
- DROP OPERATOR - Removes an operator.
Operator Class
- CREATE OPERATOR CLASS - Defines a new operator class.
- ALTER OPERATOR CLASS - Changes the definition of an operator class.
- DROP OPERATOR CLASS - Removes an operator class.
Operator Family
- CREATE OPERATOR FAMILY - Defines a new operator family.
- ALTER OPERATOR FAMILY - Changes the definition of an operator family.
- DROP OPERATOR FAMILY - Removes an operator family.
Privilege & Security
Privilege
- GRANT - Defines access privileges.
- ALTER DEFAULT PRIVILEGES - Changes default access privileges.
- REVOKE - Removes access privileges.
Row-level Security Policy
- CREATE POLICY - Defines a new row-level security policy for a table.
- ALTER POLICY - Changes the definition of a row-level security policy.
- DROP POLICY - Removes a row-level security policy from a table.
Procedure
- CREATE PROCEDURE - Defines a new procedure.
- ALTER PROCEDURE - Changes the definition of a procedure.
- DROP PROCEDURE - Removes a procedure.
- CALL - Invokes a procedure.
Protocol
- CREATE PROTOCOL - Registers a custom data access protocol that can be specified when defining a Apache Cloudberry external table.
- ALTER PROTOCOL - Changes the definition of a protocol.
- DROP PROTOCOL - Removes a data access protocol from a database.
Resource Management
Resource Group
- CREATE RESOURCE GROUP - Defines a new resource group.
- ALTER RESOURCE GROUP - Changes the limits of a resource group.
- DROP RESOURCE GROUP - Removes a resource group.
Resource Queue
- CREATE RESOURCE QUEUE - Defines a new resource queue.
- ALTER RESOURCE QUEUE - Changes the limits of a resource queue.
- DROP RESOURCE QUEUE - Removes a resource queue.
Routine
- ALTER ROUTINE - Changes the definition of a routine.
- DROP ROUTINE - Removes a routine.