select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Search PostgreSQL documentation

PG 18 · Browse by category, or enter a name or keyword

Popular entries9769
DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description ALTER USER is now an alias for ALTER ROLE.Description DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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 DescriptionManual ChaptersPG18Description 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