forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit847cfb6
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 parenta2973b0 commit847cfb6
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 | |
---|---|---|---|
| |||
1571 | 1571 |
| |
1572 | 1572 |
| |
1573 | 1573 |
| |
1574 |
| - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1575 | 1582 |
| |
1576 | 1583 |
| |
1577 | 1584 |
| |
|
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)