forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit43f33dc
committed
Add HEADER support to COPY text format
The COPY CSV format supports the HEADER option to output a headerline. This patch adds the same option to the default text format. Oninput, the HEADER option causes the first line to be skipped, same aswith CSV.Author: Rémi Lapeyre <remi.lapeyre@lenstra.fr>Discussion:https://www.postgresql.org/message-id/flat/CAF1-J-0PtCWMeLtswwGV2M70U26n4g33gpe1rcKQqe6wVQDrFA@mail.gmail.com1 parent5553cbd commit43f33dc
File tree
8 files changed
+29
-9
lines changed- contrib/file_fdw
- expected
- sql
- doc/src/sgml/ref
- src
- backend/commands
- include/commands
- test/regress
- expected
- sql
8 files changed
+29
-9
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
54 |
| - | |
55 | 53 |
| |
56 | 54 |
| |
57 | 55 |
| |
58 | 56 |
| |
59 | 57 |
| |
60 |
| - | |
| 58 | + | |
61 | 59 |
| |
62 | 60 |
| |
63 | 61 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
60 | 59 |
| |
61 | 60 |
| |
62 | 61 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
280 |
| - | |
| 280 | + | |
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
558 |
| - | |
| 558 | + | |
559 | 559 |
| |
560 | 560 |
| |
561 |
| - | |
| 561 | + | |
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
863 | 863 |
| |
864 | 864 |
| |
865 | 865 |
| |
866 |
| - | |
| 866 | + | |
| 867 | + | |
867 | 868 |
| |
| 869 | + | |
| 870 | + | |
868 | 871 |
| |
869 | 872 |
| |
870 | 873 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
123 | 131 |
| |
124 | 132 |
| |
125 | 133 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
163 | 175 |
| |
164 | 176 |
| |
165 | 177 |
| |
|
0 commit comments
Comments
(0)