You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d505fbb
Browse filesBrowse the repository at this point in the historyBrowse files
Alexey Shalaev
committed
fix: a refused detach no longer starts the drop grace
A refused DETACH ... CONCURRENTLY left its orphan marker, detached-at included, on a partition that stayed attached, and later detaches kept that instant, so DropAfter's grace counted from the first refusal. A refusal (55006, 23503) now takes the marker back off, keeping the table's own comment, and a detach of a still-attached partition always records its own instant.
Closes#105
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
33
34
34
* a backfilled window always attaches with writers held at the parent ([#89](https://github.com/bedrock-python/pg-partsmith/issues/89)) ([b1260c1](https://github.com/bedrock-python/pg-partsmith/commit/b1260c1a8bcdd6388c3836d57eb548f8fe5959bb))
35
35
36
+
## 1.8.3 — a refused detach no longer starts the drop grace
37
+
38
+
A `DETACH … CONCURRENTLY` writes the orphan marker, with its `detached-at` instant, in a
39
+
transaction of its own before the statement runs. When PostgreSQL refused the statement — a
40
+
partition still referenced through a foreign key, say — the marker stayed on a partition that
41
+
was still attached, and every later detach kept its instant. The day the references went, the
42
+
detach succeeded and the next run dropped the table at once, its grace counted from the first
0 commit comments