Robert Haas <robertmh...@gmail.com> writes: > On Fri, Jun 18, 2010 at 3:11 PM, mac_man2...@hotmail.it > <mac_man2...@hotmail.it> wrote: >> I repeat my question. Tuplesort.c and logtape.c DO implement tapes on disk >> and currently they do not request 2x or 4x of the input space: so, again, in >> which case implementing tapes on disks requires between 2x and 4x of input >> space?
> I think that the comment is saying that it *would* take 2x or 4x the > input space IF we created a separate file for each input. So instead > we don't. The point of the comment (and indeed of the whole module) is that if we don't want peak space usage to be at least twice the data volume, we have to recycle the space used by "input tapes" before the tapes have been fully read. There's no way to do that if each "tape" is an independent operating-system file. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers