18.1. Stored Procedures and Privileges #

The table below specifies the security definer status and required privileges for all stored procedures. Security definer stored procedures are executed on behalf of the user that installed pgpro_metastore (in most cases, the superuser), but before execution, the privileges of the actual role are verified.

For more information, refer to:

Stored Procedure

Security Definer

Privileges

pgpro_metastore

define_catalog_connection

Black checkmark icon

Postgres Pro AXE administrator only

init

Black cross icon

Postgres Pro AXE administrator only

metastore.add_storage

Black cross icon

Postgres Pro AXE administrator only

metastore.remove_storage

Black cross icon

Postgres Pro AXE administrator only

metastore.add_table

Black cross icon

Postgres Pro AXE administrator only

metastore.rename_table

Black cross icon

Postgres Pro AXE administrator only

metastore.create_view

Black checkmark icon

  • SELECT privilege on the analytical table

  • CREATE privilege on the Postgres Pro schema that contains the view

metastore.remove_table

Black cross icon

Postgres Pro AXE administrator only

metastore.add_column

Black cross icon

Postgres Pro AXE administrator only

metastore.rename_column

Black cross icon

Postgres Pro AXE administrator only

metastore.change_column_type

Black cross icon

Postgres Pro AXE administrator only

metastore.delete_column

Black cross icon

Postgres Pro AXE administrator only

metastore.add_schema

Black cross icon

Postgres Pro AXE administrator only

metastore.remove_schema

Black cross icon

Postgres Pro AXE administrator only

metastore.add_folder

Black cross icon

Postgres Pro AXE administrator only

metastore.remove_folder

Black cross icon

Postgres Pro AXE administrator only

metastore.add_files

Black checkmark icon

  • INSERT privilege on the analytical table

  • SELECT privilege on the shared directory if Parquet files are added from this directory

metastore.copy_table

Black checkmark icon

  • INSERT privilege on the analytical table

  • Privilege required to execute the SQL command passed as the second parameter

metastore.expire_snapshot_on_time

Black cross icon

Postgres Pro AXE administrator only

metastore.expire_snapshot_on_ids

Black cross icon

Postgres Pro AXE administrator only

metastore.delete_expired_files

Black cross icon

Postgres Pro AXE administrator only

metastore.mgrant

Black cross icon

GRANT privilege on the proxy table

metastore.mrevoke

Black cross icon

REVOKE privilege on the proxy table

metastore.pgpro_build

Black cross icon

All roles

pgpro_axe

duckdb.install_extension

Black cross icon

Postgres Pro AXE administrator only

duckdb.create_simple_secret

Black cross icon

Postgres Pro AXE administrator only

duckdb.show_simple_secret

Black cross icon

Postgres Pro AXE administrator only

duckdb.drop_simple_secret

Black cross icon

Postgres Pro AXE administrator only

duckdb.recycle_ddb

Black cross icon

Postgres Pro AXE administrator only

duckdb_external_file_cache

Black cross icon

Postgres Pro AXE administrator only

cleanup

Black cross icon

Postgres Pro AXE administrator only

read_parquet

Black cross icon

Postgres Pro AXE administrator only

read_csv

Black cross icon

Postgres Pro AXE administrator only

read_json

Black cross icon

Postgres Pro AXE administrator only

iceberg_scan

Black cross icon

Postgres Pro AXE administrator only

iceberg_metadata

Black cross icon

Postgres Pro AXE administrator only

iceberg_snapshots

Black cross icon

Postgres Pro AXE administrator only

delta_scan

Black cross icon

Postgres Pro AXE administrator only