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

All notable changes to pgclone are documented in this file.

## [Unreleased]
## [4.10.0]

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

### Added
- PostgreSQL 19 support: CI matrix (main, Oracle, SQL Server and MySQL jobs), `docker-compose.yml` (`test-pg19`), `test/run_all.sh` defaults, and docs now cover PostgreSQL 14-19. No C or SQL changes were needed (`src/` uses only version guards for PG 15 and PG 17).
- **PostgreSQL 19 support.** CI matrix (main, Oracle, SQL Server and MySQL jobs), `docker-compose.yml` (`test-pg19`), `test/run_all.sh` defaults and docs now cover PostgreSQL 14-19.

### Fixed
- **Build on PostgreSQL 19.** `get_database_name()` moved from `commands/dbcommands.h` to `utils/lsyscache.h`; `pgclone.c`, `pgclone_diff.c` and `pgclone_preflight.c` now include the new header under `#if PG_VERSION_NUM >= 190000`. PG 14-18 are unchanged.

## [4.9.0]

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.9.0",
"version": "4.10.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.9.0.sql",
"version": "4.9.0"
"file": "sql/pgclone--4.10.0.sql",
"version": "4.10.0"
}
},
"prereqs": {
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ pgclone uses Unix domain sockets for local loopback connections, so the default
- [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)
- [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`)
- [x] v4.10.0: PostgreSQL 19 support (build fix, CI matrix 14–19) — see [CHANGELOG](CHANGELOG.md)
- [ ] v4.11.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.9.0'
default_version = '4.10.0'
module_pathname = '$libdir/pgclone'
relocatable = false
superuser = true
337 changes: 337 additions & 0 deletions sql/pgclone--4.10.0.sql

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions sql/pgclone--4.9.0--4.10.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* pgclone--4.9.0--4.10.0.sql */
\echo Use "ALTER EXTENSION pgclone UPDATE" to load this file. \quit

-- v4.10.0: no SQL-level changes. This release is C-level only:
-- * PostgreSQL 19 support (get_database_name() header move)
-- Restart PostgreSQL after installing the new library (shared_preload_libraries).
2 changes: 1 addition & 1 deletion src/pgclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -5828,7 +5828,7 @@ PG_FUNCTION_INFO_V1(pgclone_version);
Datum
pgclone_version(PG_FUNCTION_ARGS)
{
PG_RETURN_TEXT_P(cstring_to_text("pgclone 4.9.0"));
PG_RETURN_TEXT_P(cstring_to_text("pgclone 4.10.0"));
}

/* ===============================================================
Expand Down
Loading