Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com> writes:
> Another suggestion?
The implementation I would've expected to see is to do the sort and then
have two code paths for retrieving the median, depending on whether the
sort result is all in memory or not.
regards, tom lane