Re: Managing two sets of data in one database

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Managing two sets of data in one database
Date: 2012-03-29 21:16:25
Message-ID: jl2jd9$tkj$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jonathan Bartlett wrote on 29.03.2012 22:39:
> Your suggestion gives me an idea, and I'd like your opinion since I haven't done much with schemas.
>
> (1) Separate the datasets into different schemas
> (2) Use different schema names for different static data releases
> (3) For the *company*, we can use a schema search path that includes the next schema
> (4) For the *users*, they can use a schema search path that includes the released schema
>
> Then, I wouldn't have to modify any code, except to set the schema search path based on who was connecting.

If you create different Postgres users, you can set the search_path per user, so you don't have to remember doing that while connecting.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2012-03-29 21:22:45 Re: Managing two sets of data in one database
Previous Message Scott Marlowe 2012-03-29 21:09:10 Re: Managing two sets of data in one database