2 Commits

Author SHA1 Message Date
Sven Klemm
ce73f25a87 Optimize first/last
This patch optimizes how first()/last() initialize the compare
function. Previously the compare function would be looked up for
every transition function call but since polymorphic types are
resolved at parse time for a specific aggregate instance the compare
function will not change during its lifetime. Additionally this
patch also fixes a memory leak when using first()/last() on
pointer types.
These changes lead to a roughly 2x speed improvement for first()/
last() and make the memory usage near-constant.

Fixes #3935
2021-12-22 08:12:11 +01:00
Sven Klemm
ef0ff45006 Add PG14 regresscheck test output files
This patch adds PG14 specific test output files for regresscheck,
regresscheck-t and regresscheck-shared.
2021-10-05 20:20:57 +02:00