Skip to content

Commit

Permalink
Pitrery 3 rpm (#91)
Browse files Browse the repository at this point in the history
* prepare rpm release for pitrery 3.0
  • Loading branch information
madtibo authored Dec 30, 2019
1 parent 371e94a commit e9649c0
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 18 deletions.
32 changes: 23 additions & 9 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
pitrery 3.0dev
pitrery 3.0
===========

* Add support for recovery modes in PostgreSQL 12

* Rename *xlog to *wal in helper scripts and configuration keys:
- archive_xlog -> archive_wal
- restore_xlog -> restore_wal
- PGXLOG -> PGWAL
- ARCHIVE_DIR default configuration changed:
"$BACKUP_DIR/archived_xlog" -> "$BACKUP_DIR/archived_wal"
* Pitrery version 3.0 is compatible with PostgreSQL version 12.
PostgreSQL in this version has changed how recovery configuration is managed.

There is be no more "recovery.conf" file:
- The recovery configuration keys are read from the postgresql.conf file.
Upon restoration, recovery.conf settings are written by pitrery at the
end of the postgresql.conf file.
- A "recovery.signal" or "standby.signal" will be used by the restored
cluster to know what action to take
A new option is declared: RESTORE_MODE (or the "-m" switch). For
restoration, it must be set either to "recovery" or "standby".
- Multiple conflicting recovery_target* specifications are not allowed.
PostgreSQL will make the check on startup.
- We now advance to the latest timeline by default.

* Since PostgreSQL version 10, "xlog" has been renamed to "wal". Make
this change in pitrery:
- "archive_xlog" script is renamed to "archive_wal"
- "restore_xlog" script is renamed to "restore_wal"
- configuration key PGXLOG is renamed to PGWAL
- the WAL archive directory ARCHIVE_DIR is set by default to:
"$BACKUP_DIR/archived_wal"

pitrery 2.4
===========
Expand Down
2 changes: 1 addition & 1 deletion archive_wal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

version="3.0dev"
version="3.0"

# Configuration defaults
SYSLOG="no"
Expand Down
4 changes: 2 additions & 2 deletions config.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME = pitrery
VERSION = 3.0dev
BRANCH = xlog_to_wal
VERSION = 3.0
BRANCH = master

# Customize below to fit your system

Expand Down
4 changes: 3 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
pitrery (3.0dev-1) buster; urgency=medium
pitrery (3.0-1) buster; urgency=medium

* New upstream release
* Compatible with PostgreSQL 12
* Rename 'xlog' to 'wal' in scripts and parameters

-- Thibaut MADELAINE <[email protected]> Fri, 27 Dec 2019 11:32:00 +000

Expand Down
2 changes: 1 addition & 1 deletion pitrery
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

version="3.0dev"
version="3.0"
latest_supported_pg_version=1200

# Hardcoded configuration
Expand Down
2 changes: 1 addition & 1 deletion restore_wal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

version="3.0dev"
version="3.0"

# Default configuration
SYSLOG="no"
Expand Down
8 changes: 5 additions & 3 deletions rpm/pitrery.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global confdir %{_sysconfdir}/pitrery

Name: pitrery
Version: 3.0dev
Version: 3.0
Release: 1
Summary: Point-In-Time Recovery tools for PostgreSQL
License: BSD
Expand Down Expand Up @@ -76,8 +76,10 @@ fi
%doc %{_mandir}/man1/restore_wal.1.gz

%changelog
* Fri Dec 27 2019 Thibaut MADELAINE <[email protected]> - 3.0-1
- Release 3.0dev
* Fri Dec 30 2019 Thibaut MADELAINE <[email protected]> - 3.0-1
- Release 3.0
- Compatible with PostgreSQL 12
- Rename 'xlog' to 'wal' in scripts and parameters

* Tue Sep 3 2019 Étienne BERSAC <[email protected]> - 2.4-1
- Release 2.4
Expand Down

0 comments on commit e9649c0

Please sign in to comment.