forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitee5b595
committed
Apply identity sequence values on COPY
A COPY into a table should apply identity sequence values just like itdoes for ordinary defaults. This was previously forgotten, leading tonull values being inserted, which in turn would fail because identitycolumns have not-null constraints.Author: Michael Paquier <michael.paquier@gmail.com>Reported-by: Steven Winfield <steven.winfield@cantabcapital.com>Bug: #149521 parenta8ef4e8 commitee5b595
File tree
3 files changed
+44
-2
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+44
-2
lines changedLines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| |||
3063 | 3064 |
| |
3064 | 3065 |
| |
3065 | 3066 |
| |
3066 |
| - | |
3067 |
| - | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
3068 | 3080 |
| |
3069 | 3081 |
| |
3070 | 3082 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
156 | 169 |
| |
157 | 170 |
| |
158 | 171 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
81 | 98 |
| |
82 | 99 |
| |
83 | 100 |
| |
|
0 commit comments
Comments
(0)