- Notifications
You must be signed in to change notification settings - Fork5
Commit9cc2756
committed
Fix pgstattuple's handling of unused hash pages.
Hash indexes can contain both pages which are all-zeroes (i.e.PageIsNew()) and pages which have been initialized but currentlyaren't used. The latter category can happen either when a pagehas been reserved but not yet used or when it is used for a timeand then freed. pgstattuple was only prepared to deal with thepages that are actually-zeroes, which it called zero_pages.Rename the column to unused_pages (extension version 1.5 isas-yet-unreleased) and make it count both kinds of unused pages.Along the way, slightly tidy up the way we test for pages ofvarious types.Robert Haas and Ashutosh Sharma, reviewed by Amit KapilaDiscussion:http://postgr.es/m/CAE9k0PkTtKFB3YndOyQMjwuHx+-FtUP1ynK8E-nHtetoow3NtQ@mail.gmail.com1 parent1d5fede commit9cc2756
File tree
4 files changed
+22
-16
lines changed- contrib/pgstattuple
- expected
- doc/src/sgml
4 files changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
638 | 637 | | |
639 | 638 | | |
640 | 639 | | |
| |||
644 | 643 | | |
645 | 644 | | |
646 | 645 | | |
647 | | - | |
| 646 | + | |
648 | 647 | | |
649 | 648 | | |
650 | 649 | | |
| |||
654 | 653 | | |
655 | 654 | | |
656 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
657 | 659 | | |
658 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
659 | 663 | | |
660 | 664 | | |
661 | 665 | | |
662 | 666 | | |
663 | | - | |
| 667 | + | |
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
667 | 671 | | |
668 | | - | |
| 672 | + | |
669 | 673 | | |
| 674 | + | |
| 675 | + | |
670 | 676 | | |
671 | 677 | | |
672 | 678 | | |
| |||
680 | 686 | | |
681 | 687 | | |
682 | 688 | | |
683 | | - | |
684 | | - | |
| 689 | + | |
| 690 | + | |
685 | 691 | | |
686 | 692 | | |
687 | 693 | | |
| |||
710 | 716 | | |
711 | 717 | | |
712 | 718 | | |
713 | | - | |
| 719 | + | |
714 | 720 | | |
715 | 721 | | |
716 | 722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
0 commit comments
Comments
(0)