Re: [GENERAL] Physical Database Configuration

Поиск
Список
Период
Сортировка
От johnnnnnn
Тема Re: [GENERAL] Physical Database Configuration
Дата
Msg-id 20030625161022.GE36005@performics.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Physical Database Configuration  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [GENERAL] Physical Database Configuration
Список pgsql-hackers
On Wed, Jun 25, 2003 at 11:34:14AM -0400, Tom Lane wrote:
> Has anyone looked at the syntaxes used by other databases to control
> tablespaces (Oracle, DB2, etc)?  I have no strong desire to
> slavishly follow Oracle, but it would be a shame to miss out on any
> good ideas.

DB2:

CREATE TABLESPACE spacename ...

ALTER TABLESPACE spacename ...

RENAME TABLESPACE spacename TO newspacename

CREATE TABLE name ... IN spacename [INDEX IN spacename] [LONG IN spacename]


"INDEX IN" and "LONG IN" refer to the tablespace used to store the
indices and the LOB values for that table, respectively.

The create syntax revolves around nodegroups and such which are DB2
concepts i don't fully grok (i'm a programmer, not a DBA).

But, yeah, those are really the only entrypoints. You can't create an
index in a specific tablespace -- it will go wherever the table is set
to put indices.

I like the syntax ("IN spacename"), though. It's simple and
straightforward.

-johnnnnnnnnnn



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: ECPG compile error
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: compile warnings