15.2. Renaming an Analytical Table #
You can rename an analytical table using the ALTER TABLE command with the RENAME TO clause.
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_nameRENAME TOnew_table_name;
Where:
table_name: The current name of the analytical table.new_table_name: The new name of the analytical table.
Example 15.2. Renaming an Analytical Table
ALTER TABLE axe_table RENAME TO axe_table_renamed;