Skip to content

Commit 430e37e

Browse files
Merge pull request #6586 from EnterpriseDB/release/2025-03-05b
Release: 2025-03-05b
2 parents b2463fe + 289bb9a commit 430e37e

File tree

9 files changed

+45
-33
lines changed

9 files changed

+45
-33
lines changed

product_docs/docs/epas/13/epas_guide/14_edb_clone_schema.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ In addition, the following limitations apply:
6363
- For remote cloning, if an object in the source schema is dependent upon an extension, then this extension must be created in the public schema of the remote database before invoking the remote cloning function.
6464
- At most, 16 copy jobs can run in parallel to clone schemas, whereas each job can have at most 16 worker processes to copy table data in parallel.
6565
- Queries being run by background workers cannot be cancelled.
66+
- Non-blocking cloning functions such as `localcopyschema_nb` and `remotecopyschema_nb` must be performed by a superuser. Only blocking cloning functions like `localcopyschema` and `remotecopyschema` can be performed by a non-superuser. Although these functions don't enforce the superuser requirement, using them as a non-superuser can lead to unexpected behavior.
6667

6768
The following section describes how to set up EDB Clone Schema on the databases.
6869

@@ -190,7 +191,7 @@ This command also drops the `edb_cloneschema` extension.
190191
**Step 2:** Install the extensions using the following commands:
191192

192193
```text
193-
CREATE EXTENSION parallel_clone SCHEMA public;
194+
CREATE EXTENSION parallel_clone;
194195

195196
CREATE EXTENSION edb_cloneschema;
196197
```

product_docs/docs/epas/14/epas_guide/14_edb_clone_schema.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ The following limitations apply:
6666
- For remote cloning, if an object in the source schema depends on an extension, then you must create this extension in the public schema of the remote database before invoking the remote cloning function.
6767
- At most, 16 copy jobs can run in parallel to clone schemas. Each job can have at most 16 worker processes to copy table data in parallel.
6868
- You can't cancel queries run by background workers.
69+
- Non-blocking cloning functions such as `localcopyschema_nb` and `remotecopyschema_nb` must be performed by a superuser. Only blocking cloning functions like `localcopyschema` and `remotecopyschema` can be performed by a non-superuser. Although these functions don't enforce the superuser requirement, using them as a non-superuser can lead to unexpected behavior.
6970

7071
## Setup process
7172

@@ -178,7 +179,7 @@ Install the EDB Clone Schema on any database to be used as the source or target
178179

179180

180181
```text
181-
CREATE EXTENSION parallel_clone SCHEMA public;
182+
CREATE EXTENSION parallel_clone;
182183
183184
CREATE EXTENSION edb_cloneschema;
184185
```

product_docs/docs/epas/15/database_administration/14_edb_clone_schema/edb_clone_schema_overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,4 @@ The following limitations apply:
8181
- For remote cloning, if an object in the source schema depends on an extension, then you must create this extension in the public schema of the remote database before invoking the remote cloning function.
8282
- At most, 16 copy jobs can run in parallel to clone schemas. Each job can have at most 16 worker processes to copy table data in parallel.
8383
- You can't cancel queries run by background workers.
84+
- Non-blocking cloning functions such as `localcopyschema_nb` and `remotecopyschema_nb` must be performed by a superuser. Only blocking cloning functions like `localcopyschema` and `remotecopyschema` can be performed by a non-superuser. Although these functions don't enforce the superuser requirement, using them as a non-superuser can lead to unexpected behavior.

product_docs/docs/epas/15/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Install the EDB Clone Schema on any database to be used as the source or target
104104
1. Install the extensions. Make sure that you create the `parallel_clone` extension before creating the `edb_cloneschema` extension.
105105

106106
```sql
107-
CREATE EXTENSION parallel_clone SCHEMA public;
107+
CREATE EXTENSION parallel_clone;
108108

109109
CREATE EXTENSION edb_cloneschema;
110110
```

