forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaff97b1
committed
Handle domains when checking for recursive inclusion of composite types.
We need this now because we allow domains over arrays, and we'll probablyallow domains over composites pretty soon, which makes the problem evenmore obvious.Although domains over arrays also exist in previous versions, this does notneed to be back-patched, because the coding used in older versionssuccessfully "looked through" domains over arrays. The problem is exposedby not treating a domain as having a typelem.Problem identified by Noah Misch, though I did not use his patch, sinceit would require additional work to handle domains over composites thatway. This approach is more future-proof.1 parent680ea6a commitaff97b1
File tree
3 files changed
+15
-3
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+15
-3
lines changedLines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
488 | 497 |
| |
489 | 498 |
| |
490 | 499 |
| |
491 |
| - | |
492 |
| - | |
493 |
| - | |
| 500 | + | |
494 | 501 |
| |
495 | 502 |
| |
496 | 503 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1516 | 1516 |
| |
1517 | 1517 |
| |
1518 | 1518 |
| |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1519 | 1522 |
| |
1520 | 1523 |
| |
1521 | 1524 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1128 | 1128 |
| |
1129 | 1129 |
| |
1130 | 1130 |
| |
| 1131 | + | |
| 1132 | + | |
1131 | 1133 |
| |
1132 | 1134 |
| |
1133 | 1135 |
| |
|
0 commit comments
Comments
(0)