From: | Douglas McNaught <doug(at)mcnaught(dot)org> |
---|---|
To: | flyvholm(at)gfy(dot)ku(dot)dk |
Cc: | Ragnar Hafstað <gnari(at)simnet(dot)is>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Query questions |
Date: | 2005-09-04 14:07:27 |
Message-ID: | m2mzmtapuo.fsf@Douglas-McNaughts-Powerbook.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Poul Jensen <flyvholm(at)gfy(dot)ku(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Ben-Nes | 2005-09-04 16:12:35 | Block Size and various FS settings |
Previous Message | Poul Jensen | 2005-09-04 13:22:36 | Re: Query questions |