Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Date
Msg-id 29089.1093962663@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
List pgsql-hackers
Fabien COELHO <fabien.coelho@ensmp.fr> writes:
>> The sequences are in the same tablespace as the system catalogs of the
>> database they are in, so this objection is moot.

> three (unusual?) commands to reach the "moot" state:

>     psql> CREATE TABLESPACE foo LOCATION '/tmp/postgres';
>     psql> CREATE SCHEMA bla TABLESPACE foo;
>     psql> CREATE TABLE bla.boo(id SERIAL PRIMARY KEY);

> Now you have schema bla, table bla.boo, index bla.boo_pkey and sequence
> bla.boo_id_seq all in tablespace foo.

Hmm, that's a bug.  The intention was that sequences would always be
in the database default tablespace.  I'm not sure why this case is
overriding that ... but we can fix it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Win32 compile and beta2
Next
From: Fabien COELHO
Date:
Subject: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE