forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite59fcbd
committed
Simplify information schema check constraint deparsing
The computation of the columninformation_schema.check_constraints.check_clause usedpg_get_constraintdef() plus some string manipulation to get the checkclause back out. This ended up with an extra pair of parentheses,which is only an aesthetic problem, but also with suffixes like "NOTVALID", which don't belong into that column. We can fix both of theseproblems and simplify the code by just using pg_get_expr() instead.Discussion:https://www.postgresql.org/message-id/799b59ef-3330-f0d2-ee23-8cdfa1740987@eisentraut.org1 parent48e2b23 commite59fcbd
File tree
2 files changed
+2
-3
lines changed- src
- backend/catalog
- include/catalog
2 files changed
+2
-3
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
438 |
| - | |
439 |
| - | |
| 438 | + | |
440 | 439 |
| |
441 | 440 |
| |
442 | 441 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
0 commit comments
Comments
(0)