django - Cross-database relations using UUID for PK -


it says here foreignkeys across databases can't done because of referential integrity: https://docs.djangoproject.com/en/1.9/topics/db/multi-db/#cross-database-relations

could overcome using uuid's primary key?

i'm guessing either don't understand referential integrity, or i'm not first think of , can't done reasons don't know yet.

a foreign key means "make sure value in column exists in column". doesn't work cross-database in postgresql, databases cannot "see" each other. work cross-schema though - use qualified schema_name.table_name.

why trying refer column in database?


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -