Re: query produces 1 GB temp file
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Dirk Lutzebaeck <lutzeb@aeccom.com>, pgsql-performance@postgresql.org
Date: 2005-02-05T23:01:03Z
Lists: pgsql-performance
Greg Stark <gsstark@mit.edu> writes: > Am I wrong? I thought the disk sort algorithm was the polyphase tape sort from > Knuth which is always reading two tapes and writing to a third. It is a polyphase sort, but we recycle the input "tapes" as fast as we use them, so that the maximum disk space usage is about as much as the data volume to sort. regards, tom lane