]> granicus.if.org Git - postgresql/commit
Repair possible failure to update hint bits back to disk, per
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Oct 2004 22:40:29 +0000 (22:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Oct 2004 22:40:29 +0000 (22:40 +0000)
commit9ffc8ed58b55cb3925bb95cc184583fcb9772013
tree9039f51525070c611a86f03a2e85a13b24005ac3
parentdb9e2fd0a9144707055ed382f184f5a9c11aafff
Repair possible failure to update hint bits back to disk, per
http://archives.postgresql.org/pgsql-hackers/2004-10/msg00464.php.
This fix is intended to be permanent: it moves the responsibility for
calling SetBufferCommitInfoNeedsSave() into the tqual.c routines,
eliminating the requirement for callers to test whether t_infomask changed.
Also, tighten validity checking on buffer IDs in bufmgr.c --- several
routines were paranoid about out-of-range shared buffer numbers but not
about out-of-range local ones, which seems a tad pointless.
13 files changed:
contrib/pgstattuple/pgstattuple.c
src/backend/access/heap/heapam.c
src/backend/access/index/indexam.c
src/backend/access/nbtree/nbtinsert.c
src/backend/catalog/index.c
src/backend/commands/vacuum.c
src/backend/commands/vacuumlazy.c
src/backend/storage/buffer/bufmgr.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/time/tqual.c
src/include/access/valid.h
src/include/storage/bufmgr.h
src/include/utils/tqual.h