Skip to content

Commit

Permalink
Prepare release 1.4.2. (#579)
Browse files Browse the repository at this point in the history
* Prepare release 1.4.2.
* Apply upstream changes from Postgres src/port.
  • Loading branch information
DimCitus authored Feb 4, 2021
1 parent 3f69a28 commit 238bfec
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 24 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
### pg_auto_failover v1.4.2 (February 3, 2021) ###

This is a bugfix release for v1.4 series

#### Added
* Implement pg_autoctl do azure commands (QA tooling). [#544]
* pg autoctl show settings. [#549]
* Improve docker images (build, release). [#556]
* Run monitor extension test suite in the CI. [#553]
* Implement pg_autoctl create postgres --pg-hba-lan option. [#561]

#### Fixed
* Deduplicate PATH entries, following symlinks. [#547]
* Review consequences of pg_autoctl set formation number-sync-standbys 0. [#535]
* Fix bytes mangling opportunity. [#550]
* Allow setting replication settings to their current value. [#570]
* Fix the return code when stop the node that is started by pg_autoctl. [#572]
* Set formation kind when expected. [#577]
* Fix retry loops with wait time to stop using 100% CPU. [#578]

### pg_auto_failover v1.4.1 (December 3, 2020) ###

This is a bugfix release for v1.4.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ AZURE_LOCATION ?= francecentral
# 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.1-1
AZ_PGAF_DEB_REVISION ?= 1.4.2-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.4"
# The full version, including alpha/beta/rc tags.
release = "1.4.1"
release = "1.4.2"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
27 changes: 10 additions & 17 deletions src/bin/lib/pg/strerror.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* strerror.c
* Replacements for standard strerror() and strerror_r() functions
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
Expand All @@ -14,6 +14,7 @@
*/
#include "postgres_fe.h"
#include "snprintf.h"
#include "c.h"

/*
* Within this file, "strerror" means the platform's function not pg_strerror,
Expand Down Expand Up @@ -119,14 +120,10 @@ get_errno_symbol(int errnum)
return "E2BIG";
case EACCES:
return "EACCES";
#ifdef EADDRINUSE
case EADDRINUSE:
return "EADDRINUSE";
#endif
#ifdef EADDRNOTAVAIL
case EADDRNOTAVAIL:
return "EADDRNOTAVAIL";
#endif
case EAFNOSUPPORT:
return "EAFNOSUPPORT";
#ifdef EAGAIN
Expand All @@ -147,16 +144,12 @@ get_errno_symbol(int errnum)
return "EBUSY";
case ECHILD:
return "ECHILD";
#ifdef ECONNABORTED
case ECONNABORTED:
return "ECONNABORTED";
#endif
case ECONNREFUSED:
return "ECONNREFUSED";
#ifdef ECONNRESET
case ECONNRESET:
return "ECONNRESET";
#endif
case EDEADLK:
return "EDEADLK";
case EDOM:
Expand All @@ -167,10 +160,10 @@ get_errno_symbol(int errnum)
return "EFAULT";
case EFBIG:
return "EFBIG";
#ifdef EHOSTUNREACH
case EHOSTDOWN:
return "EHOSTDOWN";
case EHOSTUNREACH:
return "EHOSTUNREACH";
#endif
case EIDRM:
return "EIDRM";
case EINPROGRESS:
Expand All @@ -181,10 +174,8 @@ get_errno_symbol(int errnum)
return "EINVAL";
case EIO:
return "EIO";
#ifdef EISCONN
case EISCONN:
return "EISCONN";
#endif
case EISDIR:
return "EISDIR";
#ifdef ELOOP
Expand All @@ -199,6 +190,12 @@ get_errno_symbol(int errnum)
return "EMSGSIZE";
case ENAMETOOLONG:
return "ENAMETOOLONG";
case ENETDOWN:
return "ENETDOWN";
case ENETRESET:
return "ENETRESET";
case ENETUNREACH:
return "ENETUNREACH";
case ENFILE:
return "ENFILE";
case ENOBUFS:
Expand All @@ -215,20 +212,16 @@ get_errno_symbol(int errnum)
return "ENOSPC";
case ENOSYS:
return "ENOSYS";
#ifdef ENOTCONN
case ENOTCONN:
return "ENOTCONN";
#endif
case ENOTDIR:
return "ENOTDIR";
#if defined(ENOTEMPTY) && (ENOTEMPTY != EEXIST) /* same code on AIX */
case ENOTEMPTY:
return "ENOTEMPTY";
#endif
#ifdef ENOTSOCK
case ENOTSOCK:
return "ENOTSOCK";
#endif
#ifdef ENOTSUP
case ENOTSUP:
return "ENOTSUP";
Expand Down
8 changes: 4 additions & 4 deletions src/bin/pg_autoctl/azure.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ azure_build_pg_autoctl(AzureRegionResources *azRegion)
*
* AZ_PG_VERSION ?= 13
* AZ_PGAF_DEB_VERSION ?= 1.4
* AZ_PGAF_DEB_REVISION ?= 1.4.1-1
* AZ_PGAF_DEB_REVISION ?= 1.4.2-1
*/
bool
azure_prepare_target_versions(KeyVal *env)
Expand All @@ -1147,7 +1147,7 @@ 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.1-1"); /* AZ_PGAF_DEB_REVISION */
sformat(env->values[2], MAXCONNINFO, "1.4.2-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.1-1 \
* pg-auto-failover-cli-1.4=1.4.0-1
* postgresql-13-auto-failover-1.4=1.4.2-1 \
* pg-auto-failover-cli-1.4=1.4.2-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
2 changes: 1 addition & 1 deletion src/bin/pg_autoctl/defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PG_AUTOCTL_STATE_VERSION 1

/* additional version information for printing version on CLI */
#define PG_AUTOCTL_VERSION "1.4.1"
#define PG_AUTOCTL_VERSION "1.4.2"

/* version of the extension that we requite to talk to on the monitor */
#define PG_AUTOCTL_EXTENSION_VERSION "1.4"
Expand Down

0 comments on commit 238bfec

Please sign in to comment.