Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
### pg_auto_failover v2.1 (November 24, 2022) ###
### pg_auto_failover v2.2 (February 01, 2025) ###

This release includes support for Postgres major version 17 as well as dependency and documentation updates. It also drops support for outdated Postgres major versions 11 and 12.

### Added
* Support for Postgres major version 17. (#1061)

### Fixes
* Switch from docker-compose to the one build into docker (docker compose) (#1065)
* Update Dockerfile to address warnings (#1039)

### Changed
* Documentation updated to reference latest Debian and PostgreSQL releases (#1061)
* Support dropped for outdated Postgres major versions 11 and 12 (#1067)
* Support dropped for 32-bit architectures (#1066)
* Citus version updated to v13.0.0 (#1064)

### pg_auto_failover v2.1 (November 24, 2023) ###

This release incorporates support for Postgres major version 16, some bug fixes,
documentation updates, and usual code maintenance work.

### Added
* Support for Postgres major version 16. (#1013, #1006, )
* Support for Postgres major version 16. (#1013, #1006)
* Improve on documentation, Docker images, and tutorials. (#964, #954, #947)
* PGDATABASE as default create node --dbname. (#956)
* Add chapters to the documentation navigation. (#954)
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def __init__(self, **options):
# built documents.
#
# The short X.Y version.
version = "2.1"
version = "2.2"
# The full version, including alpha/beta/rc tags.
release = "2.1"
release = "2.2"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions src/bin/pg_autoctl/azure.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@ azure_prepare_target_versions(KeyVal *env)

/* default values */
sformat(env->values[0], MAXCONNINFO, "13"); /* AZ_PG_VERSION */
sformat(env->values[1], MAXCONNINFO, "2.1"); /* AZ_PGAF_DEB_VERSION */
sformat(env->values[2], MAXCONNINFO, "2.1-1"); /* AZ_PGAF_DEB_REVISION */
sformat(env->values[1], MAXCONNINFO, "2.2"); /* AZ_PGAF_DEB_VERSION */
sformat(env->values[2], MAXCONNINFO, "2.2-1"); /* AZ_PGAF_DEB_REVISION */

for (int i = 0; i < 3; i++)
{
Expand Down
2 changes: 1 addition & 1 deletion src/bin/pg_autoctl/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define PG_AUTOCTL_VERSION GIT_VERSION

/* version of the extension that we requite to talk to on the monitor */
#define PG_AUTOCTL_EXTENSION_VERSION "2.1"
#define PG_AUTOCTL_EXTENSION_VERSION "2.2"

/* environment variable to use to make DEBUG facilities available */
#define PG_AUTOCTL_DEBUG "PG_AUTOCTL_DEBUG"
Expand Down
2 changes: 1 addition & 1 deletion src/monitor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the PostgreSQL License.

EXTENSION = pgautofailover
EXTVERSION = 2.1
EXTVERSION = 2.2

SRC_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

Expand Down
2 changes: 1 addition & 1 deletion src/monitor/expected/dummy_update.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ select installed_version
-- should error because installed extension isn't compatible with .so
select * from pgautofailover.get_primary('unknown formation');
ERROR: loaded "pgautofailover" library version differs from installed extension version
DETAIL: Loaded library requires 2.1, but the installed extension version is dummy.
DETAIL: Loaded library requires 2.2, but the installed extension version is dummy.
HINT: Run ALTER EXTENSION pgautofailover UPDATE and try again.
2 changes: 1 addition & 1 deletion src/monitor/metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "storage/lockdefs.h"

#define AUTO_FAILOVER_EXTENSION_VERSION "2.1"
#define AUTO_FAILOVER_EXTENSION_VERSION "2.2"
#define AUTO_FAILOVER_EXTENSION_NAME "pgautofailover"
#define AUTO_FAILOVER_SCHEMA_NAME "pgautofailover"
#define AUTO_FAILOVER_FORMATION_TABLE "pgautofailover.formation"
Expand Down
7 changes: 7 additions & 0 deletions src/monitor/pgautofailover--2.0--2.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--
-- extension update file from 2.0 to 2.1
--
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgautofailover" to load this file. \quit

-- no changes, just the version number
7 changes: 7 additions & 0 deletions src/monitor/pgautofailover--2.1--2.2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--
-- extension update file from 2.1 to 2.2
--
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgautofailover" to load this file. \quit

-- no changes, just the version number
2 changes: 1 addition & 1 deletion src/monitor/pgautofailover.control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
comment = 'pg_auto_failover'
default_version = '2.1'
default_version = '2.2'
module_pathname = '$libdir/pgautofailover'
relocatable = false
requires = 'btree_gist'