forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit04fbe29
committed
Fix WAL replay of truncate operations to cope with the possibility that the
truncated relation was deleted later in the WAL sequence. Since replaynormally auto-creates a relation upon its first reference by a WAL log entry,failure is seen only if the truncate entry happens to be the first referenceafter the checkpoint we're restarting from; which is a pretty unusual case butof course not impossible. Fix by making truncate entries auto-create likethe other ones do. Per report and test case from Dharmendra Goyal.1 parentebb5436 commit04fbe29
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
811 | 811 |
| |
812 | 812 |
| |
813 | 813 |
| |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
814 | 822 |
| |
815 | 823 |
| |
816 | 824 |
| |
|
0 commit comments
Comments
(0)