Skip to content

Commit 73c0d7e

Browse files
authored
Prepare/release 2.0 (#944)
* Update source dependency: parson. * Release v2.0. * Update monitor make installcheck expected files.
1 parent 62f982b commit 73c0d7e

File tree

15 files changed

+75
-21
lines changed

15 files changed

+75
-21
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
### pg_auto_failover v2.0 (October 7, 2022) ###
2+
3+
This new release includes support for Citus in pg_auto_failover, the usual
4+
amount of bug fixes, and update documentation with new tutorials and
5+
diagrams.
6+
7+
The source code repository branch "master" was renamed to "main". This
8+
impacts the URLs of the docs for the not-yet released versions, and if
9+
you're using your own local git clone you might need to change your remote
10+
settings to follow the "main" branch now.
11+
12+
### Added
13+
* Implement Citus support in pg_auto_failover. (#933)
14+
* Improve our Citus support for modern Citus compatibility. (#939)
15+
16+
### Fixed
17+
* Fix documentation of health_check_period to match code (#926)
18+
* Bug fix: if process is stopped, refrain from signaling PID 0. (#921)
19+
* Fix monitor extension for new Postgres 15 shared memory hooks. (#922)
20+
* Refrain from using PGPASSWORD for pg_basebackup connection. (#768)
21+
* Fix build on FreeBSD (sempahore union support). (#901)
22+
* Improve tests stability around wait-until-pg-is-running. (#900)
23+
* Avoid NULL pointer check (#898)
24+
* Fix incorrect order of arguments in prototype (#887)
25+
* Fix check for negative pid (#888)
26+
* Fix potential out of bounds array access (#889)
27+
* Fix incorrect indentation of foreach block (#884)
28+
* docs: fix various typos (#885)
29+
* Fix tests for a non-interactive environment. (#894)
30+
* Fix ssl test by copying root client-side certificates. (#893)
31+
32+
### Changed
33+
* Review the README, introduce a new first simple tutorial. (#942)
34+
* Use our docker test infrastructure on GitHub Actions. (#937)
35+
* Include Postgres 15 in our CI testing. (#923)
36+
* Improve our docker compose file a little. (#724)
37+
* Improve documentation thanks to user feedback. (#909)
38+
* Trigger github action workflow on pull requests to master. (#895)
39+
140
### pg_auto_failover v1.6.4 (January 22, 2022) ###
241

342
This is a bug fix release for the 1.6 series.

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 = "1.6"
74+
version = "2.0"
7575
# The full version, including alpha/beta/rc tags.
76-
release = "1.6.4"
76+
release = "2.0"
7777

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

src/bin/lib/parson/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012 - 2020 Krzysztof Gabis
3+
Copyright (c) 2012 - 2022 Krzysztof Gabis
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/bin/lib/parson/parson.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson 1.3.0 ( http://kgabis.github.com/parson/ )
4+
Parson 1.4.0 (https://github.com/kgabis/parson)
55
Copyright (c) 2012 - 2022 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -31,7 +31,7 @@
3131
#include "parson.h"
3232

3333
#define PARSON_IMPL_VERSION_MAJOR 1
34-
#define PARSON_IMPL_VERSION_MINOR 3
34+
#define PARSON_IMPL_VERSION_MINOR 4
3535
#define PARSON_IMPL_VERSION_PATCH 0
3636

3737
#if (PARSON_VERSION_MAJOR != PARSON_IMPL_VERSION_MAJOR)\
@@ -596,7 +596,7 @@ static JSON_Status json_object_add(JSON_Object *object, char *name, JSON_Value *
596596
static JSON_Value * json_object_getn_value(const JSON_Object *object, const char *name, size_t name_len) {
597597
unsigned long hash = 0;
598598
parson_bool_t found = PARSON_FALSE;
599-
unsigned long cell_ix = 0;
599+
size_t cell_ix = 0;
600600
size_t item_ix = 0;
601601
if (!object || !name) {
602602
return NULL;
@@ -980,6 +980,9 @@ static JSON_Value * parse_object_value(const char **string, size_t nesting) {
980980
}
981981
SKIP_CHAR(string);
982982
SKIP_WHITESPACES(string);
983+
if (**string == '}') {
984+
break;
985+
}
983986
}
984987
SKIP_WHITESPACES(string);
985988
if (**string != '}') {
@@ -1025,6 +1028,9 @@ static JSON_Value * parse_array_value(const char **string, size_t nesting) {
10251028
}
10261029
SKIP_CHAR(string);
10271030
SKIP_WHITESPACES(string);
1031+
if (**string == ']') {
1032+
break;
1033+
}
10281034
}
10291035
SKIP_WHITESPACES(string);
10301036
if (**string != ']' || /* Trim array after parsing is over */

src/bin/lib/parson/parson.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson 1.3.0 ( http://kgabis.github.com/parson/ )
4+
Parson 1.4.0 (https://github.com/kgabis/parson)
55
Copyright (c) 2012 - 2022 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -35,10 +35,10 @@ extern "C"
3535
#endif
3636

3737
#define PARSON_VERSION_MAJOR 1
38-
#define PARSON_VERSION_MINOR 3
38+
#define PARSON_VERSION_MINOR 4
3939
#define PARSON_VERSION_PATCH 0
4040

41-
#define PARSON_VERSION_STRING "1.3.0"
41+
#define PARSON_VERSION_STRING "1.4.0"
4242

4343
#include <stddef.h> /* size_t */
4444

src/bin/lib/parson/tests.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson ( http://kgabis.github.com/parson/ )
4+
Parson (https://github.com/kgabis/parson)
55
Copyright (c) 2012 - 2022 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -307,6 +307,8 @@ void test_suite_3(void) {
307307
TEST(json_parse_string("false") != NULL);
308308
TEST(json_parse_string("\"string\"") != NULL);
309309
TEST(json_parse_string("123") != NULL);
310+
TEST(json_parse_string("[\"lorem\",]") != NULL);
311+
TEST(json_parse_string("{\"lorem\":\"ipsum\",}") != NULL);
310312

311313
/* Test UTF-16 parsing */
312314
TEST(STREQ(json_string(json_parse_string("\"\\u0024x\"")), "$x"));
@@ -318,9 +320,9 @@ void test_suite_3(void) {
318320
g_malloc_count = 0;
319321
TEST(json_parse_string(NULL) == NULL);
320322
TEST(json_parse_string("") == NULL); /* empty string */
321-
TEST(json_parse_string("[\"lorem\",]") == NULL);
322-
TEST(json_parse_string("{\"lorem\":\"ipsum\",}") == NULL);
323323
TEST(json_parse_string("{lorem:ipsum}") == NULL);
324+
TEST(json_parse_string("{\"lorem\":\"ipsum\",]") == NULL);
325+
TEST(json_parse_string("{\"lorem\":\"ipsum\",,}") == NULL);
324326
TEST(json_parse_string("[,]") == NULL);
325327
TEST(json_parse_string("[,") == NULL);
326328
TEST(json_parse_string("[") == NULL);

src/bin/lib/parson/tests/test_2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
"url" : "https:\/\/www.example.com\/search?q=12345",
3232
"escaped chars" : "\" \\ \/",
3333
"empty object" : {},
34-
"empty array" : []
34+
"empty array" : [],
3535
}

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, "1.6"); /* AZ_PGAF_DEB_VERSION */
1145-
sformat(env->values[2], MAXCONNINFO, "1.6.4-1"); /* AZ_PGAF_DEB_REVISION */
1144+
sformat(env->values[1], MAXCONNINFO, "2.0"); /* AZ_PGAF_DEB_VERSION */
1145+
sformat(env->values[2], MAXCONNINFO, "2.0-1"); /* AZ_PGAF_DEB_REVISION */
11461146

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

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.6.4"
17+
#define PG_AUTOCTL_VERSION "2.0"
1818

1919
/* version of the extension that we requite to talk to on the monitor */
20-
#define PG_AUTOCTL_EXTENSION_VERSION "1.6"
20+
#define PG_AUTOCTL_EXTENSION_VERSION "2.0"
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.6
5+
EXTVERSION = 2.0
66

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

0 commit comments

Comments
 (0)