forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit112d055
committed
Lock owned sequences during ALTER TABLE SET { LOGGED | UNLOGGED }.
These commands already make the persistence of owned sequences followowned table persistence changes. They didn't lock those sequences.They lost the effect of nextval() calls that other sessions make afterthe ALTER TABLE command, before the ALTER TABLE transaction commits.Fix by acquiring the same lock that ALTER SEQUENCE SET { LOGGED |UNLOGGED } acquires. This might cause more deadlocks. Back-patch tov15, where commit344d62f introducedunlogged sequences.Reviewed (in an earlier version) by Robert Haas.Discussion:https://postgr.es/m/20240611024525.9f.nmisch@google.com1 parentf8135d8 commit112d055
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
557 | 557 |
| |
558 | 558 |
| |
559 | 559 |
| |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
560 | 567 |
| |
561 | 568 |
| |
562 | 569 |
| |
|
0 commit comments
Comments
(0)