Skip to content

Commit

Permalink
Prepare release 1.5.1. (#644)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Jelte Fennema <[email protected]>

Co-authored-by: Jelte Fennema <[email protected]>
  • Loading branch information
DimCitus and JelteF authored Mar 24, 2021
1 parent 37d4323 commit fe484a0
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 898 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
### pg_auto_failover v1.5.1 (March 24, 2021) ###

This release contains monitor schema changes, so the monitor extension gets
a version bump from 1.4 to 1.5, and this is the first release in the 1.5
series.

#### Added
* Add support for systemd ExecReload option. [#623]
* Implement online enable/disable monitor support. [#591]
* Add individual pages for the pg_autoctl commands. [#632]
* Implement a demo application showing client-side reconnections. [#568]

#### Changed

The main change in the CLI is that `pg_autoctl show uri --monitor` does not
display the connection string to the monitor anymore, instead it allows
passing the URI to the monitor, same as with the other `pg_autoctl show
commands`. To display the monitor connection string, use `pg_autoctl show
uri --formation monitor` now.

* Allow using --monitor uri for a lot of commands [#576]
* Review pg_autoctl show state output, and docs. [#617]
* Avoid using synchronous standby name wildcard [#629]

#### Fixed
* Fix supervisor messages about exited services. [#589]
* Fix memory management issue in monitor_register_node. [#590]
* Fix a buffer overlap instruction that macOs libc fails to process. [#610]
* Add pg_logging_init for PG version 12 and above [#612]
* Fix skip hba propagation [#588, #609]
* Improve DNS lookup error handling. [#615]
* Do not leak psycopg2 connections during testing [#628]

### pg_auto_failover v1.4.2 (February 3, 2021) ###

This is a bugfix release for v1.4 series
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ AZURE_LOCATION ?= francecentral
# Pick a version of Postgres and pg_auto_failover packages to install
# in our target Azure VMs when provisionning
#
# sudo apt-get install -q -y postgresql-13-auto-failover-1.4=1.4.1
# sudo apt-get install -q -y postgresql-13-auto-failover-1.5=1.5.1
# postgresql-${AZ_PG_VERSION}-auto-failover-${AZ_PGAF_DEB_VERSION}=${AZ_PGAF_VERSION}
AZ_PG_VERSION ?= 13
AZ_PGAF_DEB_VERSION ?= 1.4
AZ_PGAF_DEB_REVISION ?= 1.4.2-1
AZ_PGAF_DEB_VERSION ?= 1.5
AZ_PGAF_DEB_REVISION ?= 1.5.1-1

export AZ_PG_VERSION
export AZ_PGAF_DEB_VERSION
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, **options):
# The short X.Y version.
version = "1.5"
# The full version, including alpha/beta/rc tags.
release = "1.5.0.2"
release = "1.5.1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
12 changes: 6 additions & 6 deletions src/bin/pg_autoctl/azure.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ azure_build_pg_autoctl(AzureRegionResources *azRegion)
* environment variables:
*
* AZ_PG_VERSION ?= 13
* AZ_PGAF_DEB_VERSION ?= 1.4
* AZ_PGAF_DEB_REVISION ?= 1.4.2-1
* AZ_PGAF_DEB_VERSION ?= 1.5
* AZ_PGAF_DEB_REVISION ?= 1.5.1-1
*/
bool
azure_prepare_target_versions(KeyVal *env)
Expand All @@ -1146,8 +1146,8 @@ azure_prepare_target_versions(KeyVal *env)

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

for (int i = 0; i < 3; i++)
{
Expand All @@ -1174,8 +1174,8 @@ azure_prepare_target_versions(KeyVal *env)
* target pg_auto_failover package on the Azure VMs.
*
* sudo apt-get install -q -y \
* postgresql-13-auto-failover-1.4=1.4.2-1 \
* pg-auto-failover-cli-1.4=1.4.2-1
* postgresql-13-auto-failover-1.5=1.5.1-1 \
* pg-auto-failover-cli-1.5=1.5.1-1
*
* We are using environment variables to fill in the actual version numbers,
* and we hard-code some defaults in case the environment has not be provided
Expand Down
4 changes: 2 additions & 2 deletions src/bin/pg_autoctl/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#define PG_AUTOCTL_STATE_VERSION 1

/* additional version information for printing version on CLI */
#define PG_AUTOCTL_VERSION "1.5.0"
#define PG_AUTOCTL_VERSION "1.5.1"

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

/* 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 = 1.5.0.2
EXTVERSION = 1.5

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 1.5.0.2, but the installed extension version is dummy.
DETAIL: Loaded library requires 1.5, 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 "1.5.0.2"
#define AUTO_FAILOVER_EXTENSION_VERSION "1.5"
#define AUTO_FAILOVER_EXTENSION_NAME "pgautofailover"
#define AUTO_FAILOVER_SCHEMA_NAME "pgautofailover"
#define AUTO_FAILOVER_FORMATION_TABLE "pgautofailover.formation"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- extension update file from 1.4 to 1.5
-- extension update file from 1.4.2 to 1.5.1
--
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgautofailover" to load this file. \quit
Expand Down Expand Up @@ -48,3 +48,39 @@ AS $$
and groupid = 0
and nodecluster = cluster_name;
$$;

DROP FUNCTION IF EXISTS
pgautofailover.register_node(text,text,int,name,text,bigint,int,
pgautofailover.replication_state,text,
int,bool,text);

CREATE FUNCTION pgautofailover.register_node
(
IN formation_id text,
IN node_host text,
IN node_port int,
IN dbname name,
IN node_name text default '',
IN sysidentifier bigint default 0,
IN desired_node_id int default -1,
IN desired_group_id int default -1,
IN initial_group_role pgautofailover.replication_state default 'init',
IN node_kind text default 'standalone',
IN candidate_priority int default 100,
IN replication_quorum bool default true,
IN node_cluster text default 'default',
OUT assigned_node_id int,
OUT assigned_group_id int,
OUT assigned_group_state pgautofailover.replication_state,
OUT assigned_candidate_priority int,
OUT assigned_replication_quorum bool,
OUT assigned_node_name text
)
RETURNS record LANGUAGE C STRICT SECURITY DEFINER
AS 'MODULE_PATHNAME', $$register_node$$;

grant execute on function
pgautofailover.register_node(text,text,int,name,text,bigint,int,int,
pgautofailover.replication_state,text,
int,bool,text)
to autoctl_node;
File renamed without changes.
41 changes: 0 additions & 41 deletions src/monitor/pgautofailover--1.5.0.1--1.5.0.2.sql

This file was deleted.

Loading

0 comments on commit fe484a0

Please sign in to comment.