forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbcaabc5
committed
Depending on my interpreting (and programming) skills, this might solve
anywhere from zero to two TODO items.* Allow flag to control COPY input/output of NULLsI got this:COPY table .... [ WITH NULL AS 'string' ]which does what you'd expect. The default is \N, otherwise you can useempty strings, etc. On Copy In this acts like a filter: every data itemthat looks like 'string' becomes a NULL. Pretty straightforward.This also seems to be related to* Make postgres user have a password by defaultIf I recall this discussion correctly, the problem was actually that thedefault password for the postgres (or any) user is in fact "\N", becauseof the way copy is used. With this change, the file pg_pwd is copied outwith nulls as empty strings, so if someone doesn't have a password, thepassword is just '', which one would expect from a new account. I don'tthink anyone really wants a hard-coded default password.Peter Eisentraut Sernanders väg 10:1151 parenta82f9ff commitbcaabc5
7 files changed
+67
-30
lines changedLines changed: 27 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| 33 | + | |
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| |||
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
107 | 128 |
| |
108 | 129 |
| |
109 | 130 |
| |
| |||
287 | 308 |
| |
288 | 309 |
| |
289 | 310 |
| |
290 |
| - | |
291 |
| - | |
| 311 | + | |
| 312 | + | |
292 | 313 |
| |
293 | 314 |
| |
294 | 315 |
| |
295 | 316 |
| |
296 | 317 |
| |
297 | 318 |
| |
298 |
| - | |
| 319 | + | |
| 320 | + | |
299 | 321 |
| |
300 | 322 |
| |
301 | 323 |
| |
|
Lines changed: 26 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
| 46 | + | |
| 47 | + | |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| |||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 |
| - | |
| 222 | + | |
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 |
| - | |
| 235 | + | |
| 236 | + | |
236 | 237 |
| |
237 | 238 |
| |
238 | 239 |
| |
| |||
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
307 |
| - | |
| 308 | + | |
308 | 309 |
| |
309 | 310 |
| |
310 | 311 |
| |
| |||
336 | 337 |
| |
337 | 338 |
| |
338 | 339 |
| |
339 |
| - | |
| 340 | + | |
340 | 341 |
| |
341 | 342 |
| |
342 | 343 |
| |
| |||
362 | 363 |
| |
363 | 364 |
| |
364 | 365 |
| |
365 |
| - | |
| 366 | + | |
366 | 367 |
| |
367 | 368 |
| |
368 | 369 |
| |
| |||
449 | 450 |
| |
450 | 451 |
| |
451 | 452 |
| |
452 |
| - | |
| 453 | + | |
453 | 454 |
| |
454 | 455 |
| |
455 | 456 |
| |
| |||
520 | 521 |
| |
521 | 522 |
| |
522 | 523 |
| |
523 |
| - | |
| 524 | + | |
524 | 525 |
| |
525 | 526 |
| |
526 | 527 |
| |
| |||
711 | 712 |
| |
712 | 713 |
| |
713 | 714 |
| |
714 |
| - | |
| 715 | + | |
715 | 716 |
| |
716 | 717 |
| |
717 | 718 |
| |
| |||
724 | 725 |
| |
725 | 726 |
| |
726 | 727 |
| |
727 |
| - | |
| 728 | + | |
728 | 729 |
| |
729 | 730 |
| |
730 | 731 |
| |
| |||
1122 | 1123 |
| |
1123 | 1124 |
| |
1124 | 1125 |
| |
| 1126 | + | |
1125 | 1127 |
| |
1126 | 1128 |
| |
1127 | 1129 |
| |
1128 |
| - | |
| 1130 | + | |
1129 | 1131 |
| |
1130 | 1132 |
| |
1131 | 1133 |
| |
| |||
1207 | 1209 |
| |
1208 | 1210 |
| |
1209 | 1211 |
| |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1210 | 1219 |
| |
1211 | 1220 |
| |
1212 | 1221 |
| |
| |||
1225 | 1234 |
| |
1226 | 1235 |
| |
1227 | 1236 |
| |
1228 |
| - | |
1229 |
| - | |
1230 |
| - | |
1231 | 1237 |
| |
1232 | 1238 |
| |
1233 | 1239 |
| |
| |||
1266 | 1272 |
| |
1267 | 1273 |
| |
1268 | 1274 |
| |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1269 | 1278 |
| |
1270 | 1279 |
| |
1271 | 1280 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
150 |
| - | |
| 150 | + | |
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| |||
802 | 802 |
| |
803 | 803 |
| |
804 | 804 |
| |
805 |
| - | |
| 805 | + | |
806 | 806 |
| |
807 | 807 |
| |
808 | 808 |
| |
| |||
811 | 811 |
| |
812 | 812 |
| |
813 | 813 |
| |
| 814 | + | |
814 | 815 |
| |
815 | 816 |
| |
816 | 817 |
| |
| |||
850 | 851 |
| |
851 | 852 |
| |
852 | 853 |
| |
| 854 | + | |
| 855 | + | |
853 | 856 |
| |
854 | 857 |
| |
855 | 858 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
| 272 | + | |
272 | 273 |
| |
273 | 274 |
| |
274 | 275 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
| 133 | + | |
133 | 134 |
| |
134 | 135 |
| |
135 | 136 |
| |
|
0 commit comments
Comments
(0)