postgresql/src/backend/utils
Andres Freund cc415a56d0 Basic planner and executor integration for JIT.
This adds simple cost based plan time decision about whether JIT
should be performed. jit_above_cost, jit_optimize_above_cost are
compared with the total cost of a plan, and if the cost is above them
JIT is performed / optimization is performed respectively.

For that PlannedStmt and EState have a jitFlags (es_jit_flags) field
that stores information about what JIT operations should be performed.

EState now also has a new es_jit field, which can store a
JitContext. When there are no errors the context is released in
standard_ExecutorEnd().

It is likely that the default values for jit_[optimize_]above_cost
will need to be adapted further, but in my test these values seem to
work reasonably.

Author: Andres Freund, with feedback by Peter Eisentraut
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de
2018-03-22 11:51:58 -07:00
..
adt Fix mishandling of quoted-list GUC values in pg_dump and ruleutils.c. 2018-03-21 20:03:28 -04:00
cache Fix improper uses of canonicalize_qual(). 2018-03-11 18:10:42 -04:00
error Update copyright for 2018 2018-01-02 23:30:12 -05:00
fmgr Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
hash Update copyright for 2018 2018-01-02 23:30:12 -05:00
init Fix cross-checking of ReservedBackends/max_wal_senders/MaxConnections. 2018-03-08 11:25:26 -05:00
mb Update headers of generated files 2018-02-24 14:54:17 -05:00
misc Basic planner and executor integration for JIT. 2018-03-22 11:51:58 -07:00
mmgr Fix crash when canceling parallel query 2018-02-16 16:21:24 -05:00
resowner Basic JIT provider and error handling infrastructure. 2018-03-21 19:28:28 -07:00
sort Avoid another valgrind complaint about write() of uninitalized bytes. 2018-02-22 09:28:12 -05:00
time Rename TransactionChain functions 2018-03-16 13:18:06 -04:00
.gitignore Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
errcodes.txt Support all SQL:2011 options for window frame clauses. 2018-02-07 00:06:56 -05:00
Gen_dummy_probes.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
Gen_dummy_probes.sed Update copyright for 2018 2018-01-02 23:30:12 -05:00
Gen_fmgrtab.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
generate-errcodes.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Replace binary search in fmgr_isbuiltin with a lookup array. 2017-10-04 00:22:38 -07:00
probes.d Support parallel btree index builds. 2018-02-02 13:32:44 -05:00