Skip to content

Commit

Permalink
Release v0.9. (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri authored Sep 30, 2022
1 parent 9105d7f commit 88c921c
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 10 deletions.
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
### pgcopydb v0.9 (September 30, 2022) ###

Improve pgcopydb with same-table concurrency support, lots of bug fixes
including the new support for Extension Configuration Tables and the
automated sequences reset after a --follow cutover. New options to control
verbosity have also been added: --debug and --trace are added to --verbose.

The pgcopydb internal sub-process model has been entirely reviewed. In
version 0.9 a System V queue mechanism is used to communicate jobs from a
main process to a list of worker processes. This has been applied to CREATE
INDEX and VACUUM jobs, in a way that with --index-jobs 4 pgcopydb now starts
4 create index worker processes at start-up; where it would before create
worker processes each time a table copy would be finished.

As a result the --index-jobs limit is now enforced correctly.

### Added
* Implement same-table concurrency. (#85)
* Add support for Extension Configuration Tables (#101)
* Reset sequences at the end of pgcopydb clone --follow. (#76)
* Add a summary line for the time taken to query catalogs. (#111)
* Implement --debug and --trace, adding to --verbose. (#97)
* Implement pgcopydb list progress [ --json ] (#95)
* Store the schema elements to a schema.json file. (#94)

### Changed
* Set idle_in_transaction_session_timeout to zero. (#116)
* Make sure to transform JSON files in all cases. (#115)
* Improve pgcopydb follow docs, and some more. (#108)
* Improve docs: intro, design, concurrency. (#102)
* A round of documentation updates. (#98)
* Improve documentation of the --follow option. (#81)

### Fixed
* Bug fixes for the transform process. (#114)
* Use docker-compose run in tests, instead of docker-compose up. (#113)
* From the lab: we could have more lines in a WAL.json file. (#112)
* Fix docs for pgcopydb dump schema --target etc. (#109)
* Add more pg restore object descriptions, from shared logs. (#107)
* Fix/index jobs (#106)
* Improve clone --follow sub-process error handling. (#100)
* Fix reltuples processing: it might be NULL. (#99)
* Add some other missing pg_restore list descriptions. (#96)
* Fix version number when building Docker images. (#93)
* Improve docs and help strings. (#87)
* Fix environment variable names for table and index jobs. (#86)
* When pgcopydb clone --follow is used, setup before forking subprocesses. (#83)
* Fix unit testing to follow latest changes in the pagila database. (#82)

### pgcopydb v0.8 (July 20, 2022) ###

Implement support for Change Data Capture, the ability to replay changes
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ COPY ./src ./src/
COPY ./docs ./docs/

WORKDIR /usr/src
RUN tar czf pgcopydb_0.8.orig.tar.gz pgcopydb
RUN tar czf pgcopydb_0.9.orig.tar.gz pgcopydb

WORKDIR /usr/src/pgcopydb

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.debian-qa
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM debian:sid

ENV TAR v0.8.tar.gz
ENV ORIG pgcopydb_0.8.orig.tar.gz
ENV WORKDIR /usr/src/pgcopydb-0.8
ENV TAR v0.9.tar.gz
ENV ORIG pgcopydb_0.9.orig.tar.gz
ENV WORKDIR /usr/src/pgcopydb-0.9
ENV ARCHIVE https://github.com/dimitri/pgcopydb/archive/refs/tags/
ENV RELEASE ${ARCHIVE}${TAR}

Expand Down
2 changes: 1 addition & 1 deletion GIT-VERSION-GEN
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

GVF=GIT-VERSION-FILE
DEF_VER=0.8
DEF_VER=0.9

LF='
'
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ $ pgcopydb help
pgcopydb copy
db Copy an entire database from source to target
roles Copy the roles from the source instance to the target instance
extensions Copy the extensions from the source instance to the target instance
schema Copy the database schema from source to target
data Copy the data section from source to target
table-data Copy the data from all tables in database from source to target
Expand All @@ -84,11 +85,14 @@ $ pgcopydb help
parse-list Parse pg_restore --list output from custom file
pgcopydb list
extensions List all the source extensions to copy
tables List all the source tables to copy data from
table-parts List a source table copy partitions
sequences List all the source sequences to copy data from
indexes List all the indexes to create again after copying the data
depends List all the dependencies to filter-out
schema List the schema to migrate, formatted in JSON
progress List the progress
pgcopydb stream
setup Setup source and target systems for logical decoding
Expand Down Expand Up @@ -200,7 +204,7 @@ Several distributions are available for pgcopydb:
version currently in debian stable.

```
$ docker run --rm -it dimitri/pgcopydb:v0.8 pgcopydb --version
$ docker run --rm -it dimitri/pgcopydb:v0.9 pgcopydb --version
```

Or you can use the CI/CD integration that publishes packages from the
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pgcopydb (0.9-1) unstable; urgency=low

* Official 0.9 release of pgcopydb

-- Dimitri Fontaine <[email protected]> Fri, 30 Sep 2022 12:16:46 +0200

pgcopydb (0.8-1) unstable; urgency=low

* Official 0.8 release of pgcopydb
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
author = 'Dimitri Fontaine'

# The full version, including alpha/beta/rc tags
version = '0.8'
release = '0.8'
version = '0.9'
release = '0.9'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stable.

To use this docker image::

$ docker run --rm -it dimitri/pgcopydb:v0.8 pgcopydb --version
$ docker run --rm -it dimitri/pgcopydb:v0.9 pgcopydb --version

__ https://hub.docker.com/r/dimitri/pgcopydb#!

Expand Down
2 changes: 1 addition & 1 deletion src/bin/pgcopydb/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "git-version.h"

/* additional version information for printing version on CLI */
#define PGCOPYDB_VERSION "0.8"
#define PGCOPYDB_VERSION "0.9"

#ifdef GIT_VERSION
#define VERSION_STRING GIT_VERSION
Expand Down

0 comments on commit 88c921c

Please sign in to comment.