- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit64e7fa4
committed
Fix autoprewarm neglect of tablespaces
While prewarming blocks from a dump file, autoprewarm_database_main()mistakenly ignored tablespace when detecting the beginning of the nextrelation to prewarm. Because RelFileNumbers are only unique within atablespace, autoprewarm could miss prewarming blocks from arelation with the same RelFileNumber in a different tablespace.Though this situation is likely rare in practice, it's best to make thecode correct. Do so by explicitly checking for the RelFileNumber whendetecting a new relation.Reported-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://postgr.es/m/97c36982-603b-494a-95f4-aaf2a12ac27e%40iki.fi1 parent742317a commit64e7fa4
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
477 | 480 | | |
478 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
479 | 484 | | |
480 | 485 | | |
481 | 486 | | |
| |||
487 | 492 | | |
488 | 493 | | |
489 | 494 | | |
490 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
491 | 498 | | |
492 | 499 | | |
493 | 500 | | |
| |||
508 | 515 | | |
509 | 516 | | |
510 | 517 | | |
| 518 | + | |
511 | 519 | | |
512 | 520 | | |
513 | 521 | | |
| |||
0 commit comments
Comments
(0)