Em 30/06/2012 22:02, Misa Simic
escreveu:
Hi Edson, I'm inclined to solution (1). Setup proper triggers to copy data into all related databases would be easier (and have better performance). Working with multiple schemas seems that I'll have lot of changes either in applications and maintenance routines. Also, I'll have different databases replicated to different servers, according to some criteria. It would be impossible to set with schemas, right? About solution (2), it's my mistake: MS SQL does not support it. MySQL does. Oracle allows to create foreign keys by using materialized views (that, for instance, can be cross database). MS SQL and DB2 only allow cross-database queries (that, perhaphs, I really don't understand why is not supported in PgSQL). Regarding why support it? Multi-tenant systems are the first though. If you have separate databases because security issues (like HR database, that must be completely separated - not only database, but also physical server - from other applications due security constraints). But one table or view with correct clearance would be acceptable... Thanks, Edson. |