forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit910eb61
committed
Only evaluate default values as required when doing COPY FROM
Commit9f8377f was a little too eager in fetching default values.Normally this would not matter, but if the default value is not validfor the type (e.g. a varchar that's too long) it caused an unnecessaryerror.Complaint and fix from Laurenz AlbeBackpatch to release 16.Discussion:https://postgr.es/m/75a7b7483aeb331aa017328d606d568fc715b90d.camel@cybertec.at1 parentd5c5312 commit910eb61
File tree
3 files changed
+40
-1
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+40
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1569 | 1569 |
| |
1570 | 1570 |
| |
1571 | 1571 |
| |
1572 |
| - | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1573 | 1580 |
| |
1574 | 1581 |
| |
1575 | 1582 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + |
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + |
0 commit comments
Comments
(0)