Skip site navigation (1) Skip section navigation (2)

Schema usage

From: Brian Hurt <bhurt(at)janestcapital(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Schema usage
Date: 2006-05-31 21:10:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I have a question about schema usage in postgres.  Not how to use 
schemas- I've read the friendly manual (and in this case it is most 
definately friendly manual- helpfull, well written, lots of examples, 
truely a friendly manual, kudos to the authors) so I know how to use 
them.  My question is over when and why to use them.  For example, is it 
better to have a small number of schemata with lots of tables in each, 
or a larger number of schemata with fewer tables in each?  This is 
probably a coke vr.s pepsi (or emacs vr.s vi) sort of debate, but I'd 
like to know what the arguments on both sides are.

Is there a performance difference between the two, vr.s having 
everything in public (and just real long table names)?

What are the rules of thumbs/patterns people use for what belongs in a 
given schemata, vr.s some other schemata, vr.s it's own schemata?  Or do 
you just throw stuff where ever and refactor the database design when it 
becomes unmanageable?



pgsql-novice by date

Next:From: Brian HurtDate: 2006-05-31 21:59:51
Subject: Re: searching multiple tables
Previous:From: Keith D. EvansDate: 2006-05-31 20:40:18
Subject: searching multiple tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group