Re: Threaded Sorting

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Hans-Jürgen Schönig <hs(at)cybertec(dot)at>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Threaded Sorting
Date: 2002-10-04 19:02:03
Message-ID: 200210041902.g94J23b05803@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Bingo! Want to increase sorting performance, give it more I/O
> > bandwidth, and it will take 1/100th of the time to do threading.
>
> > Added to TODO:
> > * Allow sorting to use multiple work directories
>
> Yeah, I like that. Actually it should apply to all temp files not only
> sorting.
>
> A crude hack would be to allow there to be multiple pg_temp_NNN/
> subdirectories (read symlinks) in a database, and then the code would
> automatically switch among these.

TODO updated:

* Allow sorting/temp files to use multiple work directories

Tom, what temp files do we use that aren't for sorting; I forgot.

> Probably a cleaner idea would be to somehow integrate this with
> tablespace management --- if you could mark some tablespaces as intended
> for temp stuff, the system could round-robin among those as it creates
> temp files and/or temp tables.

Yes, tablespaces would be the place for this.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-10-04 19:02:35 Re: Threaded Sorting
Previous Message Greg Copeland 2002-10-04 19:00:53 Re: Threaded Sorting