16.1. Creating an Analytical Table Column #

You can create an analytical table column using the ALTER TABLE command with the ADD COLUMN clause.

Before creating a column, create an analytical table.

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 ADD COLUMN column_name data_type;

Where:

  • table_name: The name of the analytical table where the column must be created.

  • column_name and data_type: The unique name and data type of the analytical table column that must be created. For more information about supported data types, refer to Section D.2.

Example 16.1. Creating an Analytical Table Column

  ALTER TABLE axe_table ADD COLUMN status TEXT;

FAQ