On Sun, Apr 10, 2011 at 05:20:02AM +0530, Vaibhav Kaushal wrote: > Hello all, > > I was going through some papers related to sorting and since I am > studying PG code side by side, I wondered how sorting would be done on a > DB with millions of rows on disk with GBs of data. Since holding > everything in memory would not be the possible solution, how do we > actually sort the results in such conditions.