- Notifications
You must be signed in to change notification settings - Fork5
Commitba3d39c
committed
Don't allow system columns in CHECK constraints, except tableoid.
Previously, arbitray system columns could be mentioned in tableconstraints, but they were not correctly checked at runtime, becausethe values weren't actually set correctly in the tuple. Since itseems easy enough to initialize the table OID properly, do that,and continue allowing that column, but disallow the rest unless anduntil someone figures out a way to make them work properly.No back-patch, because this doesn't seem important enough to take therisk of destabilizing the back branches. In fact, this will pose adump-and-reload hazard for those upgrading from previous versions:constraints that were accepted before but were not correctly enforcedwill now either be enforced correctly or not accepted at all. Eithercould result in restore failures, but in practice I think very fewusers will notice the difference, since the use case is prettymarginal anyway and few users will be relying on features that havenot historically worked.Amit Kapila, reviewed by Rushabh Lathia, with doc changes by me.1 parentff2a1f5 commitba3d39c
File tree
7 files changed
+82
-1
lines changed- doc/src/sgml/ref
- src
- backend
- commands
- executor
- parser
- test/regress
- input
- output
7 files changed
+82
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
430 | 430 |
| |
431 | 431 |
| |
432 | 432 |
| |
433 |
| - | |
| 433 | + | |
| 434 | + | |
434 | 435 |
| |
435 | 436 |
| |
436 | 437 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2217 | 2217 |
| |
2218 | 2218 |
| |
2219 | 2219 |
| |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
2220 | 2226 |
| |
2221 | 2227 |
| |
2222 | 2228 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3857 | 3857 |
| |
3858 | 3858 |
| |
3859 | 3859 |
| |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
3860 | 3866 |
| |
3861 | 3867 |
| |
3862 | 3868 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
249 | 255 |
| |
250 | 256 |
| |
251 | 257 |
| |
| |||
653 | 659 |
| |
654 | 660 |
| |
655 | 661 |
| |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
656 | 668 |
| |
657 | 669 |
| |
658 | 670 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
554 | 564 |
| |
555 | 565 |
| |
556 | 566 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
129 | 151 |
| |
130 | 152 |
| |
131 | 153 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
207 | 231 |
| |
208 | 232 |
| |
209 | 233 |
| |
|
0 commit comments
Comments
(0)