Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9769
DescriptionDescription
ALTER EXTENSION changes the definition of an installed extension. There are several subforms:
UPDATE This form updates the extension to a newer version. The extension must supply…Description
DescriptionDescription
ALTER FOREIGN DATA WRAPPER changes the definition of a foreign-data wrapper. The first form of the command changes the support functions or the generic options of the foreign-dat…Description
DescriptionDescription
ALTER FOREIGN TABLE changes the definition of an existing foreign table. There are several subforms:
ADD [ COLUMN ] [ IF NOT EXISTS ] This form adds a new column to the foreign t…Description
DescriptionDescription
ALTER FUNCTION changes the definition of a function.
You must own the function to use ALTER FUNCTION. To change a function's schema, you must also have CREATE privilege on the ne…Description
DescriptionDescription
ALTER GROUP changes the attributes of a user group. This is an obsolete command, though still accepted for backwards compatibility, because groups (and users too) have been super…Description
DescriptionDescription
ALTER INDEX changes the definition of an existing index. There are several subforms described below. Note that the lock level required may differ for each subform. An ACCESS EXCL…Description
DescriptionDescription
ALTER LANGUAGE changes the definition of a procedural language. The only functionality is to rename the language or assign a new owner. You must be superuser or owner of the lang…Description
DescriptionDescription
ALTER LARGE OBJECT changes the definition of a large object.
You must own the large object to use ALTER LARGE OBJECT. To alter the owner, you must also be able to SET ROLE to the…Description
DescriptionDescription
ALTER MATERIALIZED VIEW changes various auxiliary properties of an existing materialized view.
You must own the materialized view to use ALTER MATERIALIZED VIEW. To change a mate…Description
DescriptionDescription
ALTER OPERATOR CLASS changes the definition of an operator class.
You must own the operator class to use ALTER OPERATOR CLASS. To alter the owner, you must be able to SET ROLE to…Description
DescriptionDescription
ALTER OPERATOR changes the definition of an operator.
You must own the operator to use ALTER OPERATOR. To alter the owner, you must be able to SET ROLE to the new owning role, an…Description
DescriptionDescription
ALTER OPERATOR FAMILY changes the definition of an operator family. You can add operators and support functions to the family, remove them from the family, or change the family's…Description
DescriptionDescription
ALTER POLICY changes the definition of an existing row-level security policy. Note that ALTER POLICY only allows the set of roles to which the policy applies and the USING and WI…Description
DescriptionDescription
ALTER PROCEDURE changes the definition of a procedure.
You must own the procedure to use ALTER PROCEDURE. To change a procedure's schema, you must also have CREATE privilege on t…Description
DescriptionDescription
The command ALTER PUBLICATION can change the attributes of a publication.
The first three variants change which tables/schemas are part of the publication. The SET clause will re…Description
DescriptionDescription
ALTER ROLE changes the attributes of a PostgreSQL role.
The first variant of this command listed in the synopsis can change many of the role attributes that can be specified in C…Description
DescriptionDescription
ALTER ROUTINE changes the definition of a routine, which can be an aggregate function, a normal function, or a procedure. See under ALTER AGGREGATE, ALTER FUNCTION, and ALTER PRO…Description
DescriptionDescription
ALTER RULE changes properties of an existing rule. Currently, the only available action is to change the rule's name.
To use ALTER RULE, you must own the table or view that the r…Description
DescriptionDescription
ALTER SCHEMA changes the definition of a schema.
You must own the schema to use ALTER SCHEMA. To rename a schema you must also have the CREATE privilege for the database. To alte…Description
DescriptionDescription
ALTER SEQUENCE changes the parameters of an existing sequence generator. Any parameters not specifically set in the ALTER SEQUENCE command retain their prior settings.
You must o…Description
DescriptionDescription
ALTER SERVER changes the definition of a foreign server. The first form changes the server version string or the generic options of the server (at least one clause is required). …Description
DescriptionDescription
ALTER STATISTICS changes the parameters of an existing extended statistics object. Any parameters not specifically set in the ALTER STATISTICS command retain their prior settings…Description
DescriptionDescription
ALTER SUBSCRIPTION can change most of the subscription properties that can be specified in CREATE SUBSCRIPTION.
You must own the subscription to use ALTER SUBSCRIPTION. To rename…Description
DescriptionDescription
ALTER SYSTEM is used for changing server configuration parameters across the entire database cluster. It can be more convenient than the traditional method of manually editing th…Description
DescriptionDescription
ALTER TABLE changes the definition of an existing table. There are several subforms described below. Note that the lock level required may differ for each subform. An ACCESS EXCL…Description
DescriptionDescription
ALTER TABLESPACE can be used to change the definition of a tablespace.
You must own the tablespace to change the definition of a tablespace. To alter the owner, you must also be …Description
DescriptionDescription
ALTER TRIGGER changes properties of an existing trigger.
The RENAME clause changes the name of the given trigger without otherwise changing the trigger definition. If the table t…Description
DescriptionDescription
ALTER TEXT SEARCH CONFIGURATION changes the definition of a text search configuration. You can modify its mappings from token types to dictionaries, or change the configuration's…Description
DescriptionDescription
ALTER TEXT SEARCH DICTIONARY changes the definition of a text search dictionary. You can change the dictionary's template-specific options, or change the dictionary's name or own…Description
DescriptionDescription
ALTER TEXT SEARCH PARSER changes the definition of a text search parser. Currently, the only supported functionality is to change the parser's name.
You must be a superuser to us…Description
DescriptionDescription
ALTER TEXT SEARCH TEMPLATE changes the definition of a text search template. Currently, the only supported functionality is to change the template's name.
You must be a superuser…Description
DescriptionDescription
ALTER TYPE changes the definition of an existing type. There are several subforms:
OWNER This form changes the owner of the type. RENAME This form changes the name of the type. S…Description
DescriptionDescription
ALTER USER is now an alias for ALTER ROLE.Description
DescriptionDescription
ALTER USER MAPPING changes the definition of a user mapping.
The owner of a foreign server can alter user mappings for that server for any user. Also, a user can alter a user map…Description
DescriptionDescription
ALTER VIEW changes various auxiliary properties of a view. (If you want to modify the view's defining query, use CREATE OR REPLACE VIEW.)
You must own the view to use ALTER VIEW.…Description
DescriptionDescription
ANALYZE collects statistics about the contents of tables in the database, and stores the results in the pg_statistic system catalog. Subsequently, the query planner uses these st…Description
DescriptionDescription
BEGIN initiates a transaction block, that is, all statements after a BEGIN command will be executed in a single transaction until an explicit COMMIT or ROLLBACK is given. By defa…Description
DescriptionDescription
CALL executes a procedure.
If the procedure has any output parameters, then a result row will be returned, containing the values of those parameters.Description
DescriptionDescription
A checkpoint is a point in the write-ahead log sequence at which all data files have been updated to reflect the information in the log. All data files will be flushed to disk. R…Description
DescriptionDescription
CLOSE frees the resources associated with an open cursor. After the cursor is closed, no subsequent operations are allowed on it. A cursor should be closed when it is no longer n…Description
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open