Skip to content

Commit 125bb19

Browse files
authored
Prepare/release 1.5.2 (#710)
* Update changelog. * Update parson JSON parsing lib. * Update version numbers.
1 parent d945ca1 commit 125bb19

File tree

15 files changed

+116
-14
lines changed

15 files changed

+116
-14
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 v1.5.2 (May 20, 2021) ###
2+
3+
This is a bugfix release for the v1.5 series.
4+
5+
In addition to bug fixes, this release also contains a lift of the
6+
restriction to always have at least two nodes with a non-zero candidate
7+
priority in a group. It is now possible to use pg_auto_failover and only
8+
have manual failover.
9+
10+
If you're using the output from the command `pg_autoctl show settings
11+
--json` please notice that we changed the JSON format we use in the output.
12+
See #697 for details.
13+
14+
#### Added
15+
* Check that a "replication" connection is possible before pg_rewind. [#665]
16+
* Allow manual promotion of nodes with candidate priority zero. [#661]
17+
* Implement a new configuration option listen_notifications_timeout. [#677]
18+
* Log monitor health changes as events. [#703]
19+
20+
#### Changed
21+
* Use PGDATA owner for the systemd service file. [#666]
22+
* Remove logging of connection password in monitor string [#512]
23+
* Improve docs color contrast for accessibility [#674]
24+
* Fix pg_autoctl show settings --json output. [#697]
25+
26+
#### Fixed
27+
* Docs: typo fix for Postgres client certificate file (postgresql.crt). [#652]
28+
* Plug connection leaks found during profiling [#582]
29+
* Review find_extension_control_file[) error handling. (#659]
30+
* Fix/identify system before pg basebackup [#658]
31+
* Fix a pipe issue and return code [#619]
32+
* Fix memory leak allocated by createPQExpBuffer() (#671]
33+
* Fix parsing pg version string for replication slots support on standby. [#676]
34+
* Fix/debian cluster for the monitor [#681]
35+
* Fix a memory leak in uri_contains_password. [#687]
36+
* Fix a memory leak in BuildNodesArrayValues. [#693]
37+
* Complete transition of a second [or greater) failed primary (#706]
38+
39+
140
### pg_auto_failover v1.5.1 (March 24, 2021) ###
241

342
This release contains monitor schema changes, so the monitor extension gets

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ AZURE_LOCATION ?= francecentral
8888
# Pick a version of Postgres and pg_auto_failover packages to install
8989
# in our target Azure VMs when provisionning
9090
#
91-
# sudo apt-get install -q -y postgresql-13-auto-failover-1.5=1.5.1
91+
# sudo apt-get install -q -y postgresql-13-auto-failover-1.5=1.5.2
9292
# postgresql-${AZ_PG_VERSION}-auto-failover-${AZ_PGAF_DEB_VERSION}=${AZ_PGAF_VERSION}
9393
AZ_PG_VERSION ?= 13
9494
AZ_PGAF_DEB_VERSION ?= 1.5
95-
AZ_PGAF_DEB_REVISION ?= 1.5.1-1
95+
AZ_PGAF_DEB_REVISION ?= 1.5.2-1
9696

9797
export AZ_PG_VERSION
9898
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.1"
76+
release = "1.5.2"
7777

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

src/bin/lib/parson/parson.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson 1.1.0 ( http://kgabis.github.com/parson/ )
5-
Copyright (c) 2012 - 2020 Krzysztof Gabis
4+
Parson 1.1.2 ( http://kgabis.github.com/parson/ )
5+
Copyright (c) 2012 - 2021 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal
@@ -742,6 +742,9 @@ static JSON_Value * parse_object_value(const char **string, size_t nesting) {
742742
new_key = get_quoted_string(string, &key_len);
743743
/* We do not support key names with embedded \0 chars */
744744
if (new_key == NULL || key_len != strlen(new_key)) {
745+
if (new_key) {
746+
parson_free(new_key);
747+
}
745748
json_value_free(output_value);
746749
return NULL;
747750
}
@@ -960,7 +963,7 @@ static int json_serialize_to_buffer_r(const JSON_Value *value, char *buf, int le
960963
if (is_pretty) {
961964
APPEND_STRING(" ");
962965
}
963-
temp_value = json_object_get_value(object, key);
966+
temp_value = json_object_get_value_at(object, i);
964967
written = json_serialize_to_buffer_r(temp_value, buf, level+1, is_pretty, num_buf);
965968
if (written < 0) {
966969
return -1;

src/bin/lib/parson/parson.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
SPDX-License-Identifier: MIT
33
4-
Parson 1.1.0 ( http://kgabis.github.com/parson/ )
5-
Copyright (c) 2012 - 2020 Krzysztof Gabis
4+
Parson 1.1.2 ( http://kgabis.github.com/parson/ )
5+
Copyright (c) 2012 - 2021 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal

src/bin/lib/parson/tests.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SPDX-License-Identifier: MIT
33
44
Parson ( http://kgabis.github.com/parson/ )
5-
Copyright (c) 2012 - 2020 Krzysztof Gabis
5+
Copyright (c) 2012 - 2021 Krzysztof Gabis
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal
@@ -588,6 +588,8 @@ void test_memory_leaks() {
588588
TEST(json_object_set_boolean(NULL, "lorem", 0) == JSONFailure);
589589
TEST(json_object_set_null(NULL, "lorem") == JSONFailure);
590590

591+
TEST(json_parse_string("{\"\\u0000\"") == NULL);
592+
591593
TEST(malloc_count == 0);
592594
}
593595

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"digit": "0123456789",
2727
"0123456789": "digit",
2828
"special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?",
29+
"nullchar": "abc\u0000def",
2930
"hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A",
3031
"true": true,
3132
"false": false,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"utf string" : "\u006corem\u0020ipsum",
44
"utf-8 string": "あいうえお",
55
"surrogate string": "lorem\uD834\uDD1Eipsum\uD834\uDF67lorem",
6+
"string with null": "abc\u0000def",
67
"positive one" : 1,
78
"negative one" : -1,
89
"pi" : 3.14,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"utf string" : "\u006corem\u0020ipsum", // lorem ipsum //
1010
"utf-8 string": "あいうえお", // /* lorem ipsum */
1111
"surrogate string": "lorem\uD834\uDD1Eipsum\uD834\uDF67lorem",
12+
"string with null": "abc\u0000def",
1213
"positive one" : 1,
1314
"negative one" : -1,
1415
"pi" : 3.14,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"utf string": "lorem ipsum",
44
"utf-8 string": "あいうえお",
55
"surrogate string": "lorem𝄞ipsum𝍧lorem",
6+
"string with null": "abc\u0000def",
67
"positive one": 1,
78
"negative one": -1,
89
"pi": 3.1400000000000001,

0 commit comments

Comments
 (0)