Re: Physical Database Configuration

Поиск
Список
Период
Сортировка
От Fernando Schapachnik
Тема Re: Physical Database Configuration
Дата
Msg-id 20030625161314.GK318@bal740r0.mecon.gov.ar
обсуждение исходный текст
Ответ на Re: Physical Database Configuration  (nolan@celery.tssi.com)
Список pgsql-general
En un mensaje anterior, nolan@celery.tssi.com escribió:
> > Well, correct solution is to implement tablespaces on which objects like
> > databases, tables and indexes can be put.
>
> I've not looked at the SQL standard, but it seems to me like the order
> should be:
>
> Databases
>    Tablespaces
>       Schemas
>          Objects (tables, indexes, functions, etc.)
>

I'm not well versed in the SQL standard here, so maybe this is plain wrong, but
I think it would be nice to have some kind of separation between the logical
structure of the table (developer concern) and the physical disposition (DBA
concern), unlike what Oracle does (CREATE TABLE ... TABLESPACE ... OTHER
PHYSICAL PARAMETERS HERE).

Maybe a way is having storage classes:

CREATE TABLE ... STORAGE CLASS <name>.
STORAGE CLASS <name> TABLESPACE ...

Example of use:

Developer:

CREATE TABLE a (...) STORAGE CLASS big_tuples;
CREATE TABLE b (...) STORAGE CLASS heavy_use;

DBA:

STORAGE CLASS big_tuples TABLESPACE x;
STORAGE CLASS heavy_use TABLESPACE y;

Regards.

Fernando.

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

Предыдущее
От: Paul Thomas
Дата:
Сообщение: Re:
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Inherits tables and current CVS