Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Дата
Msg-id Pine.LNX.4.58.0408311650050.28337@sablons.cri.ensmp.fr
обсуждение исходный текст
Ответ на Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE
Следующее
От: "Katsaros Kwn/nos"
Дата:
Сообщение: Storing a query plan...