mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
TABLESAMPLE, SQL Standard and extensible
Add a TABLESAMPLE clause to SELECT statements that allows user to specify random BERNOULLI sampling or block level SYSTEM sampling. Implementation allows for extensible sampling functions to be written, using a standard API. Basic version follows SQLStandard exactly. Usable concrete use cases for the sampling API follow in later commits. Petr Jelinek Reviewed by Michael Paquier and Simon Riggs
This commit is contained in:
@ -261,6 +261,7 @@ search_plan_tree(PlanState *node, Oid table_oid)
|
||||
* Relation scan nodes can all be treated alike
|
||||
*/
|
||||
case T_SeqScanState:
|
||||
case T_SampleScanState:
|
||||
case T_IndexScanState:
|
||||
case T_IndexOnlyScanState:
|
||||
case T_BitmapHeapScanState:
|
||||
|
Reference in New Issue
Block a user