aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-08-07 19:35:02 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-08-07 19:35:02 +0000
commitaf95d7aa63be1d03bad6070d090874d3dfa046e8 (patch)
tree8466da3dda219225c516bf87fc521b5ccc86f91c /src/backend/executor/execMain.c
parent368df3042783778031ece2b8580324516cd42de1 (diff)
downloadpostgresql-af95d7aa63be1d03bad6070d090874d3dfa046e8.tar.gz
postgresql-af95d7aa63be1d03bad6070d090874d3dfa046e8.zip
Improve INTERSECT/EXCEPT hashing by realizing that we don't need to make any
hashtable entries for tuples that are found only in the second input: they can never contribute to the output. Furthermore, this implies that the planner should endeavor to put first the smaller (in number of groups) input relation for an INTERSECT. Implement that, and upgrade prepunion's estimation of the number of rows returned by setops so that there's some amount of sanity in the estimate of which one is smaller.
Diffstat (limited to 'src/backend/executor/execMain.c')
0 files changed, 0 insertions, 0 deletions