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

From Fabien COELHO
Subject Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Date
Msg-id Pine.LNX.4.58.0408311650050.28337@sablons.cri.ensmp.fr
Whole thread Raw
In response to Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
List pgsql-hackers
Dear Tom,

> >     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.

If you consider that a bug, then you can also add: "CREATE SEQUENCE bla.sg;"

> The intention was that sequences would always be in the database default
> tablespace.  I'm not sure why this case is overriding that ...

It does what the doc says about schema tablespaces:
 "The name of the tablespace that is to be the default tablespace for all new objects created in the schema. If not
supplied,the schema will inherit the default tablespace of the database."
 

and that looks sound enough to me...

> but we can fix it.

Good.

-- 
Fabien Coelho - coelho@cri.ensmp.fr


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Next
From: "Katsaros Kwn/nos"
Date:
Subject: Storing a query plan...