aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2018-09-04 08:33:33 +0530
committerAmit Kapila <akapila@postgresql.org>2018-09-04 08:33:33 +0530
commit16e7bcfac57fc21dd2124b39132c58971e41448a (patch)
treedb477354cd39f4c1b9bc28248c9264e00319a970 /src/backend/commands/tablecmds.c
parentbd47c4a9d4ec55e26e841754ce62c23ca9008e87 (diff)
downloadpostgresql-16e7bcfac57fc21dd2124b39132c58971e41448a.tar.gz
postgresql-16e7bcfac57fc21dd2124b39132c58971e41448a.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/tablecmds.c')
0 files changed, 0 insertions, 0 deletions