forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3cca13c
committed
Fix another bug in merging of inherited CHECK constraints.
It's not good for an inherited child constraint to be marked connoinherit;that would result in the constraint not propagating to grandchild tables,if any are created later. The code mostly prevented this from happeningbut there was one case that was missed.This is somewhat related to commite55a946, which also tightened checkson constraint merging. Hence, back-patch to 9.2 like that one. This isn'tso much because there's a concrete feature-related reason to stop there,as to avoid having more distinct behaviors than we have to in this area.Amit LangoteDiscussion: <b28ee774-7009-313d-dd55-5bdd81242c41@lab.ntt.co.jp>1 parentc08521e commit3cca13c
File tree
3 files changed
+17
-0
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+17
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2462 | 2462 |
| |
2463 | 2463 |
| |
2464 | 2464 |
| |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
2465 | 2476 |
| |
2466 | 2477 |
| |
2467 | 2478 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
645 | 645 |
| |
646 | 646 |
| |
647 | 647 |
| |
| 648 | + | |
| 649 | + | |
| 650 | + | |
648 | 651 |
| |
649 | 652 |
| |
650 | 653 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 |
| |
161 | 164 |
| |
162 | 165 |
| |
|
0 commit comments
Comments
(0)