Jin Kim
Jin Kim

Reputation: 17732

Table inheritance: Enforcing unique constraints across partitions?

I have a table that I would like to partition, but I don't know how to deal with the uniqueness constraints.

Is it possible to create a unique constraint across multiple child tables?

Upvotes: 6

Views: 3461

Answers (1)

Magnus Hagander
Magnus Hagander

Reputation: 25108

No, this is not currently possible. The best you can do is to create a trigger that does the verification manually.

Upvotes: 8

Related Questions