forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit09d09d4
committed
Fix pg_get_constraintdef for NOT NULL constraints on domains
We added pg_constraint rows for all not-null constraints, first fortables and later for domains; but while the ones for tables werereverted, the ones for domains were not. However, we did accidentallyrevert ruleutils.c support for the ones on domains in6f8bb7c,which breaks running pg_get_constraintdef() on them. Put that back.This is only needed in branch 17, because we've reinstated this code inbranch master with commit14e87ff. Add some new tests in bothbranches.I couldn't find anything else that needs de-reverting.Reported-by: Erki Eessaar <erki.eessaar@taltech.ee>Reviewed-by: Magnus Hagander <magnus@hagander.net>Discussion:https://postgr.es/m/AS8PR01MB75110350415AAB8BBABBA1ECFE222@AS8PR01MB7511.eurprd01.prod.exchangelabs.com1 parent0d884f5 commit09d09d4
2 files changed
+25
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
743 | 743 |
| |
744 | 744 |
| |
745 | 745 |
| |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
746 | 760 |
| |
747 | 761 |
| |
748 | 762 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
432 | 443 |
| |
433 | 444 |
| |
434 | 445 |
| |
|
0 commit comments
Comments
(0)