postgresql/contrib/tsm_system_time
Andres Freund 73c954d248 tableam: sample scan.
This moves sample scan support to below tableam. It's not optional as
there is, in contrast to e.g. bitmap heap scans, no alternative way to
perform tablesample queries. If an AM can't deal with the block based
API, it will have to throw an ERROR.

The tableam callbacks for this are block based, but given the current
TsmRoutine interface, that seems to be required.

The new interface doesn't require TsmRoutines to perform visibility
checks anymore - that requires the TsmRoutine to know details about
the AM, which we want to avoid.  To continue to allow taking the
returned number of tuples account SampleScanState now has a donetuples
field (which previously e.g. existed in SystemRowsSamplerData), which
is only incremented after the visibility check succeeds.

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
2019-03-31 18:37:57 -07:00
..
expected Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
sql Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
.gitignore contrib/tsm_system_time 2015-05-15 15:31:50 -04:00
Makefile Some platforms now need contrib/tsm_system_time to be linked with libm. 2015-07-25 16:37:12 -04:00
tsm_system_time--1.0.sql Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
tsm_system_time.c tableam: sample scan. 2019-03-31 18:37:57 -07:00
tsm_system_time.control Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00