Skip to content

Commit a8f5201

Browse files
chore(master): release pg-partsmith 0.2.0 (#10)
* chore(master): release pg-partsmith 0.2.0 * chore(release): curate 0.2.0 changelog, bump __version__, annotate for release-please --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: AlexeyShalaev <75322386+AlexeyShalaev@users.noreply.github.com>
1 parent 810f8a0 commit a8f5201

4 files changed

Lines changed: 35 additions & 31 deletions

File tree

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0"
2+
".": "0.2.0"
33
}

‎CHANGELOG.md‎

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,41 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [0.2.0](https://github.com/bedrock-python/pg-partsmith/compare/pg-partsmith-v0.1.0...pg-partsmith-v0.2.0) (2026-08-26)
9+
10+
### Added
11+
12+
- `pg_partsmith.sync` — synchronous mirror of `pg_partsmith.aio` with the same class
13+
names and API, built on the sync SQLAlchemy `Engine`: `PartitionLifecycleService`,
14+
`PartitionMaintainer`, `maintain_partitions`, `PostgresPartitionRepository`,
15+
`PostgresMetadataProvider`, `PostgresAdvisoryLockManager`, `RedisDistributedLockManager`,
16+
sync `PartitionLifecycleHooks` / `BasePartitionLifecycleHooks`, and sync protocols.
17+
Differences from the async package: `ddl_timeout_seconds` is enforced server-side via
18+
PostgreSQL `statement_timeout` (per statement), and the Redis lock renews its TTL from a
19+
background thread that logs (but cannot cancel maintenance) on renewal failure.
20+
([#13](https://github.com/bedrock-python/pg-partsmith/pull/13))
21+
- Hour and quarter partition granularities: `PartitionGranularity.HOUR` / `.QUARTER`,
22+
`HourPeriodCalculator` (`table__YYYY_MM_DD_HH`, UTC boundaries with hour precision) and
23+
`QuarterPeriodCalculator` (`table__YYYY_qN`), plus `hour` / `quarter` fields on `Period`
24+
with validation, arithmetic, and ordering.
25+
([#15](https://github.com/bedrock-python/pg-partsmith/pull/15))
26+
- `Period.to_datetime()` — period start as a timezone-aware UTC datetime preserving the
27+
hour component; the pruning fallback sort now uses it, so hourly partitions within one
28+
day order chronologically.
29+
30+
### Changed
31+
32+
- `Period` internals were restructured around a single per-granularity dispatch;
33+
behaviour is unchanged. Built-in calculators now derive names and boundaries
34+
from `Period` itself instead of duplicating the formatting and arithmetic.
35+
([#16](https://github.com/bedrock-python/pg-partsmith/pull/16))
936

1037
### Fixed
1138

39+
Hardening from a full-library audit
40+
([#16](https://github.com/bedrock-python/pg-partsmith/pull/16)) and an external review
41+
([#17](https://github.com/bedrock-python/pg-partsmith/pull/17)):
42+
1243
- Pruning fails closed: `infinity` upper bounds are treated as unbounded (like
1344
`MAXVALUE`), and an attached partition whose catalog boundary cannot be
1445
interpreted is skipped with a warning instead of being pruned by its name.
@@ -28,7 +59,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2859
- A cancellation that lands while awaiting the Redis `SET NX` response performs
2960
a token-checked release, so a server-side-applied SET no longer leaks the
3061
lock until TTL.
31-
3262
- Detach: a partition left in `inhdetachpending` state by a cancelled
3363
`DETACH CONCURRENTLY` (e.g. a DDL timeout) is now completed with
3464
`DETACH PARTITION ... FINALIZE` instead of failing on every subsequent run.
@@ -62,31 +92,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6292
- Maintainer logging: operational `PartitionError`s (e.g. lock contention) are
6393
logged as warnings instead of "unexpected exception" errors with tracebacks.
6494

65-
### Changed
66-
67-
- `Period` internals were restructured around a single per-granularity dispatch;
68-
behaviour is unchanged. Built-in calculators now derive names and boundaries
69-
from `Period` itself instead of duplicating the formatting and arithmetic.
70-
71-
### Added
72-
73-
- Hour and quarter partition granularities: `PartitionGranularity.HOUR` / `.QUARTER`,
74-
`HourPeriodCalculator` (`table__YYYY_MM_DD_HH`, UTC boundaries with hour precision) and
75-
`QuarterPeriodCalculator` (`table__YYYY_qN`), plus `hour` / `quarter` fields on `Period`
76-
with validation, arithmetic, and ordering.
77-
- `Period.to_datetime()` — period start as a timezone-aware UTC datetime preserving the
78-
hour component; the pruning fallback sort now uses it, so hourly partitions within one
79-
day order chronologically.
80-
81-
- `pg_partsmith.sync` — synchronous mirror of `pg_partsmith.aio` with the same class
82-
names and API, built on the sync SQLAlchemy `Engine`: `PartitionLifecycleService`,
83-
`PartitionMaintainer`, `maintain_partitions`, `PostgresPartitionRepository`,
84-
`PostgresMetadataProvider`, `PostgresAdvisoryLockManager`, `RedisDistributedLockManager`,
85-
sync `PartitionLifecycleHooks` / `BasePartitionLifecycleHooks`, and sync protocols.
86-
Differences from the async package: `ddl_timeout_seconds` is enforced server-side via
87-
PostgreSQL `statement_timeout` (per statement), and the Redis lock renews its TTL from a
88-
background thread that logs (but cannot cancel maintenance) on renewal failure.
89-
9095
## [0.1.0] - 2026-05-08
9196

9297
First public release of `pg-partsmith`.

‎pg_partsmith/__version__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.2.0" # x-release-please-version

‎release-please-config.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"extra-files": [
1010
{
1111
"type": "generic",
12-
"path": "pg_partsmith/__version__.py",
13-
"search": "__version__ = \"$1\""
12+
"path": "pg_partsmith/__version__.py"
1413
}
1514
]
1615
}

0 commit comments

Comments
 (0)