From: | "Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com> |
---|---|
To: | David Johnston <polobo(at)yahoo(dot)com>, Charlie <scorpdaddy(at)hotmail(dot)com> |
Cc: | "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Schema partitioning |
Date: | 2011-09-02 13:22:33 |
Message-ID: | 8585BA53443004458E0BAA6134C5A7FB6C612817@EGEXCMB01.oww.root.lcl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
I generally would separate different apps into different schema.
doug
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of David Johnston
Sent: Friday, September 02, 2011 8:20 AM
To: Charlie
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Schema partitioning
On Sep 1, 2011, at 14:13, Charlie <scorpdaddy(at)hotmail(dot)com> wrote:
> Could I get feedback from the community on schema partitioning?
>
> I'm doing maintenance on my ddl and I'm noticing that my tables are all in 1 schema, but they have prefixes on their names like table_app1_sometable, table_app1_secondtable, table_app2_anothertable, table_priviledged_restrictedtable1, etc. The table_app1 tables seem to want to go in their own schema "app1", etc, and drop the prefixes. Except they'll still be there, as in app1.sometable.
>
> Is this just style? Or are there concrete benefits to partitioning?
>
>
Mostly style but some ease-of-use when it comes to permissions as well. It's really no different than why you'd use sub-directories in your OS instead of putting everything in C/root.
It does give you namespaces features as well (I.e., duplicate names but in different contexts).
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas | 2011-09-07 01:04:07 | How can I inherit constraints? |
Previous Message | David Johnston | 2011-09-02 13:20:03 | Re: Schema partitioning |