forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3f695b3
committed
sequences: Lock buffer before initializing page
fill_seq_fork_with_data(), used to initialize a new sequence relation, onlylocked the buffer after calling PageInit(), even though PageInit() modifiespage contents.This is unlikely to cause real-world issues, as the relation is exclusivelylocked at that point, and the buffer not yet marked dirty, so other processesshould not access the buffer.This issue looks to have been present since the introduction of sequences ine8647c4.Given the low risk, it does not seem worth backpatching the fix.Discussion:https://postgr.es/m/20230404185501.wdkmo3k7bedlx6qk@awork3.anarazel.de1 parente126d81 commit3f695b3
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
380 |
| - | |
| 380 | + | |
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
| |||
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
391 |
| - | |
392 |
| - | |
393 | 391 |
| |
394 | 392 |
| |
395 | 393 |
| |
|
0 commit comments
Comments
(0)