product_docs/docs/epas/16/database_administration/14_edb_clone_schema/cloning_with_a_non_super_user.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ Create the following extensions:
128128
CREATE EXTENSION postgres_fdw;
129129
CREATE EXTENSION dblink;
130130
CREATE EXTENSION adminpack;
131-
CREATE EXTENSION pgAgent;
131+
CREATE EXTENSION edb_job_scheduler;
132+
CREATE EXTENSION dbms_job;
132133
CREATE EXTENSION parallel_clone;
133134
CREATE EXTENSION edb_cloneschema;
134135
__OUTPUT__
@@ -239,7 +240,8 @@ Create the following extensions:
239240
CREATE EXTENSION postgres_fdw;
240241
CREATE EXTENSION dblink;
241242
CREATE EXTENSION adminpack;
242-
CREATE EXTENSION pgAgent;
243+
CREATE EXTENSION edb_job_scheduler;
244+
CREATE EXTENSION dbms_job;
243245
CREATE EXTENSION parallel_clone;
244246
CREATE EXTENSION edb_cloneschema;
245247
__OUTPUT__

product_docs/docs/epas/16/database_administration/14_edb_clone_schema/edb_clone_schema_overview.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ Verify the following conditions before using an EDB Clone Schema function:
1818
- When using the remote copy functions, if the `on_tblspace` parameter is set to `true`, then the target database cluster contains all tablespaces that are referenced by objects in the source schema. Otherwise, creating the DDL statements for those database objects fails in the target schema, which causes a failure of the cloning process.
1919
- When using the remote copy functions, if you set the `copy_acls` parameter to `true`, then all roles that have `GRANT` privileges on objects in the source schema exist in the target database cluster. Otherwise granting privileges to those roles fails in the target schema, which causes a failure of the cloning process.
2020
- pgAgent is running against the target database if you're using the non-blocking form of the function.
21+
- Add the name of the database where you want to install or use the clone schema in the postgresql.conf file. For example, if you want to install or use the clone schema on the `edb` database, then add the following entry in the postgresql.conf file:
22+
23+
```
24+
edb_job_scheduler.database_list='edb'
25+
```
26+
27+
Also, add `parallel_clone` and `edb_job_scheduler` to the shared libraries in the postgresql.conf file:
28+
29+
```
30+
shared_preload_libraries='....,$libdir/parallel_clone, $libdir/edb_job_scheduler'
31+
```
32+
33+
Restart the database server to load the changes in postgresql.conf file.
2134

