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

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
Cc: Jorge Godoy <jgodoy(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: [SQL] (Ab)Using schemas and inheritance
Date: 2006-05-24 09:09:38
Message-ID: 447422D2.4060403@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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(at)magproductions(dot)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 //

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2006-05-24 10:29:12 Re: allow LIMIT in UPDATE and DELETE
Previous Message Alban Hertroys 2006-05-24 08:52:20 Re: challenging constraint situation - how do I make it

Browse pgsql-sql by date

  From Date Subject
Next Message andi 2006-05-24 10:35:10 PLEASE help ME , HOW TO GENERATE PRIMARY Keys on the fly
Previous Message Tom Lane 2006-05-24 03:08:58 Re: [SQL] (Ab)Using schemas and inheritance