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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -