Re: Query questions - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Query questions
Date
Msg-id m2mzmtapuo.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Re: Query questions  (Poul Jensen <flyvholm@gfy.ku.dk>)
Responses Re: Query questions
List 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 by date:

Previous
From: Poul Jensen
Date:
Subject: Re: Query questions
Next
From: Michael Ben-Nes
Date:
Subject: Block Size and various FS settings