forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc47a240
committed
Fix checksum calculation in the new sorting GiST build.
Since we're bypassing the buffer manager, we need to callPageSetChecksumInplace() directly. As reported by Justin Pryzby.In the passing, add RelationOpenSmgr() calls before all smgrwrite() andsmgrextend() calls. Tom added one before the first smgrextend() call incommitc2bb287, which seems to be enough, but let's play it safe anddo it before each one. That's how it's done in the similar code innbtsort.c, too.Discussion:https://www.postgresql.org/message-id/20200920224446.GF30557@telsasoft.com1 parentc2bb287 commitc47a240
1 file changed
+9
-6
lines changedLines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
| 452 | + | |
452 | 453 |
| |
| 454 | + | |
453 | 455 |
| |
454 | 456 |
| |
455 | 457 |
| |
| |||
546 | 548 |
| |
547 | 549 |
| |
548 | 550 |
| |
| 551 | + | |
| 552 | + | |
549 | 553 |
| |
550 | 554 |
| |
551 | 555 |
| |
| 556 | + | |
552 | 557 |
| |
553 | 558 |
| |
554 |
| - | |
| 559 | + | |
555 | 560 |
| |
556 | 561 |
| |
557 | 562 |
| |
| 563 | + | |
| 564 | + | |
558 | 565 |
| |
559 |
| - | |
560 |
| - | |
561 |
| - | |
562 |
| - | |
563 |
| - | |
| 566 | + | |
564 | 567 |
| |
565 | 568 |
| |
566 | 569 |
| |
|
0 commit comments
Comments
(0)