postgresql_16:7.1.33.2 Parameters
PostgreSQL 16 > Reference > SQL Commands > ALTER TABLE > Parameters
IF EXISTS
Do not throw an error if the table does not exist. A notice is issued in this case.
*name*
The name (optionally schema-qualified) of an existing table to alter. If ONLY is specified before the table name, only that table is altered. If ONLY is not specified, the table and all its descendant tables (if any) are altered. Optionally, * can be specified after the table name to explicitly indicate that descendant tables are included.
*column_name*
Name of a new or existing column.
*new_column_name*
New name for an existing column.
*new_name*
New name for the table.
*data_type*
Data type of the new column, or new data type for an existing column.
*table_constraint*
New table constraint for the table.
*constraint_name*
Name of a new or existing constraint.
CASCADE
Automatically drop objects that depend on the dropped column or constraint (for example, views referencing the column), and in turn all objects that depend on those objects (see (see postgresql_16:3.2.14)).
RESTRICT
Refuse to drop the column or constraint if there are any dependent objects. This is the default behavior.
*trigger_name*
Name of a single trigger to disable or enable.
ALL
Disable or enable all triggers belonging to the table. (This requires superuser privilege if any of the triggers are internally generated constraint triggers, such as those that are used to implement foreign key constraints or deferrable uniqueness and exclusion constraints.)
USER
Disable or enable all triggers belonging to the table except for internally generated constraint triggers, such as those that are used to implement foreign key constraints or deferrable uniqueness and exclusion constraints.
*index_name*
The name of an existing index.
*storage_parameter*
The name of a table storage parameter.
*value*
The new value for a table storage parameter. This might be a number or a word depending on the parameter.
*parent_table*
A parent table to associate or de-associate with this table.
*new_owner*
The user name of the new owner of the table.
*new_access_method*
The name of the access method to which the table will be converted.
*new_tablespace*
The name of the tablespace to which the table will be moved.
*new_schema*
The name of the schema to which the table will be moved.
*partition_name*
The name of the table to attach as a new partition or to detach from this table.
*partition_bound_spec*
The partition bound specification for a new partition. Refer to (see postgresql_16:7.1.83) for more details on the syntax of the same.