22.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

cleanup

Black cross icon

Postgres Pro AXE administrator only.

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.

  • The 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.