16.2. Renaming an Analytical Table Column #

You can rename an analytical table column using the ALTER TABLE command with the RENAME COLUMN and TO clauses.

Required privileges: Superuser or the Postgres Pro AXE administrator with the following privileges:

  • ownership of the analytical table

  • the USAGE privilege on the duckdb schema

  • the SELECT privilege on the duckdb.tables service table

For more information about access management, refer to Chapter 12.

Execute the following command on the Postgres Pro AXE server:

  ALTER TABLE table_name RENAME COLUMN column_name TO new_column_name;

Where:

  • table_name: The name of the analytical table that contains the column.

  • column_name: The current name of the analytical table column.

  • new_column_name: The new name of the analytical table column.

Example 16.2. Renaming an Analytical Table Column

  ALTER TABLE axe_table RENAME COLUMN status TO state;

FAQ