From bac0609c37ffabc1ef94bebc79f478e9f643041b Mon Sep 17 00:00:00 2001 From: yuki-tei <57980555+yuki-tei@users.noreply.github.com> Date: Fri, 16 May 2025 16:49:52 +0900 Subject: [PATCH] Update setting_up_edb_clone_schema.mdx --- .../setting_up_edb_clone_schema.mdx | 44 ++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/product_docs/docs/epas/17/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx b/product_docs/docs/epas/17/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx index 436950cbad2..5a2dda019aa 100644 --- a/product_docs/docs/epas/17/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx +++ b/product_docs/docs/epas/17/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx @@ -7,18 +7,14 @@ To use EDB Clone Schema, you must first install several extensions along with th In addition, it might help to modify some configuration parameters in the `postgresql.conf` file of the database servers. -## Installing extensions - -On any database to be used as the source or target database by an EDB Clone Schema function, install the following extensions: `postgres_fdw`, `dblink`, `edb_job_scheduler`, and `dbms_job`. +## Installing prerequisite extension packages -```sql -CREATE EXTENSION postgres_fdw SCHEMA public; -CREATE EXTENSION dblink SCHEMA public; -CREATE EXTENSION edb_job_scheduler; -CREATE EXTENSION dbms_job; -``` +As prerequisite extension package, `parallel_clone` should be installed first. +The syntax to install the package is: + ```shell + sudo -y install edb--server-parallel-clone + ``` -For more information about using the `CREATE EXTENSION` command, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/static/sql-createextension.html). ## Modifying the configuration file @@ -30,6 +26,21 @@ Modify the `postgresql.conf` file by adding `$libdir/parallel_clone` and `$libdi For the changes to take effect, you must restart the database server. +## Installing extensions + +On any database to be used as the source or target database by an EDB Clone Schema function, install the following extensions: `postgres_fdw`, `dblink`, `edb_job_scheduler`, `dbms_job` and `parallel_clone`. + +```sql +CREATE EXTENSION postgres_fdw SCHEMA public; +CREATE EXTENSION dblink SCHEMA public; +CREATE EXTENSION edb_job_scheduler; +CREATE EXTENSION dbms_job; +CREATE EXTENSION parallel_clone; +``` + +For more information about using the `CREATE EXTENSION` command, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/static/sql-createextension.html). + + ## Installing PL/Perl 1. Install the Perl procedural language (PL/Perl) on the database, and run the `CREATE TRUSTED LANGUAGE plperl` command. For Linux, install PL/Perl using the `edb-as-server-plperl` RPM package, where `` is the EDB Postgres Advanced Server version number. For Windows, use the EDB Postgres Language Pack. For information on EDB Language Pack, see the [EDB Postgres Language Pack](/language_pack/latest). @@ -87,20 +98,21 @@ To delete a log file, use the `remove_log_file_and_job` function, or delete it m ## Installing EDB Clone Schema Install the EDB Clone Schema on any database to be used as the source or target database by an EDB Clone Schema function. +1. The syntax to install the package is: + ```shell + sudo -y install edb--server-cloneschema + ``` -1. If you previously installed an older version of the `edb_cloneschema` extension, run the following command: +2. If you previously installed an older version of the `edb_cloneschema` extension, run the following command: ```sql - DROP EXTENSION parallel_clone CASCADE; + DROP EXTENSION edb_cloneschema CASCADE ``` This command also drops the `edb_cloneschema` extension. -1. Install the extensions. Make sure that you create the `parallel_clone` extension before creating the `edb_cloneschema` extension. - +3. Install the extensions. ```sql - CREATE EXTENSION parallel_clone; - CREATE EXTENSION edb_cloneschema; ``` ## Creating Log directory