git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7f44ede) | patch
tableam: Avoid relying on relation size to determine validity of tids.
2019年5月18日 01:52:01 +0000 (18:52 -0700)
2019年5月18日 01:56:55 +0000 (18:56 -0700)
commit 147e3722f7e531f15ba389a4d518efe8cd0bd736
tableam: Avoid relying on relation size to determine validity of tids.

Instead add a tableam callback to do so. To avoid adding per
validation overhead, pass a scan to tuple_tid_valid. In heap's case
we'd otherwise incurred a RelationGetNumberOfBlocks() call for each
tid - which'd have added noticable overhead to nodeTidscan.c.

Author: Andres Freund
Reviewed-By: Ashwin Agrawal
Discussion: https://postgr.es/m/20190515185447.gno2jtqxyktylyvs@alap3.anarazel.de
src/backend/access/heap/heapam.c diff | blob | blame | history
src/backend/access/heap/heapam_handler.c diff | blob | blame | history
src/backend/access/table/tableam.c diff | blob | blame | history
src/backend/executor/nodeTidscan.c diff | blob | blame | history
src/backend/utils/adt/tid.c diff | blob | blame | history
src/include/access/heapam.h diff | blob | blame | history
src/include/access/tableam.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /