Skip to content
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

EPAS 13 - update clone schema setup steps #6336

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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
15 changes: 11 additions & 4 deletions product_docs/docs/epas/13/epas_guide/14_edb_clone_schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -99,19 +106,19 @@ For more information about using the `CREATE EXTENSION` command, see the Postgre

<https://www.postgresql.org/docs/current/static/sql-createextension.html>

**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:

```text
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading