16.4. Deleting an Analytical Table Column #
You can delete an analytical table column using the ALTER TABLE command with the DROP COLUMN clause.
When you delete an analytical table column, it is unregistered from the metadata catalog. However, the Parquet files previously added to the analytical table still contain the deleted column data.
Required privileges: Superuser or the Postgres Pro AXE administrator with the following privileges:
ownership of the analytical table
the
USAGEprivilege on theduckdbschemathe
SELECTprivilege on theduckdb.tablesservice table
For more information about access management, refer to Chapter 12.
Execute the following command on the Postgres Pro AXE server:
ALTER TABLEtable_nameDROP COLUMNcolumn_name;
Where:
table_name: The name of the analytical table that contains the column.column_name: The name of the analytical table column that must be deleted.
Example 16.4. Deleting an Analytical Table Column
ALTER TABLE axe_table DROP COLUMN status;