2235
EDB Postgres Advanced Server includes pgAgent as a component. For information about pgAgent, see the [pgAdmin documentation](https://www.pgadmin.org/docs/pgadmin4/dev/pgagent.html).
2336

@@ -81,3 +94,4 @@ The following limitations apply:
8194
- For remote cloning, if an object in the source schema depends on an extension, then you must create this extension in the public schema of the remote database before invoking the remote cloning function.
8295
- At most, 16 copy jobs can run in parallel to clone schemas. Each job can have at most 16 worker processes to copy table data in parallel.
8396
- You can't cancel queries run by background workers.
97+
- Non-blocking cloning functions such as `localcopyschema_nb` and `remotecopyschema_nb` must be performed by a superuser. Only blocking cloning functions like `localcopyschema` and `remotecopyschema` can be performed by a non-superuser. Although these functions don't enforce the superuser requirement, using them as a non-superuser can lead to unexpected behavior.

product_docs/docs/epas/16/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,24 @@ In addition, it might help to modify some configuration parameters in the `postg
99

1010
## Installing extensions
1111

12-
Perform this installation on any database to be used as the source or target database by an EDB Clone Schema function.
12+
Install the following extensions on any database to be used as the source or target database by an EDB Clone Schema function: `postgres_fdw`, `dblink`, `edb_job_scheduler`, and `dbms_job`.
1313

14-
1. Install the following extensions on the database: `postgres_fdw`, `dblink`, `adminpack` and `pgagent`.
15-
1. Ensure that pgAgent is installed before creating the `pgagent` extension. On Linux, you can use the `edb-as<xx>-pgagent` RPM package, where `<xx>` is the EDB Postgres Advanced Server version number to install pgAgent. On Windows, use StackBuilder Plus to download and install pgAgent.
16-
17-
Install the extensions:
18-
19-
```sql
20-
CREATE EXTENSION postgres_fdw SCHEMA public;
21-
CREATE EXTENSION dblink SCHEMA public;
22-
CREATE EXTENSION adminpack;
23-
CREATE EXTENSION pgagent;
24-
```
14+
```sql
15+
CREATE EXTENSION postgres_fdw SCHEMA public;
16+
CREATE EXTENSION dblink SCHEMA public;
17+
CREATE EXTENSION adminpack;
18+
CREATE EXTENSION edb_job_scheduler;
19+
CREATE EXTENSION dbms_job;
20+
```
2521

26-
For more information about using the `CREATE EXTENSION` command, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/static/sql-createextension.html).
22+
For more information about using the `CREATE EXTENSION` command, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/static/sql-createextension.html).
2723

2824
## Modifying the configuration file
2925

3026
Modify the `postgresql.conf` file by adding `$libdir/parallel_clone` to the `shared_preload_libraries` configuration parameter:
3127

3228
```ini
33-
shared_preload_libraries = '$libdir/dbms_pipe,$libdir/dbms_aq,$libdir/parallel_clone'
29+
shared_preload_libraries = '$libdir/dbms_pipe,$libdir/dbms_aq,$libdir/parallel_clone,$libdir/edb_job_scheduler'
3430
```
3531
To load the libraries with clone schema support, restart the database server.
3632

@@ -103,7 +99,7 @@ Install the EDB Clone Schema on any database to be used as the source or target
10399
1. Install the extensions. Make sure that you create the `parallel_clone` extension before creating the `edb_cloneschema` extension.
104100

105101
```sql
106-
CREATE EXTENSION parallel_clone SCHEMA public;
102+
CREATE EXTENSION parallel_clone;
107103

108104
CREATE EXTENSION edb_cloneschema;
109105
```

product_docs/docs/epas/17/database_administration/14_edb_clone_schema/edb_clone_schema_overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ The following limitations apply:
8787
- For remote cloning, if an object in the source schema depends on an extension, then you must create this extension in the public schema of the remote database before invoking the remote cloning function.
8888
- At most, 16 copy jobs can run in parallel to clone schemas. Each job can have at most 16 worker processes to copy table data in parallel.
8989
- You can't cancel queries run by background workers.
90+
- Non-blocking cloning functions such as `localcopyschema_nb` and `remotecopyschema_nb` must be performed by a superuser. Only blocking cloning functions like `localcopyschema` and `remotecopyschema` can be performed by a non-superuser. Although these functions don't enforce the superuser requirement, using them as a non-superuser can lead to unexpected behavior.

product_docs/docs/epas/17/database_administration/14_edb_clone_schema/setting_up_edb_clone_schema.mdx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ In addition, it might help to modify some configuration parameters in the `postg
99

1010
## Installing extensions
1111

12-
Perform this installation on any database to be used as the source or target database by an EDB Clone Schema function.
12+
Install the following extensions on any database to be used as the source or target database by an EDB Clone Schema function: `postgres_fdw`, `dblink`, `edb_job_scheduler`, and `dbms_job`.
1313

14-
1. Install the following extensions on the database: `postgres_fdw`, `dblink`, `edb_job_scheduler`, and `DBMS_JOB`.
15-
16-
Install the extensions:
17-
18-
```sql
19-
CREATE EXTENSION postgres_fdw SCHEMA public;
20-
CREATE EXTENSION dblink SCHEMA public;
21-
CREATE EXTENSION edb_job_scheduler;
22-
CREATE EXTENSION dbms_job;
23-
```
14+
```sql
15+
CREATE EXTENSION postgres_fdw SCHEMA public;
16+
CREATE EXTENSION dblink SCHEMA public;
17+
CREATE EXTENSION edb_job_scheduler;
18+
CREATE EXTENSION dbms_job;
19+
```
2420

25-
For more information about using the `CREATE EXTENSION` command, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/static/sql-createextension.html).
21+
For more information about using the `CREATE EXTENSION` command, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/static/sql-createextension.html).
2622

2723
## Modifying the configuration file
2824

@@ -103,7 +99,7 @@ Install the EDB Clone Schema on any database to be used as the source or target
10399
1. Install the extensions. Make sure that you create the `parallel_clone` extension before creating the `edb_cloneschema` extension.
104100

105101
```sql
106-
CREATE EXTENSION parallel_clone SCHEMA public;
102+
CREATE EXTENSION parallel_clone;
107103

108104
CREATE EXTENSION edb_cloneschema;
109105
```

0 commit comments

Comments
 (0)