26.1. Creating a Column (metastore.add_column) #

Required privileges: Postgres Pro AXE administrator only. For more information about stored procedures and privileges, refer to Section 22.1.

Execute the following command:

  SELECT metastore.add_column('table_name', 'column_name', 'data_type');

Where:

Postgres Pro AXE performs the following actions:

  1. Verifies input parameters and user privileges.

  2. Creates a new entry in the pga_column metadata table.

  3. Updates the view_sql value for the analytical table.

Example 26.1. Executing the metastore.add_column stored procedure

  SELECT metastore.add_column('testtable', 'third_col', 'uint8');