Part III. Administration

This part describes the management of Postgres Pro AXE and its objects. For information about administering the Postgres Pro DBMS, refer to the official Postgres Pro documentation.

Table of Contents

12. Access Management
12.1. Stored Procedures and Privileges
12.2. Configuring the Postgres Pro AXE Administrator
12.3. Queries to Proxy Tables
12.4. Granting and Revoking Privileges (metastore.mgrant, metastore.mrevoke)
13. Secrets
13.1. Creating a Simple Secret (duckdb.create_simple_secret)
13.2. Retrieving Information about a Simple Secret (duckdb.show_simple_secret)
13.3. Deleting a Simple Secret (duckdb.drop_simple_secret)
14. Storages
14.1. Creating a Storage (metastore.add_storage)
14.2. Deleting a Storage (metastore.remove_storage)
14.3. Configuring the Parquet File Cache
14.4. Reading Storage Data
15. DuckDB Extensions
15.1. Installing a DuckDB Extension (duckdb.install_extension)
15.2. Loading a DuckDB Extension into the Session (duckdb.load_extension)
15.3. Configuring Automatic Loading of a DuckDB Extension (duckdb.autoload_extension)
16. Analytical Tables
16.1. Creating an Analytical Table (metastore.add_table)
16.2. Renaming an Analytical Table (metastore.rename_table)
16.3. Creating a Postgres Pro View for an Analytical Table (metastore.create_view)
16.4. Deleting an Analytical Table (metastore.remove_table)
17. Columns
17.1. Creating a Column (metastore.add_column)
17.2. Renaming a Column (metastore.rename_column)
17.3. Changing Column Data Type (metastore.change_column_type)
17.4. Deleting a Column (metastore.delete_column)
18. Analytical Schemas
18.1. Creating an Analytical Schema (metastore.add_schema)
18.2. Deleting an Analytical Schema (metastore.remove_schema)
19. Shared Directories
19.1. Creating a Shared Directory (metastore.add_folder)
19.2. Deleting a Shared Directory (metastore.remove_folder)
20. Parquet Files
20.1. Adding Parquet Files to an Analytical Table (metastore.add_files)
20.2. Copying the Data from Heap Tables to an Analytical Table (metastore.copy_table)
20.3. Parquet File Storage Parameters
20.4. Marking Snapshots as Expired and Deleting Parquet Files
20.5. Deleting Intermediate Data (metastore.cleanup)
20.6. Retrieving Information About Cached Parquet Files
20.7. Checking a Parquet File for Corruption
21. JSON Data
21.1. Extracting a Value from JSON Data (json_extract, json_extract_string)
21.2. Validating JSON Data (json_valid)
21.3. Retrieving JSON Data Type (json_type)
21.4. Retrieving JSON Keys (json_keys)
21.5. Retrieving the JSON Structure (json_structure)
21.6. Checking a JSON Value (json_contains)
21.7. Retrieving the JSON Array Length (json_array_length)
21.8. Transforming JSON Data (json_transform, json_transform_strict)
21.9. Aggregating Values into a JSON Array (json_group_array)
21.10. Aggregating Values into a JSON Object (json_group_object)
21.11. Aggregating JSON Data into a Structure (json_group_structure)
21.12. Parsing and Removing Whitespace from JSON Data (json)
22. MAP Data
22.1. Retrieving the Size of MAP Data (cardinality)
22.2. Retrieving a Value from MAP Data (map_extract_value)
22.3. Retrieving a Value from MAP Data as a List (map_extract)
22.4. Concatenating MAP Values (map_concat)
22.5. Checking a MAP Key (map_contains)
22.6. Checking a MAP Key-Value Pair (map_contains_entry)
22.7. Checking a MAP Value (map_contains_value)
22.8. Retrieving Key-Value Pairs from MAP Data (map_entries)
22.9. Retrieving Keys from MAP Data (map_keys)
22.10. Retrieving Values from MAP Data (map_values)
22.11. Creating MAP Data from Key-Value Pairs (map_from_entries)
22.12. Creating Empty MAP Data (map)
23. Data Sampling
23.1. Estimating the Number of Distinct Values (approx_count_distinct)
23.2. Sampling Table Rows (TABLESAMPLE)
24. Time-Based Data Analysis
24.1. Grouping Timestamps into Time Intervals (time_bucket)
24.2. Converting a Timestamp to a String (strftime)
24.3. Converting a String to a Timestamp (strptime)
24.4. Creating a Timestamp from Microseconds (make_timestamp)
24.5. Creating a Timestamp with Time Zone from Microseconds (make_timestamptz)
25. Direct DuckDB Commands
25.1. Running the SELECT Command in DuckDB (duckdb.query)
25.2. Running an Arbitrary Command in DuckDB (duckdb.raw_query)
26. Metadata Catalog
26.1. Configuring the Metadata Catalog
26.2. Connecting to a Remote Server with the Metadata Catalog
26.3. Snapshot-Based Isolation and Atomicity
26.4. Configuring the Transaction Horizon
26.5. Metadata Tables
26.6. Reading Metadata
27. Hive Partitioning
28. Maintenance
28.1. Retrieving the pgpro_metastore Build Number (metastore.pgpro_build)
28.2. Restarting pgpro_axe (duckdb.recycle_ddb)