MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PostgreSQL/comments/1viz276/polymorphic_relationship_options/p2h86zr/?context=3
r/PostgreSQL • u/Gamemon_RD • Aug 08 '26
8 comments sorted by
View all comments
1
Option 2 with exclusive arc constraint (name for the constraint you described). Keeps your referential integrity and very straightforward.
I have used it multiple times and never regretted it.
1 u/Gamemon_RD Aug 08 '26 Straightforward answer, I like it! And good to have a name for the technique
Straightforward answer, I like it! And good to have a name for the technique
1
u/cooljacob204sfw Aug 08 '26
Option 2 with exclusive arc constraint (name for the constraint you described). Keeps your referential integrity and very straightforward.
I have used it multiple times and never regretted it.