diff --git a/product_docs/docs/epas/13/epas_guide/14_edb_clone_schema.mdx b/product_docs/docs/epas/13/epas_guide/14_edb_clone_schema.mdx index f6bbe31b9c3..005a30bb06e 100644 --- a/product_docs/docs/epas/13/epas_guide/14_edb_clone_schema.mdx +++ b/product_docs/docs/epas/13/epas_guide/14_edb_clone_schema.mdx @@ -77,7 +77,14 @@ The following describes the steps to install the required extensions and the PL/ **These steps must be performed on any database to be used as the source or target database by an EDB Clone Schema function.** -**Step 1:** The following extensions must be installed on the database: +**Step 1:** The log directory is required to store all the log files. Create the log directory as a superuser: + +```sql +SELECT edb_util.create_clone_log_dir(); +``` +It returns the value true on successful execution. + +**Step 2:** The following extensions must be installed on the database: - `postgres_fdw` - `dblink` @@ -99,7 +106,7 @@ For more information about using the `CREATE EXTENSION` command, see the Postgre -**Step 2:** Modify the `postgresql.conf` file. +**Step 3:** Modify the `postgresql.conf` file. Modify the `postgresql.conf` file by adding `$libdir/parallel_clone` to the `shared_preload_libraries` configuration parameter as shown by the following example: @@ -107,11 +114,11 @@ Modify the `postgresql.conf` file by adding `$libdir/parallel_clone` to the `sha shared_preload_libraries = '$libdir/dbms_pipe,$libdir/dbms_aq,$libdir/parallel_clone' ``` -**Step 3:** The Perl Procedural Language (PL/Perl) must be installed on the database and the `CREATE TRUSTED LANGUAGE plperl` command must be run. For Linux, install PL/Perl using the `edb-asxx-server-plperl` RPM package where `xx` is the Advanced Server version number. For Windows, use the EDB Postgres Language Pack. For information on EDB Language Pack, see the *EDB Postgres Language Pack Guide* available at: +**Step 4:** The Perl Procedural Language (PL/Perl) must be installed on the database and the `CREATE TRUSTED LANGUAGE plperl` command must be run. For Linux, install PL/Perl using the `edb-asxx-server-plperl` RPM package where `xx` is the Advanced Server version number. For Windows, use the EDB Postgres Language Pack. For information on EDB Language Pack, see the *EDB Postgres Language Pack Guide* available at: [https://www.enterprisedb.com/docs](/language_pack/latest/) -**Step 4:** Connect to the database as a superuser and run the following command: +**Step 5:** Connect to the database as a superuser and run the following command: ```text CREATE TRUSTED LANGUAGE plperl; diff --git a/product_docs/docs/epas/14/epas_guide/14_edb_clone_schema.mdx b/product_docs/docs/epas/14/epas_guide/14_edb_clone_schema.mdx index 3acb1469ba6..c72cfe402f9 100644 --- a/product_docs/docs/epas/14/epas_guide/14_edb_clone_schema.mdx +++ b/product_docs/docs/epas/14/epas_guide/14_edb_clone_schema.mdx @@ -74,6 +74,13 @@ In addition, it might help to modify some configuration parameters in the `postg Perform this installation on any database to be used as the source or target database by an EDB Clone Schema function. +1. The log directory is required to store all the log files. Create the log directory as a superuser: + +```sql +SELECT edb_util.create_clone_log_dir(); +``` +It returns the value true on successful execution. + 1. Install the following extensions on the database: - `postgres_fdw` diff --git a/product_docs/docs/epas/15/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx b/product_docs/docs/epas/15/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx index 796546f1933..13926d47c36 100644 --- a/product_docs/docs/epas/15/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx +++ b/product_docs/docs/epas/15/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx @@ -106,6 +106,17 @@ Install the EDB Clone Schema on any database to be used as the source or target CREATE EXTENSION edb_cloneschema; ``` +## Creating Log directory + +The log directory is required to store all the log files. + +After creating the extensions the following statement must be executed, as a superuser, to create the log directory: + + ```sql + SELECT edb_util.create_clone_log_dir(); + ``` + +It returns the value true on successful execution. ## Creating the foreign servers and user mappings diff --git a/product_docs/docs/epas/16/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx b/product_docs/docs/epas/16/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx index 796546f1933..161c004ae2b 100644 --- a/product_docs/docs/epas/16/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx +++ b/product_docs/docs/epas/16/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx @@ -107,6 +107,18 @@ Install the EDB Clone Schema on any database to be used as the source or target CREATE EXTENSION edb_cloneschema; ``` +## Creating Log directory + +The log directory is required to store all the log files. + +After creating the extensions the following statement must be executed, as a superuser, to create the log directory: + + ```sql + SELECT edb_util.create_clone_log_dir(); + ``` + +It returns the value true on successful execution. + ## Creating the foreign servers and user mappings When using one of the local cloning functions `localcopyschema` or `localcopyschema_nb`, one of the required parameters includes a single, foreign server. This server is for identifying the database server and its database that's the source and receiver of the cloned schema.