Reputation: 15623
Suppose I have a table partitioned by month in postgres where the following are true:
Do constraint checks on the partitions / child tables help me here? Since the trigger handles the end-of-month period, it seems they would be redundant and thus unhelpful, but I feel I might be missing something.
Upvotes: 0
Views: 172
Reputation: 127297
The constraints are needed for the query planner, it uses the constraint to know where to find specific data. See the documentation.
Upvotes: 3