forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb899cde
committed
AccessExclusiveLock new relations just after assigning the OID.
This has no user-visible, important consequences, since other sessions'catalog scans can't find the relation until we commit. However, thisunblocks introducing a rule about locks required to heap_update() apg_class row. CREATE TABLE has been acquiring this lock eventually, butit can heap_update() pg_class.relchecks earlier. create_toast_table()has been acquiring only ShareLock. Back-patch to v12 (all supportedversions), the plan for the commit relying on the new rule.Reviewed (in an earlier version) by Robert Haas.Discussion:https://postgr.es/m/20240611024525.9f.nmisch@google.com1 parent1a6d65b commitb899cde
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1226 | 1226 |
| |
1227 | 1227 |
| |
1228 | 1228 |
| |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1229 | 1236 |
| |
1230 | 1237 |
| |
1231 | 1238 |
| |
|
0 commit comments
Comments
(0)