| От | Igal @ Lucee.org |
|---|---|
| Тема | Re: [GENERAL] Multiple Schemas vs. Multiple Databases |
| Дата | |
| Msg-id | b8ddca1f-d3d7-f1cf-e226-43286829fa96@lucee.org обсуждение |
| Ответ на | Re: [GENERAL] Multiple Schemas vs. Multiple Databases (John R Pierce <pierce@hogranch.com>) |
| Список | pgsql-general |
On 10/13/2017 12:29 PM, Igal @ Lucee.org wrote:
The main things that I need to do is:
a) Be able to backup/restore each "part" separately. Looks like pg_dump allows that for schemas via the --schema=schema argument.
b) Be able to query aggregates from the secondary "part" and store the results in the primary one, which also seems easier with multiple schemas than multiple databases.
Am I right to think that two schemas are better in this use case or am I missing something important?
generally, yeah, unless you eventually decide to split off the two databases onto separate servers for performance reasons. Of course, to access the 'other' database, you'd need to use postgres_fdw or dblink.
Igal Sapir
Lucee Core Developer
Lucee.org
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера