Re: Query questions

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: Query questions
Дата
Msg-id m2mzmtapuo.fsf@Douglas-McNaughts-Powerbook.local
обсуждение исходный текст
Ответ на Re: Query questions  (Poul Jensen <flyvholm@gfy.ku.dk>)
Ответы Re: Query questions  (Poul Jensen <flyvholm@gfy.ku.dk>)
Список pgsql-general
Poul Jensen <flyvholm@gfy.ku.dk> writes:

>>you want to create 1 million tables, all with one of
>>2 schemas?
>>
>>
>
> I started out with a schema for each file, thinking I could utilize
> the schema
> structure in queries, but I don't see how. Schemas are useful for grouping
> tables according to users/owners. Other than that, do they add anything
> but a dot in the table name?

The word "schema" is a bit overloaded--here it means "table
specification" rather than "namespace".

A general rule of database design is: if you end up creating multiple
tables with the same schema, you're doing it wrong--they should all be
one table with an additional key (usually indexed) to distinguish the
data.

-Doug

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

Предыдущее
От: Poul Jensen
Дата:
Сообщение: Re: Query questions
Следующее
От: Michael Ben-Nes
Дата:
Сообщение: Block Size and various FS settings