Re: Sharing static data among several databases

Поиск
Список
Период
Сортировка
От Douglas McNaught
Тема Re: Sharing static data among several databases
Дата
Msg-id 87d4u71dug.fsf@suzuka.mcnaught.org
обсуждение исходный текст
Ответ на Sharing static data among several databases  ("Robert James" <srobertjames@gmail.com>)
Ответы Re: Sharing static data among several databases
Список pgsql-general
"Robert James" <srobertjames@gmail.com> writes:

> 1.) Is there a way of separating, isolating, and sharing the shared data that
> will still allow FKs to it?

The only approach I know of would be to make all your customers use
independent schemas in one database, with isolation via appropriate
permissions, and have your shared data in another schema that all the
users have read access to.  Each user could have a search_path that
contained their schema and the shared schema, which should minimize
the amount of query-changing you'd need to do.

Note that this is basically what you would do with Oracle--it doesn't
have a concept of "database" really, just an "instance" that contains
schemas (which map more-or-less onto database users).

It would certainly be a change in your architecture, but how much work
it would be I don't know...

-Doug

В списке pgsql-general по дате отправления:

Предыдущее
От: "Robert James"
Дата:
Сообщение: Sharing static data among several databases
Следующее
От: Matt Magoffin
Дата:
Сообщение: Re: 8.3b2 XPath-based function index server crash