Skip to content

Update setting_up_edb_clone_schema.mdx #6817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package-manager> -y install edb-<postgres><postgres_version>-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

Expand All @@ -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<xx>-server-plperl` RPM package, where `<xx>` 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).
Expand Down Expand Up @@ -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 <package-manager> -y install edb-<postgres><postgres_version>-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
Expand Down