Re: pgsql: Create a GUC parameter temp_tablespacesthat allows selection of - Mailing list pgsql-committers

From Bruce Momjian
Subject Re: pgsql: Create a GUC parameter temp_tablespacesthat allows selection of
Date
Msg-id 200706050346.l553k8H15462@momjian.us
Whole thread Raw
In response to Re: pgsql: Create a GUC parameter temp_tablespacesthat allows selection of  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
Tom Lane wrote:
> "Simon Riggs" <simon@2ndquadrant.com> writes:
> > One of the main reasons for the implementation was to allow larger
> > queries to work faster by utilising multiple temp tablespaces for the
> > same query.
>
> > The original ideal implementation was to use round-robin/cyclic
> > selection, which allows much better usage in the above case.
>
> Really?  What if multiple backends are all hitting the same tablespaces
> in the same order?  A random selection seems much less likely to risk
> having any self-synchronizing behavior.

I thought it was going to be random selection for the first tablespace,
and round-robin after that.

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-committers by date:

Previous
From: adunstan@postgresql.org (Andrew Dunstan)
Date:
Subject: pgsql: Remove ill-conceived CRLF translation for Windows in syslogger.
Next
From: teodor@postgresql.org (Teodor Sigaev)
Date:
Subject: pgsql: Move call of MarkBufferDirty() before XLogInsert() as required.