19.1. Creating a Shared Directory #

Execute the following query:

  SELECT metastore.add_folder('shared_directory_name', 'storage_name', 'path_to_the_shared_directory');

Where:

Example 19.1. 

  SELECT metastore.add_folder('shared_directory_example', 'storage_example', '/relative_path');

Once the query is executed, pgpro_metastore performs the following actions:

  1. Verifies user privileges.

  2. Ensures that the specified path leads to an existing shared directory.

  3. Creates a new entry in the pga_folder metadata table.