aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/checkpointer.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-12-22 13:54:40 -0500
committerRobert Haas <rhaas@postgresql.org>2016-12-22 13:59:01 -0500
commit097e41439d69e11fb870e009b1ac64dda4f01c3d (patch)
treedbad47478d2aaae82d98b9c9275048a20efd90d9 /src/backend/postmaster/checkpointer.c
parent2f802d95b4904dbed3dfdca1b3a607cd085d2e20 (diff)
downloadpostgresql-097e41439d69e11fb870e009b1ac64dda4f01c3d.tar.gz
postgresql-097e41439d69e11fb870e009b1ac64dda4f01c3d.zip
Fix broken error check in _hash_doinsert.
You can't just cast a HashMetaPage to a Page, because the meta page data is stored after the page header, not at offset 0. Fortunately, this didn't break anything because it happens to find hashm_bsize at the offset at which it expects to find pd_pagesize_version, and the values are close enough to the same that this works out. Still, it's a bug, so back-patch to all supported versions. Mithun Cy, revised a bit by me.
Diffstat (limited to 'src/backend/postmaster/checkpointer.c')
0 files changed, 0 insertions, 0 deletions