edb_cloneschema
edb_cloneschema · Local and cross-database schema cloning for EPAS.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101877 | edb_cloneschema | edb_cloneschema | - | ADMIN | Proprietary | Unknown |
| Relationships | |
|---|---|
| Requires | postgres_fdw dblink edb_job_scheduler dbms_job parallel_clone |
Usage
Sources:
edb_cloneschema copies a schema and its database objects locally or between EPAS databases, using foreign servers, scheduler jobs, and parallel clone workers.
Prerequisites and Enablement
Install and preload the EPAS worker packages, restart, then create all required extensions in each participating database:
The source/target user mappings must authenticate roles with the privileges required to read and create every cloned object.
Copy a Schema
Define the foreign server and mapping documented for local or remote mode, then call the appropriate localcopyschema/localcopyschema_nb or remotecopyschema/remotecopyschema_nb function. The nonblocking variants schedule work through EDB Job Scheduler; use process_status_from_log to follow the status file.
Operational Boundaries
Schema copy can create large transactions, WAL volume, locks, indexes, foreign keys, and background-worker demand. Tune work_mem, maintenance_work_mem, max_worker_processes, checkpoint settings, WAL size, and max_locks_per_transaction for the planned object set. Protect credentials and log files, test unsupported object types, and verify post-copy ownership, privileges, dependencies, and data consistency before cutover.