forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6f97ef0

Amit Kapila
Fix an intermetant BF failure in 003_logical_slots.
During upgrade, when pg_restore performs CREATE DATABASE, bgwriter orcheckpointer may flush buffers and hold a file handle for pg_largeobject,so later TRUNCATE pg_largeobject command will fail if OS (such as olderWindows versions) doesn't remove an unlinked file completely till it'sopen. The probability of seeing this behavior is higher in this testbecause we use wal_level as logical via allows_streaming => 'logical'which in turn set shared_buffers as 1MB and make it more probable forbgwriter to hold the file handle.Diagnosed-by: Alexander LakhinAuthor: Hayato Kuroda, Amit KapilaReviewed-by: Alexander LakhinDiscussion:https://postgr.es/m/TYAPR01MB5866AB7FD922CE30A2565B8BF5A8A@TYAPR01MB5866.jpnprd01.prod.outlook.com1 parentf7f694b commit6f97ef0
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
26 | 39 |
| |
27 | 40 |
| |
28 | 41 |
| |
|
0 commit comments
Comments
(0)