Re: [SQL] (Ab)Using schemas and inheritance - Mailing list pgsql-general

From Alban Hertroys
Subject Re: [SQL] (Ab)Using schemas and inheritance
Date
Msg-id 447422D2.4060403@magproductions.nl
Whole thread Raw
In response to Re: [SQL] (Ab)Using schemas and inheritance  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: [SQL] (Ab)Using schemas and inheritance
List 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 by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: challenging constraint situation - how do I make it
Next
From: Csaba Nagy
Date:
Subject: Re: allow LIMIT in UPDATE and DELETE