Skip to content

Commit

Permalink
fix: correct error in 5.2.0 update file
Browse files Browse the repository at this point in the history
  • Loading branch information
keithf4 committed Nov 29, 2024
1 parent 6965956 commit 2ddf06d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
5.2.1
=====
BUG FIXES
---------
- Corrected a syntax error in the 5.1.0 to 5.2.0 update file. There are no problems with a direct install of 5.2.0 and there is no technical need to update to 5.2.1. The issue was encountered only when updating from any prior version to 5.2.0. New release was tagged to ease rolling out the fix for package managers.


5.2.0
=====
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.0",
"version": "5.2.1",
"maintainer": [
"Keith Fiske <keith@keithf4.com>"
],
Expand All @@ -20,9 +20,9 @@
},
"provides": {
"pg_partman": {
"file": "sql/pg_partman--5.2.0.sql",
"file": "sql/pg_partman--5.2.1.sql",
"docfile": "doc/pg_partman.md",
"version": "5.2.0",
"version": "5.2.1",
"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.0'
default_version = '5.2.1'
comment = 'Extension to manage partitioned tables by time or ID'
relocatable = false
superuser = false
7 changes: 4 additions & 3 deletions updates/pg_partman--5.1.0--5.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4250,6 +4250,10 @@ END LOOP;

EXECUTE format('ANALYZE %I.%I', v_parent_schema, v_parent_tablename);

PERFORM pg_advisory_unlock(hashtext('pg_partman reapply_constraints'));
END
$$;


CREATE FUNCTION @extschema@.uuid7_time_encoder(ts TIMESTAMPTZ)
RETURNS UUID
Expand Down Expand Up @@ -4287,9 +4291,6 @@ BEGIN
RETURN to_timestamp(ts_millis / 1000.0);
END;
$$;
PERFORM pg_advisory_unlock(hashtext('pg_partman reapply_constraints'));
END
$$;


-- Restore dropped object privileges
Expand Down
1 change: 1 addition & 0 deletions updates/pg_partman--5.2.0--5.2.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- NOTE: No changes to the sql extension code contained in this update. This file is only here for version upgrade continuity.

0 comments on commit 2ddf06d

Please sign in to comment.