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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -