mirror of
https://github.com/postgres/postgres.git
synced 2026-03-05 14:54:02 -05:00
When creating an explicit Sort node for the outer path of a mergejoin,
we need to determine the number of presorted keys of the outer path to
decide whether explicit incremental sort can be applied. Currently,
this is done by repeatedly calling pathkeys_count_contained_in.
This patch caches the number of presorted outer pathkeys in MergePath,
allowing us to save several calls to pathkeys_count_contained_in. It
can be considered a complement to the changes in commit
|
||
|---|---|---|
| .. | ||
| foreign.c | ||
| Makefile | ||
| meson.build | ||