Re: [SQL] (Ab)Using schemas and inheritance

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: [SQL] (Ab)Using schemas and inheritance
Дата
Msg-id 447422D2.4060403@magproductions.nl
обсуждение исходный текст
Ответ на Re: [SQL] (Ab)Using schemas and inheritance  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Re: [SQL] (Ab)Using schemas and inheritance  (Jorge Godoy <jgodoy@gmail.com>)
Список pgsql-general
Jim C. Nasby wrote:
> Moving to -general, where it's more likely that others will have input.
> Perhaps the biggest issue is: what happens when you need to do DDL? If
> you have 1000 schemas that should be identical, you'll need to perform
> any DDL 1000 times.

What about using updatable views instead of inheritence? You'd need your
company_id back, but adding new companies or modifying table definitions
could be a lot easier (as long as you don't need to update all of your
views...).

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: challenging constraint situation - how do I make it
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: allow LIMIT in UPDATE and DELETE