postgresql/src/test/regress
Tom Lane 34c9e455d0 Improve performance of partition pruning remapping a little.
ExecFindInitialMatchingSubPlans has to update the PartitionPruneState's
subplan mapping data to account for the removal of subplans it prunes.
However, that's only necessary if run-time pruning will also occur,
so we can skip it when that won't happen, which should result in not
needing to do the remapping in many cases.  (We now need it only when
some partitions are potentially startup-time prunable and others are
potentially run-time prunable, which seems like an unusual case.)

Also make some marginal performance improvements in the remapping
itself.  These will mainly win if most partitions got pruned by
the startup-time pruning, which is perhaps a debatable assumption
in this context.

Also fix some bogus comments, and rearrange code to marginally
reduce space consumption in the executor's query-lifespan context.

David Rowley, reviewed by Yoshikazu Imai

Discussion: https://postgr.es/m/CAKJS1f9+m6-di-zyy4B4AGn0y1B9F8UKDRigtBbNviXOkuyOpw@mail.gmail.com
2018-11-15 13:34:16 -05:00
..
data
expected Improve performance of partition pruning remapping a little. 2018-11-15 13:34:16 -05:00
input Fix tablespace handling for partitioned indexes 2018-11-03 13:25:19 -03:00
output Fix tablespace handling for partitioned indexes 2018-11-03 13:25:19 -03:00
sql Improve performance of partition pruning remapping a little. 2018-11-15 13:34:16 -05:00
.gitignore
GNUmakefile Put back parallel-safety guards in plpython and src/test/regress/. 2018-04-10 16:15:04 -04:00
Makefile Fix non-GNU makefiles for AIX make. 2017-11-30 00:57:22 -08:00
parallel_schedule Disable recheck_on_update optimization to avoid crashes. 2018-11-06 18:33:28 -05:00
pg_regress_main.c Clean up assorted misuses of snprintf()'s result value. 2018-08-15 16:29:31 -04:00
pg_regress.c Lower privilege level of programs calling regression_main 2018-10-20 09:02:36 -04:00
pg_regress.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
README
regress.c Refactor geometric functions and operators 2018-07-29 02:36:29 +02:00
regressplans.sh
resultmap Make float exponent output on Windows look the same as elsewhere. 2018-10-12 11:14:27 -04:00
serial_schedule Disable recheck_on_update optimization to avoid crashes. 2018-11-06 18:33:28 -05:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".