18.1. Creating an Analytical Schema (metastore.add_schema) #

Required privileges: Postgres Pro AXE administrator only. For a full list of stored procedures and privileges, refer to Section 12.1.

Execute the following command on the Postgres Pro AXE server:

  SELECT metastore.add_schema('schema_name') ON CONFLICT DO NOTHING;

Where schema_name is the unique analytical schema name.

Postgres Pro AXE performs the following actions:

  1. Checks input parameters and user privileges.

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

Example 18.1. Executing the metastore.add_schema Stored Procedure

  SELECT metastore.add_schema('schema_example') ON CONFLICT DO NOTHING;