-
- Downloads
Fix hash index vs "snapshot too old" problemms
Hash indexes are not WAL-logged, and so do not maintain the LSN of index pages. Since the "snapshot too old" feature counts on detecting error conditions using the LSN of a table and all indexes on it, this makes it impossible to safely do early vacuuming on any table with a hash index, so add this to the tests for whether the xid used to vacuum a table can be adjusted based on old_snapshot_threshold. While at it, add a paragraph to the docs for old_snapshot_threshold which specifically mentions this and other aspects of the feature which may otherwise surprise users. Problem reported and patch reviewed by Amit Kapila
Showing
- doc/src/sgml/config.sgml 13 additions, 0 deletionsdoc/src/sgml/config.sgml
- src/backend/access/hash/hash.c 0 additions, 1 deletionsrc/backend/access/hash/hash.c
- src/backend/access/hash/hashsearch.c 0 additions, 4 deletionssrc/backend/access/hash/hashsearch.c
- src/backend/utils/cache/relcache.c 46 additions, 0 deletionssrc/backend/utils/cache/relcache.c
- src/backend/utils/time/snapmgr.c 2 additions, 1 deletionsrc/backend/utils/time/snapmgr.c
- src/include/utils/rel.h 1 addition, 0 deletionssrc/include/utils/rel.h
Loading
Please register or sign in to comment