summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-11-06 19:29:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-11-06 19:29:01 +0000
commit766dc45d9f133aaa12d952052e1e512dbf3f5ec0 (patch)
tree9ab560a2274467ac31af307471129d4cdbee272e /src/backend/access/gist/gistget.c
parent18691d8ee3e4729948f6348d25ee1e4bba2379fe (diff)
downloadpostgresql-766dc45d9f133aaa12d952052e1e512dbf3f5ec0.tar.gz
Add defenses to btree and hash index AMs to do simple sanity checks
on every index page they read; in particular to catch the case of an all-zero page, which PageHeaderIsValid allows to pass. It turns out hash already had this idea, but it was just Assert()ing things rather than doing a straight error check, and the Asserts were partially redundant with PageHeaderIsValid anyway. Per recent failure example from Jim Nasby. (gist still needs the same treatment.)
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions