Skip to content

Commit 8322677

Browse files
hashworksAkkowiczdimitri
authored
Prepare for release 2.2 (#1069)
* Prepare for release 2.2 * Add CHANGELOG entry for the release * Update version number throughout * Update version related tests * Add 2.0 -> 2.1 sql file to fix update path * Add 2.1 -> 2.2 sql file, move dummy * Update CHANGELOG.md --------- Co-authored-by: Mateusz Prais <uamfhq@gmail.com> Co-authored-by: Dimitri Fontaine <dim@tapoueh.org>
1 parent a02775f commit 8322677

File tree

11 files changed

+42
-11
lines changed

11 files changed

+42
-11
lines changed

CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
### pg_auto_failover v2.1 (November 24, 2022) ###
1+
### pg_auto_failover v2.2 (April 3, 2025) ###
2+
3+
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.
4+
5+
### Added
6+
* Support for Postgres major version 17. (#1061)
7+
8+
### Fixes
9+
* Switch from docker-compose to the one build into docker (docker compose) (#1065, #1077)
10+
* Update Dockerfile to address warnings (#1039)
11+
12+
### Changed
13+
* Documentation updated to reference latest Debian and PostgreSQL releases (#1061)
14+
* Support dropped for outdated Postgres major versions 11 and 12 (#1067)
15+
* Support dropped for 32-bit architectures (#1066)
16+
* Citus version updated to v13.0.0 (#1064)
17+
18+
### pg_auto_failover v2.1 (November 24, 2023) ###
219

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

623
### Added
7-
* Support for Postgres major version 16. (#1013, #1006, )
24+
* Support for Postgres major version 16. (#1013, #1006)
825
* Improve on documentation, Docker images, and tutorials. (#964, #954, #947)
926
* PGDATABASE as default create node --dbname. (#956)
1027
* Add chapters to the documentation navigation. (#954)

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def __init__(self, **options):
7171
# built documents.
7272
#
7373
# The short X.Y version.
74-
version = "2.1"
74+
version = "2.2"
7575
# The full version, including alpha/beta/rc tags.
76-
release = "2.1"
76+
release = "2.2"
7777

7878
# The language for content autogenerated by Sphinx. Refer to documentation
7979
# for a list of supported languages.

src/bin/pg_autoctl/azure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,8 @@ azure_prepare_target_versions(KeyVal *env)
11411141

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

11471147
for (int i = 0; i < 3; i++)
11481148
{

src/bin/pg_autoctl/defaults.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define PG_AUTOCTL_VERSION GIT_VERSION
2020

2121
/* version of the extension that we requite to talk to on the monitor */
22-
#define PG_AUTOCTL_EXTENSION_VERSION "2.1"
22+
#define PG_AUTOCTL_EXTENSION_VERSION "2.2"
2323

2424
/* environment variable to use to make DEBUG facilities available */
2525
#define PG_AUTOCTL_DEBUG "PG_AUTOCTL_DEBUG"

src/monitor/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the PostgreSQL License.
33

44
EXTENSION = pgautofailover
5-
EXTVERSION = 2.1
5+
EXTVERSION = 2.2
66

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

src/monitor/expected/dummy_update.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ select installed_version
1919
-- should error because installed extension isn't compatible with .so
2020
select * from pgautofailover.get_primary('unknown formation');
2121
ERROR: loaded "pgautofailover" library version differs from installed extension version
22-
DETAIL: Loaded library requires 2.1, but the installed extension version is dummy.
22+
DETAIL: Loaded library requires 2.2, but the installed extension version is dummy.
2323
HINT: Run ALTER EXTENSION pgautofailover UPDATE and try again.

src/monitor/metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "storage/lockdefs.h"
1717

18-
#define AUTO_FAILOVER_EXTENSION_VERSION "2.1"
18+
#define AUTO_FAILOVER_EXTENSION_VERSION "2.2"
1919
#define AUTO_FAILOVER_EXTENSION_NAME "pgautofailover"
2020
#define AUTO_FAILOVER_SCHEMA_NAME "pgautofailover"
2121
#define AUTO_FAILOVER_FORMATION_TABLE "pgautofailover.formation"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--
2+
-- extension update file from 2.0 to 2.1
3+
--
4+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
5+
\echo Use "CREATE EXTENSION pgautofailover" to load this file. \quit
6+
7+
-- no changes, just the version number
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--
2+
-- extension update file from 2.1 to 2.2
3+
--
4+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
5+
\echo Use "CREATE EXTENSION pgautofailover" to load this file. \quit
6+
7+
-- no changes, just the version number

0 commit comments

Comments
 (0)