Skip to content

Commit fe484a0

Browse files
DimCitusJelteF
andauthored
Prepare release 1.5.1. (#644)
* Prepare release 1.5.1. Update the CHANGELOG and the version strings. * Update Azure package versions. * Review monitor extension version: 1.5. The extension version keeps only two digits. * Update CHANGELOG.md Co-authored-by: Jelte Fennema <github-tech@jeltef.nl> * Update CHANGELOG.md Co-authored-by: Jelte Fennema <github-tech@jeltef.nl> Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
1 parent 37d4323 commit fe484a0

File tree

13 files changed

+86
-898
lines changed

13 files changed

+86
-898
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
### pg_auto_failover v1.5.1 (March 24, 2021) ###
2+
3+
This release contains monitor schema changes, so the monitor extension gets
4+
a version bump from 1.4 to 1.5, and this is the first release in the 1.5
5+
series.
6+
7+
#### Added
8+
* Add support for systemd ExecReload option. [#623]
9+
* Implement online enable/disable monitor support. [#591]
10+
* Add individual pages for the pg_autoctl commands. [#632]
11+
* Implement a demo application showing client-side reconnections. [#568]
12+
13+
#### Changed
14+
15+
The main change in the CLI is that `pg_autoctl show uri --monitor` does not
16+
display the connection string to the monitor anymore, instead it allows
17+
passing the URI to the monitor, same as with the other `pg_autoctl show
18+
commands`. To display the monitor connection string, use `pg_autoctl show
19+
uri --formation monitor` now.
20+
21+
* Allow using --monitor uri for a lot of commands [#576]
22+
* Review pg_autoctl show state output, and docs. [#617]
23+
* Avoid using synchronous standby name wildcard [#629]
24+
25+
#### Fixed
26+
* Fix supervisor messages about exited services. [#589]
27+
* Fix memory management issue in monitor_register_node. [#590]
28+
* Fix a buffer overlap instruction that macOs libc fails to process. [#610]
29+
* Add pg_logging_init for PG version 12 and above [#612]
30+
* Fix skip hba propagation [#588, #609]
31+
* Improve DNS lookup error handling. [#615]
32+
* Do not leak psycopg2 connections during testing [#628]
33+
134
### pg_auto_failover v1.4.2 (February 3, 2021) ###
235

336
This is a bugfix release for v1.4 series

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ AZURE_LOCATION ?= francecentral
7777
# Pick a version of Postgres and pg_auto_failover packages to install
7878
# in our target Azure VMs when provisionning
7979
#
80-
# sudo apt-get install -q -y postgresql-13-auto-failover-1.4=1.4.1
80+
# sudo apt-get install -q -y postgresql-13-auto-failover-1.5=1.5.1
8181
# postgresql-${AZ_PG_VERSION}-auto-failover-${AZ_PGAF_DEB_VERSION}=${AZ_PGAF_VERSION}
8282
AZ_PG_VERSION ?= 13
83-
AZ_PGAF_DEB_VERSION ?= 1.4
84-
AZ_PGAF_DEB_REVISION ?= 1.4.2-1
83+
AZ_PGAF_DEB_VERSION ?= 1.5
84+
AZ_PGAF_DEB_REVISION ?= 1.5.1-1
8585

8686
export AZ_PG_VERSION
8787
export AZ_PGAF_DEB_VERSION

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, **options):
7373
# The short X.Y version.
7474
version = "1.5"
7575
# The full version, including alpha/beta/rc tags.
76-
release = "1.5.0.2"
76+
release = "1.5.1"
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,8 +1131,8 @@ azure_build_pg_autoctl(AzureRegionResources *azRegion)
11311131
* environment variables:
11321132
*
11331133
* AZ_PG_VERSION ?= 13
1134-
* AZ_PGAF_DEB_VERSION ?= 1.4
1135-
* AZ_PGAF_DEB_REVISION ?= 1.4.2-1
1134+
* AZ_PGAF_DEB_VERSION ?= 1.5
1135+
* AZ_PGAF_DEB_REVISION ?= 1.5.1-1
11361136
*/
11371137
bool
11381138
azure_prepare_target_versions(KeyVal *env)
@@ -1146,8 +1146,8 @@ azure_prepare_target_versions(KeyVal *env)
11461146

11471147
/* default values */
11481148
sformat(env->values[0], MAXCONNINFO, "13"); /* AZ_PG_VERSION */
1149-
sformat(env->values[1], MAXCONNINFO, "1.4"); /* AZ_PGAF_DEB_VERSION */
1150-
sformat(env->values[2], MAXCONNINFO, "1.4.2-1"); /* AZ_PGAF_DEB_REVISION */
1149+
sformat(env->values[1], MAXCONNINFO, "1.5"); /* AZ_PGAF_DEB_VERSION */
1150+
sformat(env->values[2], MAXCONNINFO, "1.5.1-1"); /* AZ_PGAF_DEB_REVISION */
11511151

11521152
for (int i = 0; i < 3; i++)
11531153
{
@@ -1174,8 +1174,8 @@ azure_prepare_target_versions(KeyVal *env)
11741174
* target pg_auto_failover package on the Azure VMs.
11751175
*
11761176
* sudo apt-get install -q -y \
1177-
* postgresql-13-auto-failover-1.4=1.4.2-1 \
1178-
* pg-auto-failover-cli-1.4=1.4.2-1
1177+
* postgresql-13-auto-failover-1.5=1.5.1-1 \
1178+
* pg-auto-failover-cli-1.5=1.5.1-1
11791179
*
11801180
* We are using environment variables to fill in the actual version numbers,
11811181
* and we hard-code some defaults in case the environment has not be provided

src/bin/pg_autoctl/defaults.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#define PG_AUTOCTL_STATE_VERSION 1
1515

1616
/* additional version information for printing version on CLI */
17-
#define PG_AUTOCTL_VERSION "1.5.0"
17+
#define PG_AUTOCTL_VERSION "1.5.1"
1818

1919
/* version of the extension that we requite to talk to on the monitor */
20-
#define PG_AUTOCTL_EXTENSION_VERSION "1.5.0.2"
20+
#define PG_AUTOCTL_EXTENSION_VERSION "1.5"
2121

2222
/* environment variable to use to make DEBUG facilities available */
2323
#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 = 1.5.0.2
5+
EXTVERSION = 1.5
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 1.5.0.2, but the installed extension version is dummy.
22+
DETAIL: Loaded library requires 1.5, 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 "1.5.0.2"
18+
#define AUTO_FAILOVER_EXTENSION_VERSION "1.5"
1919
#define AUTO_FAILOVER_EXTENSION_NAME "pgautofailover"
2020
#define AUTO_FAILOVER_SCHEMA_NAME "pgautofailover"
2121
#define AUTO_FAILOVER_FORMATION_TABLE "pgautofailover.formation"

src/monitor/pgautofailover--1.4--1.5.0.1.sql renamed to src/monitor/pgautofailover--1.4--1.5.sql

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--
2-
-- extension update file from 1.4 to 1.5
2+
-- extension update file from 1.4.2 to 1.5.1
33
--
44
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
55
\echo Use "CREATE EXTENSION pgautofailover" to load this file. \quit
@@ -48,3 +48,39 @@ AS $$
4848
and groupid = 0
4949
and nodecluster = cluster_name;
5050
$$;
51+
52+
DROP FUNCTION IF EXISTS
53+
pgautofailover.register_node(text,text,int,name,text,bigint,int,
54+
pgautofailover.replication_state,text,
55+
int,bool,text);
56+
57+
CREATE FUNCTION pgautofailover.register_node
58+
(
59+
IN formation_id text,
60+
IN node_host text,
61+
IN node_port int,
62+
IN dbname name,
63+
IN node_name text default '',
64+
IN sysidentifier bigint default 0,
65+
IN desired_node_id int default -1,
66+
IN desired_group_id int default -1,
67+
IN initial_group_role pgautofailover.replication_state default 'init',
68+
IN node_kind text default 'standalone',
69+
IN candidate_priority int default 100,
70+
IN replication_quorum bool default true,
71+
IN node_cluster text default 'default',
72+
OUT assigned_node_id int,
73+
OUT assigned_group_id int,
74+
OUT assigned_group_state pgautofailover.replication_state,
75+
OUT assigned_candidate_priority int,
76+
OUT assigned_replication_quorum bool,
77+
OUT assigned_node_name text
78+
)
79+
RETURNS record LANGUAGE C STRICT SECURITY DEFINER
80+
AS 'MODULE_PATHNAME', $$register_node$$;
81+
82+
grant execute on function
83+
pgautofailover.register_node(text,text,int,name,text,bigint,int,int,
84+
pgautofailover.replication_state,text,
85+
int,bool,text)
86+
to autoctl_node;
File renamed without changes.

0 commit comments

Comments
 (0)