aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/typecmds.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2018-09-04 08:13:35 +0530
committerAmit Kapila <akapila@postgresql.org>2018-09-04 08:35:42 +0530
commit7c9e19ca9a4de6eb98582548ec6dd0d83fc5ac2d (patch)
tree83b95ec0fcb2885b86a83c2ad84b32b2ee7d99e8 /src/backend/commands/typecmds.c
parentc076f3d74af6e4836206142446bdcc2f93e149d6 (diff)
downloadpostgresql-7c9e19ca9a4de6eb98582548ec6dd0d83fc5ac2d.tar.gz
postgresql-7c9e19ca9a4de6eb98582548ec6dd0d83fc5ac2d.zip
During the split, set checksum on an empty hash index page.
On a split, we allocate a new splitpoint's worth of bucket pages wherein we initialize the last page with zeros which is fine, but we forgot to set the checksum for that last page. We decided to back-patch this fix till 10 because we don't have an easy way to test it in prior versions. Another reason is that the hash-index code is changed heavily in 10, so it is not advisable to push the fix without testing it in prior versions. Author: Amit Kapila Reviewed-by: Yugo Nagata Backpatch-through: 10 Discussion: https://postgr.es/m/5d03686d-727c-dbf8-0064-bf8b97ffe850@2ndquadrant.com
Diffstat (limited to 'src/backend/commands/typecmds.c')
0 files changed, 0 insertions, 0 deletions