Re: [WIP] GUC for temp_tablespaces - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: [WIP] GUC for temp_tablespaces
Date
Msg-id 200705091010.50920.peter_e@gmx.net
Whole thread Raw
In response to Re: [WIP] GUC for temp_tablespaces  ("Jaime Casanova" <systemguards@gmail.com>)
Responses Re: [WIP] GUC for temp_tablespaces
List pgsql-patches
Am Mittwoch, 9. Mai 2007 02:21 schrieb Jaime Casanova:
> > What I have been missing all along in these patches is an explanation for
> > what it means to list multiple temporary tablespaces.  Are they used in
> > order, or the first one that exists, or what?
>
> http://archives.postgresql.org/pgsql-hackers/2007-01/msg00531.php
> http://archives.postgresql.org/pgsql-patches/2007-01/msg00282.php

Those are discussions of possible ideas, not an acceptable documentation of
this feature.

> in src/backend/commands/tablespace.c:assign_temp_tablespaces():

That also isn't an acceptable place to put feature documentation.

>    /*
>      * Select the first tablespace to use
>      */
>     Assert(num_temp_tablespaces >= 0);
>     if (num_temp_tablespaces != 0)
>         next_temp_tablespace = MyProcPid % num_temp_tablespaces;

What does this mean?  Is there code that selects the second tablespace to use?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: updated WIP: arrays of composites
Next
From: Michael Meskes
Date:
Subject: Re: ECPG patch to use prepare for improved performance