Skip to content

Commit 238bfec

Browse files
authored
Prepare release 1.4.2. (#579)
* Prepare release 1.4.2. * Apply upstream changes from Postgres src/port.
1 parent 3f69a28 commit 238bfec

File tree

6 files changed

+37
-24
lines changed

6 files changed

+37
-24
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
### pg_auto_failover v1.4.2 (February 3, 2021) ###
2+
3+
This is a bugfix release for v1.4 series
4+
5+
#### Added
6+
* Implement pg_autoctl do azure commands (QA tooling). [#544]
7+
* pg autoctl show settings. [#549]
8+
* Improve docker images (build, release). [#556]
9+
* Run monitor extension test suite in the CI. [#553]
10+
* Implement pg_autoctl create postgres --pg-hba-lan option. [#561]
11+
12+
#### Fixed
13+
* Deduplicate PATH entries, following symlinks. [#547]
14+
* Review consequences of pg_autoctl set formation number-sync-standbys 0. [#535]
15+
* Fix bytes mangling opportunity. [#550]
16+
* Allow setting replication settings to their current value. [#570]
17+
* Fix the return code when stop the node that is started by pg_autoctl. [#572]
18+
* Set formation kind when expected. [#577]
19+
* Fix retry loops with wait time to stop using 100% CPU. [#578]
20+
121
### pg_auto_failover v1.4.1 (December 3, 2020) ###
222

323
This is a bugfix release for v1.4.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ AZURE_LOCATION ?= francecentral
5353
# postgresql-${AZ_PG_VERSION}-auto-failover-${AZ_PGAF_DEB_VERSION}=${AZ_PGAF_VERSION}
5454
AZ_PG_VERSION ?= 13
5555
AZ_PGAF_DEB_VERSION ?= 1.4
56-
AZ_PGAF_DEB_REVISION ?= 1.4.1-1
56+
AZ_PGAF_DEB_REVISION ?= 1.4.2-1
5757

5858
export AZ_PG_VERSION
5959
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.4"
7575
# The full version, including alpha/beta/rc tags.
76-
release = "1.4.1"
76+
release = "1.4.2"
7777

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

src/bin/lib/pg/strerror.c

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* strerror.c
44
* Replacements for standard strerror() and strerror_r() functions
55
*
6-
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
6+
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
*
@@ -14,6 +14,7 @@
1414
*/
1515
#include "postgres_fe.h"
1616
#include "snprintf.h"
17+
#include "c.h"
1718

1819
/*
1920
* Within this file, "strerror" means the platform's function not pg_strerror,
@@ -119,14 +120,10 @@ get_errno_symbol(int errnum)
119120
return "E2BIG";
120121
case EACCES:
121122
return "EACCES";
122-
#ifdef EADDRINUSE
123123
case EADDRINUSE:
124124
return "EADDRINUSE";
125-
#endif
126-
#ifdef EADDRNOTAVAIL
127125
case EADDRNOTAVAIL:
128126
return "EADDRNOTAVAIL";
129-
#endif
130127
case EAFNOSUPPORT:
131128
return "EAFNOSUPPORT";
132129
#ifdef EAGAIN
@@ -147,16 +144,12 @@ get_errno_symbol(int errnum)
147144
return "EBUSY";
148145
case ECHILD:
149146
return "ECHILD";
150-
#ifdef ECONNABORTED
151147
case ECONNABORTED:
152148
return "ECONNABORTED";
153-
#endif
154149
case ECONNREFUSED:
155150
return "ECONNREFUSED";
156-
#ifdef ECONNRESET
157151
case ECONNRESET:
158152
return "ECONNRESET";
159-
#endif
160153
case EDEADLK:
161154
return "EDEADLK";
162155
case EDOM:
@@ -167,10 +160,10 @@ get_errno_symbol(int errnum)
167160
return "EFAULT";
168161
case EFBIG:
169162
return "EFBIG";
170-
#ifdef EHOSTUNREACH
163+
case EHOSTDOWN:
164+
return "EHOSTDOWN";
171165
case EHOSTUNREACH:
172166
return "EHOSTUNREACH";
173-
#endif
174167
case EIDRM:
175168
return "EIDRM";
176169
case EINPROGRESS:
@@ -181,10 +174,8 @@ get_errno_symbol(int errnum)
181174
return "EINVAL";
182175
case EIO:
183176
return "EIO";
184-
#ifdef EISCONN
185177
case EISCONN:
186178
return "EISCONN";
187-
#endif
188179
case EISDIR:
189180
return "EISDIR";
190181
#ifdef ELOOP
@@ -199,6 +190,12 @@ get_errno_symbol(int errnum)
199190
return "EMSGSIZE";
200191
case ENAMETOOLONG:
201192
return "ENAMETOOLONG";
193+
case ENETDOWN:
194+
return "ENETDOWN";
195+
case ENETRESET:
196+
return "ENETRESET";
197+
case ENETUNREACH:
198+
return "ENETUNREACH";
202199
case ENFILE:
203200
return "ENFILE";
204201
case ENOBUFS:
@@ -215,20 +212,16 @@ get_errno_symbol(int errnum)
215212
return "ENOSPC";
216213
case ENOSYS:
217214
return "ENOSYS";
218-
#ifdef ENOTCONN
219215
case ENOTCONN:
220216
return "ENOTCONN";
221-
#endif
222217
case ENOTDIR:
223218
return "ENOTDIR";
224219
#if defined(ENOTEMPTY) && (ENOTEMPTY != EEXIST) /* same code on AIX */
225220
case ENOTEMPTY:
226221
return "ENOTEMPTY";
227222
#endif
228-
#ifdef ENOTSOCK
229223
case ENOTSOCK:
230224
return "ENOTSOCK";
231-
#endif
232225
#ifdef ENOTSUP
233226
case ENOTSUP:
234227
return "ENOTSUP";

src/bin/pg_autoctl/azure.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ azure_build_pg_autoctl(AzureRegionResources *azRegion)
11321132
*
11331133
* AZ_PG_VERSION ?= 13
11341134
* AZ_PGAF_DEB_VERSION ?= 1.4
1135-
* AZ_PGAF_DEB_REVISION ?= 1.4.1-1
1135+
* AZ_PGAF_DEB_REVISION ?= 1.4.2-1
11361136
*/
11371137
bool
11381138
azure_prepare_target_versions(KeyVal *env)
@@ -1147,7 +1147,7 @@ azure_prepare_target_versions(KeyVal *env)
11471147
/* default values */
11481148
sformat(env->values[0], MAXCONNINFO, "13"); /* AZ_PG_VERSION */
11491149
sformat(env->values[1], MAXCONNINFO, "1.4"); /* AZ_PGAF_DEB_VERSION */
1150-
sformat(env->values[2], MAXCONNINFO, "1.4.1-1"); /* AZ_PGAF_DEB_REVISION */
1150+
sformat(env->values[2], MAXCONNINFO, "1.4.2-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.1-1 \
1178-
* pg-auto-failover-cli-1.4=1.4.0-1
1177+
* postgresql-13-auto-failover-1.4=1.4.2-1 \
1178+
* pg-auto-failover-cli-1.4=1.4.2-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define PG_AUTOCTL_STATE_VERSION 1
1515

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

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

0 commit comments

Comments
 (0)