Skip to content

Commit

Permalink
fix: add missing objects for 5.2 update (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
keithf4 authored Dec 10, 2024
1 parent 1a568e5 commit ec78f2e
Show file tree
Hide file tree
Showing 5 changed files with 1,406 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
5.2.2
=====
BUG FIXES
---------
- 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!


5.2.1
=====
BUG FIXES
Expand Down
6 changes: 3 additions & 3 deletions META.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pg_partman",
"abstract": "Extension to manage partitioned tables by time or ID",
"version": "5.2.1",
"version": "5.2.2",
"maintainer": [
"Keith Fiske <[email protected]>"
],
Expand All @@ -20,9 +20,9 @@
},
"provides": {
"pg_partman": {
"file": "sql/pg_partman--5.2.1.sql",
"file": "sql/pg_partman--5.2.2.sql",
"docfile": "doc/pg_partman.md",
"version": "5.2.1",
"version": "5.2.2",
"abstract": "Extension to manage partitioned tables by time or ID"
}
},
Expand Down
2 changes: 1 addition & 1 deletion pg_partman.control
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_version = '5.2.1'
default_version = '5.2.2'
comment = 'Extension to manage partitioned tables by time or ID'
relocatable = false
superuser = false
2 changes: 1 addition & 1 deletion sql/functions/create_parent.sql
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ SELECT general_type, exact_type INTO v_control_type, v_control_exact_type
FROM @[email protected]_control_type(v_parent_schema, v_parent_tablename, p_control);

IF v_control_type IS NULL THEN
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;
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;
END IF;

IF (p_epoch <> 'none' AND v_control_type <> 'id') THEN
Expand Down
Loading

0 comments on commit ec78f2e

Please sign in to comment.