- Notifications
You must be signed in to change notification settings - Fork28
Commitad337c7
committed
Update relation's stats in pg_class during vacuum full.
Hash index depends on estimation of numbers of tuples and pages of relations,incorrect value could be a reason of significantly growing of index. Vacuumfull recreates heap and reindex all indexes before renewal stats. The patchfixes that, so indexes will see correct values.Backpatch to v10 only because earlier versions haven't usable hash index andgrowing of hash index is a single user-visible symptom.Author: Amit KapilaReviewed-by: Ashutosh Sharma, meDiscussion:https://www.postgresql.org/message-id/flat/20171115232922.5tomkxnw3iq6jsg7@inml.weebeastie.net1 parenta2c8e5c commitad337c7
1 file changed
+30
-0
lines changedLines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
738 | 738 |
| |
739 | 739 |
| |
740 | 740 |
| |
| 741 | + | |
| 742 | + | |
| 743 | + | |
741 | 744 |
| |
742 | 745 |
| |
743 | 746 |
| |
| |||
756 | 759 |
| |
757 | 760 |
| |
758 | 761 |
| |
| 762 | + | |
759 | 763 |
| |
760 | 764 |
| |
761 | 765 |
| |
| |||
1079 | 1083 |
| |
1080 | 1084 |
| |
1081 | 1085 |
| |
| 1086 | + | |
| 1087 | + | |
1082 | 1088 |
| |
1083 | 1089 |
| |
1084 | 1090 |
| |
| |||
1098 | 1104 |
| |
1099 | 1105 |
| |
1100 | 1106 |
| |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1101 | 1131 |
| |
1102 | 1132 |
| |
1103 | 1133 |
| |
|
0 commit comments
Comments
(0)