Skip to content

Commit 2ddf06d

Browse files
committed
fix: correct error in 5.2.0 update file
1 parent 6965956 commit 2ddf06d

5 files changed

+15
-7
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
5.2.1
2+
=====
3+
BUG FIXES
4+
---------
5+
- 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.
6+
17

28
5.2.0
39
=====

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.0",
4+
"version": "5.2.1",
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.0.sql",
23+
"file": "sql/pg_partman--5.2.1.sql",
2424
"docfile": "doc/pg_partman.md",
25-
"version": "5.2.0",
25+
"version": "5.2.1",
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.0'
1+
default_version = '5.2.1'
22
comment = 'Extension to manage partitioned tables by time or ID'
33
relocatable = false
44
superuser = false

updates/pg_partman--5.1.0--5.2.0.sql

+4-3
Original file line numberDiff line numberDiff line change
@@ -4250,6 +4250,10 @@ END LOOP;
42504250

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

4253+
PERFORM pg_advisory_unlock(hashtext('pg_partman reapply_constraints'));
4254+
END
4255+
$$;
4256+
42534257

42544258
CREATE FUNCTION @[email protected]_time_encoder(ts TIMESTAMPTZ)
42554259
RETURNS UUID
@@ -4287,9 +4291,6 @@ BEGIN
42874291
RETURN to_timestamp(ts_millis / 1000.0);
42884292
END;
42894293
$$;
4290-
PERFORM pg_advisory_unlock(hashtext('pg_partman reapply_constraints'));
4291-
END
4292-
$$;
42934294

42944295

42954296
-- Restore dropped object privileges

updates/pg_partman--5.2.0--5.2.1.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-- NOTE: No changes to the sql extension code contained in this update. This file is only here for version upgrade continuity.

0 commit comments

Comments
 (0)