Skip to content
Merged
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

All notable changes to pgclone are documented in this file.

## [Unreleased]
## [4.9.0]

No SQL-level changes; after `make install`, restart PostgreSQL.
This release has no SQL-level changes; after `make install`, **restart PostgreSQL**, then `ALTER EXTENSION pgclone UPDATE`.

### Added
- `"on_error": "continue"` (discussion #41) for `pgclone.schema()` / `pgclone.database()`. A table that fails (for example a COPY into a table whose definition differs) is rolled back in its own subtransaction, reported with a `WARNING` (message and SQLSTATE), skipped from the foreign-key and trigger passes, and the clone carries on with the next table. The function returns `COMPLETED WITH ERRORS: N table(s) failed: ...` instead of `OK`. Default stays `"abort"`. Cancels and shutdowns are never swallowed. `schema_async()` already continued past failed tables, so it needs no option.
Expand Down
6 changes: 3 additions & 3 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "pgclone",
"abstract": "Clone PostgreSQL databases, schemas, tables between staging, test, dev and prod environments",
"description": "PostgreSQL extension for easily cloning your DB, Schemas, Tables and more between environments",
"version": "4.8.0",
"version": "4.9.0",
"maintainer": "Valeh Agayev <valeh.agayev@gmail.com>",
"license": "postgresql",
"provides": {
"pgclone": {
"abstract": "Clone PostgreSQL databases, schemas, and tables across environments",
"file": "sql/pgclone--4.8.0.sql",
"version": "4.8.0"
"file": "sql/pgclone--4.9.0.sql",
"version": "4.9.0"
}
},
"prereqs": {
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ pgclone uses Unix domain sockets for local loopback connections, so the default
- [x] v4.6.0: Clone a table from Microsoft SQL Server into PostgreSQL — `pgclone.table_from_sqlserver()` with SQL Server→PG type mapping, `dry_run`, `NVARCHAR(MAX)`/`VARBINARY`/`UNIQUEIDENTIFIER` support and an optional FreeTDS build (`WITH_SQLSERVER=1`); CI job against SQL Server 2022
- [x] v4.7.0: Clone a table from MySQL / MariaDB into PostgreSQL — `pgclone.table_from_mysql()` with MySQL→PG type mapping, `dry_run`, unsigned/`BIT`/`JSON`/`ENUM`/`SET`/`BLOB` support, zero-date handling and an optional client build (`WITH_MYSQL=1`); CI job against MySQL 8.0
- [x] v4.8.0: `"conflict": "ignore"`, partitioned-table cloning (`PARTITION BY` / `PARTITION OF`), generated columns, `table_async` sequences, PG17+ worker SIGTERM fix — see [CHANGELOG](CHANGELOG.md)
- [ ] v4.9.0: FK-aware referential sampling — sample N rows and follow foreign keys to keep child rows consistent (`pgclone.table_sample`)
- [x] v4.9.0: `"on_error": "continue"` for `pgclone.schema()` / `pgclone.database()` — see [CHANGELOG](CHANGELOG.md)
- [ ] v4.10.0: FK-aware referential sampling — sample N rows and follow foreign keys to keep child rows consistent (`pgclone.table_sample`)

## License

Expand Down
2 changes: 1 addition & 1 deletion pgclone.control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pgclone extension
comment = 'Clone PostgreSQL databases, schemas, tables, roles and permissions with selective columns, data filtering, data masking/anonymization, async, parallel cloning, materialized views, resume, and conflict resolution, and Oracle-, SQL Server- and MySQL-to-PostgreSQL table cloning (optional OCI / FreeTDS / MySQL client builds)'
default_version = '4.8.0'
default_version = '4.9.0'
module_pathname = '$libdir/pgclone'
relocatable = false
superuser = true
6 changes: 6 additions & 0 deletions sql/pgclone--4.8.0--4.9.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* pgclone--4.8.0--4.9.0.sql */
\echo Use "ALTER EXTENSION pgclone UPDATE" to load this file. \quit

-- v4.9.0: no SQL-level changes. This release is C-level only:
-- * "on_error": "continue" option for pgclone.schema() / pgclone.database()
-- Restart PostgreSQL after installing the new library (shared_preload_libraries).
Loading
Loading