forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4ac2a9b
committed
Add REJECT_LIMIT option to the COPY command.
Previously, when ON_ERROR was set to 'ignore', the COPY commandwould skip all rows with data type conversion errors, with no way tolimit the number of skipped rows before failing.This commit introduces the REJECT_LIMIT option, allowing users tospecify the maximum number of erroneous rows that can be skipped.If more rows encounter data type conversion errors than allowed byREJECT_LIMIT, the COPY command will fail with an error, even whenON_ERROR = 'ignore'.Author: Atsushi TorikoshiReviewed-by: Junwang Zhao, Kirill Reshke, jian he, Fujii MasaoDiscussion:https://postgr.es/m/63f99327aa6b404cc951217fa3e61fe4@oss.nttdata.com1 parentd759c1a commit4ac2a9b
6 files changed
+91
-0
lines changedLines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| |||
413 | 414 |
| |
414 | 415 |
| |
415 | 416 |
| |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
416 | 435 |
| |
417 | 436 |
| |
418 | 437 |
| |
|
Lines changed: 33 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
421 | 438 |
| |
422 | 439 |
| |
423 | 440 |
| |
| |||
472 | 489 |
| |
473 | 490 |
| |
474 | 491 |
| |
| 492 | + | |
475 | 493 |
| |
476 | 494 |
| |
477 | 495 |
| |
| |||
638 | 656 |
| |
639 | 657 |
| |
640 | 658 |
| |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
641 | 666 |
| |
642 | 667 |
| |
643 | 668 |
| |
| |||
874 | 899 |
| |
875 | 900 |
| |
876 | 901 |
| |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
877 | 910 |
| |
878 | 911 |
| |
879 | 912 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1018 | 1018 |
| |
1019 | 1019 |
| |
1020 | 1020 |
| |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1021 | 1028 |
| |
1022 | 1029 |
| |
1023 | 1030 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
| 88 | + | |
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 |
| |
120 | 124 |
| |
121 | 125 |
| |
| |||
791 | 795 |
| |
792 | 796 |
| |
793 | 797 |
| |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
794 | 804 |
| |
795 | 805 |
| |
796 | 806 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
| 85 | + | |
| 86 | + | |
85 | 87 |
| |
86 | 88 |
| |
87 | 89 |
| |
| |||
561 | 563 |
| |
562 | 564 |
| |
563 | 565 |
| |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
564 | 585 |
| |
565 | 586 |
| |
566 | 587 |
| |
|
0 commit comments
Comments
(0)