]> granicus.if.org Git - postgresql/commit
Catcaches can now store negative entries as well as positive ones, to
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Mar 2002 17:47:56 +0000 (17:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Mar 2002 17:47:56 +0000 (17:47 +0000)
commit26ac2171735f288a1380e173ffbb6af1a50183d8
treee2604a289c8065884497475e46b1b2731b867267
parent592caa089756d1b9ddf2675e9027d0c8635a6918
Catcaches can now store negative entries as well as positive ones, to
speed up repetitive failed searches; per pghackers discussion in late
January.  inval.c logic substantially simplified, since we can now treat
inserts and deletes alike as far as inval events are concerned.  Some
repair work needed in heap_create_with_catalog, which turns out to have
been doing CommandCounterIncrement at a point where the new relation has
non-self-consistent catalog entries.  With the new inval code, that
resulted in assert failures during a relcache entry rebuild.
src/backend/access/heap/heapam.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/commands/vacuum.c
src/backend/utils/cache/catcache.c
src/backend/utils/cache/inval.c
src/backend/utils/cache/relcache.c
src/include/storage/sinval.h
src/include/utils/catcache.h
src/include/utils/inval.h