forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf88cdb3
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 parentd5f788b commitf88cdb3
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
545 | 545 |
| |
546 | 546 |
| |
547 | 547 |
| |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
548 | 555 |
| |
549 | 556 |
| |
550 | 557 |
| |
|
0 commit comments
Comments
(0)