Re: [PATCHES] Tablespace for temporary objects and

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Cc: "Jaime Casanova" <systemguards(at)gmail(dot)com>, "Albert Cervera Areny" <albertca(at)hotpop(dot)com>
Subject: Re: [PATCHES] Tablespace for temporary objects and
Date: 2007-01-17 21:38:37
Message-ID: 200701171638.37644.xzilla@users.sourceforge.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Sunday 14 January 2007 23:16, Jaime Casanova wrote:
> On 1/13/07, Albert Cervera Areny <albertca(at)hotpop(dot)com> wrote:
> > It was already possible to set the guc on postgresql.conf when I posted
> > the patch...
>
> ok... fixed... the problem was that this code only let
> num_temp_tablespaces be greater than zero when we are in an
> interactive command (eg. a SET command) but setting the guc from
> postgresql.conf at startup time is not interactive so
> num_temp_tablespaces is zero and when i try to get the first temp
> tablespace to use (MyProcPid % num_temp_tablespaces) causes a floatin
> exception (division by zero).
<snip>
> new patch added, with that piece of code refactored to let
> num_temp_tablespaces get a value greater than zero always that the guc
> is setted, i also add some docs.
>
> the patch passes all 104 regression tests and all my tests as well...
>
> i think the patch is ready to be applied to HEAD, any committer want
> to review it?

Why is this PGC_SUSET? ISTM it should be PGC_USERSET.

--
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-01-18 21:21:25 WIP: splitting EquivalenceClasses out from PathKeys
Previous Message Merlin Moncure 2007-01-17 18:50:59 Re: [PATCHES] pg_standby