Re: Managing two sets of data in one database - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: Managing two sets of data in one database
Date
Msg-id jl2jd9$tkj$1@dough.gmane.org
Whole thread Raw
In response to Re: Managing two sets of data in one database  (Jonathan Bartlett <jonathan@newmedio.com>)
Responses Re: Managing two sets of data in one database  (John R Pierce <pierce@hogranch.com>)
List 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
whileconnecting. 






pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Managing two sets of data in one database
Next
From: John R Pierce
Date:
Subject: Re: Managing two sets of data in one database