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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c77e122) | patch
tableam: Add and use table_fetch_row_version().
2019年3月25日 07:13:42 +0000 (00:13 -0700)
2019年3月25日 07:17:59 +0000 (00:17 -0700)
commit 9a8ee1dc650be623c32b1df103254847be974d01
tableam: Add and use table_fetch_row_version().

This is essentially the tableam version of heapam_fetch(),
i.e. fetching a tuple identified by a tid, performing visibility
checks.

Note that this different from table_index_fetch_tuple(), which is for
index lookups. It therefore has to handle a tid pointing to an earlier
version of a tuple if the AM uses an optimization like heap's HOT. Add
comments to that end.

This commit removes the stats_relation argument from heap_fetch, as
it's been unused for a long time.

Author: Andres Freund
Reviewed-By: Haribabu Kommi
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@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/tableamapi.c diff | blob | blame | history
src/backend/commands/trigger.c diff | blob | blame | history
src/backend/executor/execMain.c diff | blob | blame | history
src/backend/executor/nodeModifyTable.c diff | blob | blame | history
src/backend/executor/nodeTidscan.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 によって変換されたページ (->オリジナル) /