Machine Code Caching in PostgreSQL Query JIT-compiler
Machine Code Caching in PostgreSQL Query JIT-compiler
Ruben Buchatskiy, Mikhail Pantilimonov, Roman Zhuykov, Eugene Sharygin, Dmitry Melnik
Ivannikov Institute for System Programming of the RAS
Questions: ruben@ispras.ru
Ivannikov Memorial Workshop, Veliky Novgorod, 2019
SQL Query Processing Pipeline
Parser(Query_string) Parse_tree; Analyzer(Parse_tree) Query_tree; Rewriter(Query_tree, Rules) Query_tree; Planner(Query_tree, Costs) Plan_tree; Executor(Plan_tree) Query_results.
Ivannikov Memorial Workshop
Veliky Novgorod
13/09/2019
2
SQL Query Processing Pipeline: Execution
Execution models: Iterator Materialization Vectorized
Execution direction: Top-Down Bottom-Up
Different approaches with pros and cons...
But there is interpretation overhead for all of them (especially in PostgreSQL combination): indirect function calls branch mispredictions bad code locality excessive run-time checks etc.
Ivannikov Memorial Workshop
Veliky Novgorod
13/09/2019
3
Our previous work on Dynamic Query Compilation in PostgreSQL
One approach to resolve high interpretation overhead is dynamic query plan compilation.
Ivannikov Memorial Workshop
Veliky Novgorod
13/09/2019
4
Query Compilation Cost
Q1 from TPC-H benchmark
explain(timing off, analyze) select l_returnflag, l_linestatus, sum(l_quantity) as sum_qty, +7 more aggregate functions
from lineitem
where l_shipdate ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- how to reset a postgresql password
- psql quick reference pivotal
- python postgresql tutorial
- jit compiling sql queries in postgresql using llvm
- psql 8 3 cheatsheet postgres online
- postgresql tutorialspoint
- machine code caching in postgresql query jit compiler
- postgresql functions by example
- introduction to hacking postgresql
Related searches
- code values in excel
- code formula in excel
- how to color code values in excel
- how to color code cells in excel
- code function in excel
- how to hard code cells in excel
- icd 10 code lump in throat
- machine guns used in ww2
- machine guns used in ww1
- machine gun effects in ww1
- how to code nstemi in icd 10
- icd 10 code pain in right groin