forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdb31add
committed
Force a checkpoint in CREATE DATABASE before starting to copy the files,
to process any pending unlinks for the source database.Before, if you dropped a relation in the template database just beforeCREATE DATABASE, and a checkpoint happened during copydir(), the checkpointmight delete a file that we're just about to copy, causing lstat() incopydir() to fail with ENOENT.Backpatch to 8.3, where the pending unlinks were introduced.Per report by Matthew Wakeling and analysis by Tom Lane.1 parent3437286 commitdb31add
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
539 | 539 |
| |
540 | 540 |
| |
541 | 541 |
| |
542 |
| - | |
543 |
| - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
544 | 549 |
| |
545 |
| - | |
| 550 | + | |
546 | 551 |
| |
547 | 552 |
| |
548 | 553 |
| |
|
0 commit comments
Comments
(0)