Foreign keys + table inheritance in PostgreSQL?

后端 未结 3 963
囚心锁ツ
囚心锁ツ 2020-12-30 22:05

I have three tables: organization, organization_teams and org_users. Here organization_teams is inherited from orga

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 22:24

    The only workaround i have found is:

    1. create function returning trigger for checking existence of some id in inherited table
    2. create a constraint trigger instead of FK

提交回复
热议问题