Skip to content

Commit ec78f2e

Browse files
authored
fix: add missing objects for 5.2 update (#719)
1 parent 1a568e5 commit ec78f2e

File tree

5 files changed

+1406
-5
lines changed

5 files changed

+1406
-5
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
5.2.2
2+
=====
3+
BUG FIXES
4+
---------
5+
- Corrected SQL statements and updated functions missing from the 5.1.0 to 5.2.0 update files. If pg_partman was installed initially with 5.2.0, there are no known issues. If errors about missing functions or columns are encountered during maintenance after updating to 5.2.x, please make sure you are on this latest release. Thank you to all the users helping to test this issues!
6+
7+
18
5.2.1
29
=====
310
BUG FIXES

META.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pg_partman",
33
"abstract": "Extension to manage partitioned tables by time or ID",
4-
"version": "5.2.1",
4+
"version": "5.2.2",
55
"maintainer": [
66
"Keith Fiske <[email protected]>"
77
],
@@ -20,9 +20,9 @@
2020
},
2121
"provides": {
2222
"pg_partman": {
23-
"file": "sql/pg_partman--5.2.1.sql",
23+
"file": "sql/pg_partman--5.2.2.sql",
2424
"docfile": "doc/pg_partman.md",
25-
"version": "5.2.1",
25+
"version": "5.2.2",
2626
"abstract": "Extension to manage partitioned tables by time or ID"
2727
}
2828
},

pg_partman.control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default_version = '5.2.1'
1+
default_version = '5.2.2'
22
comment = 'Extension to manage partitioned tables by time or ID'
33
relocatable = false
44
superuser = false

sql/functions/create_parent.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ SELECT general_type, exact_type INTO v_control_type, v_control_exact_type
129129
FROM @[email protected]_control_type(v_parent_schema, v_parent_tablename, p_control);
130130

131131
IF v_control_type IS NULL THEN
132-
RAISE EXCEPTION 'pg_partman only supports partitioning of data types that are integer, numeric or date/timestamp. Supplied column is of type %', v_control_exact_type;
132+
RAISE EXCEPTION 'pg_partman only supports partitioning of data types that are integer, numeric, date/timestamp or specially encoded text. Supplied column is of type %', v_control_exact_type;
133133
END IF;
134134

135135
IF (p_epoch <> 'none' AND v_control_type <> 'id') THEN

0 commit comments

Comments
 (0)