Re: Tablespace for temporary objects and sort files - Mailing list pgsql-patches

From Jaime Casanova
Subject Re: Tablespace for temporary objects and sort files
Date
Msg-id c2d9e70e0701032033j30acaca8k3ef333b0b547906b@mail.gmail.com
Whole thread Raw
In response to Re: Tablespace for temporary objects and sort files  (Albert Cervera Areny <albertca@hotpop.com>)
Responses Re: Tablespace for temporary objects and sort files  (Albert Cervera Areny <albertca@hotpop.com>)
List pgsql-patches
On 12/27/06, Albert Cervera Areny <albertca@hotpop.com> wrote:
> Hi,
>        here's a new version of the patch against HEAD with both, table and sort
> files working correctly for me. Regression tests work too.
>        I'd like to ask again the question I made on the first post as no answer was
> given at that time:
>
> "The GetTempTablespace function correctly returns a different tablespace
> each time is called, but I store the position of the last tablespace used
> with an integer and iterate through the list of tablespaces each time. I
> tried to keep the iterator from call to call but I got a segfault, I
> imagine due to the memory context. Should I try to keep the iterator? How
> can I do it?"
>
>        Now I'm working on some regression tests that could be added to
> tablespace.source using something like:
>
> SET temp_tablespaces='testspace';
>
> CREATE TEMP TABLE temp_foo(a VARCHAR);
>
> SELECT COUNT(pg_ls_dir('pg_tblspc/' || (SELECT oid FROM
> pg_catalog.pg_tablespace WHERE spcname='testspace' .... )
>

seems is working fine... i actually looked for the files in the
tablespace directory...
have you looked my past comments?

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
                                       Richard Cook

pgsql-patches by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: xlog directory at initdb time
Next
From: Gregory Stark
Date:
Subject: Assorted typos