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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: b154d8a) | patch
Generalize relation analyze in table AM interface
2024年3月30日 20:34:04 +0000 (22:34 +0200)
2024年3月30日 20:34:04 +0000 (22:34 +0200)
commit 27bc1772fc814946918a5ac8ccb9b5c5ad0380aa
Generalize relation analyze in table AM interface

Currently, there is just one algorithm for sampling tuples from a table written
in acquire_sample_rows(). Custom table AM can just redefine the way to get the
next block/tuple by implementing scan_analyze_next_block() and
scan_analyze_next_tuple() API functions.

This approach doesn't seem general enough. For instance, it's unclear how to
sample this way index-organized tables. This commit allows table AM to
encapsulate the whole sampling algorithm (currently implemented in
acquire_sample_rows()) into the relation_analyze() API function.

Discussion: https://postgr.es/m/CAPpHfdurb9ycV8udYqM%3Do0sPS66PJ4RCBM1g-bBpvzUfogY0EA%40mail.gmail.com
Reviewed-by: Pavel Borisov, Matthias van de Meent
src/backend/access/heap/heapam_handler.c diff | blob | blame | history
src/backend/access/table/tableamapi.c diff | blob | blame | history
src/backend/commands/analyze.c diff | blob | blame | history
src/include/access/heapam.h diff | blob | blame | history
src/include/access/tableam.h diff | blob | blame | history
src/include/commands/vacuum.h diff | blob | blame | history
src/include/foreign/fdwapi.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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