diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-01 18:47:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-01 18:47:39 +0000 |
commit | d2825e1c855e2ce0e9d3e6bc2c6f3d7793394a04 (patch) | |
tree | 9b8cc57c670685f61c088f73a20267d898caed08 /src/backend/commands/functioncmds.c | |
parent | 0ee5a39862748b846786db48f41cc29eab38c015 (diff) | |
download | postgresql-d2825e1c855e2ce0e9d3e6bc2c6f3d7793394a04.tar.gz postgresql-d2825e1c855e2ce0e9d3e6bc2c6f3d7793394a04.zip |
Since sort_bounded_heap makes state changes that should be made
regardless of the number of tuples involved, it's incorrect to skip it
when memtupcount = 1; the number of cycles saved is minuscule anyway.
An alternative solution would be to pull the state changes out to the
call site in tuplesort_performsort, but keeping them near the corresponding
changes in make_bounded_heap seems marginally cleaner. Noticed by
Greg Stark.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions