18.1. Creating a Shared Directory (axe.create_folder) #

Before creating a shared directory:

  • Create a custom storage.

  • If you are using a local or NFS storage, create a directory that must be used as the shared directory, as the axe.create_folder stored procedure does not create it automatically.

Required privileges: Superuser or the Postgres Pro AXE administrator.

For more information about access management, refer to Chapter 12.

Execute the following command on the Postgres Pro AXE server:

  SELECT axe.create_folder('shared_directory_name', 'storage_name', 'path_to_the_shared_directory');

Where:

  • shared_directory_name: The name of the shared directory that must be created.

    The shared directory name must be unique across all storages.

  • storage_name: The name of the storage where the shared directory must be created.

  • path_to_the_shared_directory: The path to the directory that must be used as the shared directory, relative to the root storage directory.

    The path must not start with a slash and must be unique across all storages.

Example 18.1. Creating a Shared Directory

  SELECT axe.create_folder('axe_shared_directory', 'axe_storage', 'relative_path');

FAQ