- Notifications
You must be signed in to change notification settings - Fork5
Commit476ef10
committed
This patch can be installed as part of 1.02.1 so people can properly
pg_dump and load to 2.0. I haven't gotten any feedback on whetherpeople want it, so I am submitting it for others to decide. I wouldrecommend an install in 1.02.1.I had said that the 2.0 pg_dump could dump a 1.02.1 database, but I waswrong. The copy is actually performed by the backend, and the 2.0database will not be able to read 1.02.1 databases because of the newsystem columns.This patch does several things. It copies nulls out as \N, so they canbe distinguished from '' strings. It fixes a problem where backslashesin the input stream were not output as double-backslashes. Without thispatch, backslashes copied out were deleted upon input, or interpreted asspecial characters. Third, input is now terminated by backslash-period.This can not be part of a normal input stream.I tested this by creating a database with all sorts of nulls, backslash,and period fields and dumped the database and reloaded into a newdatabase and compared them.Submitted by: Bruce1 parente7a110b commit476ef10
1 file changed
+8
-6
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
| 136 | + | |
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
| |||
1291 | 1291 |
| |
1292 | 1292 |
| |
1293 | 1293 |
| |
1294 |
| - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1295 | 1297 |
| |
1296 | 1298 |
| |
1297 | 1299 |
| |
| |||
1325 | 1327 |
| |
1326 | 1328 |
| |
1327 | 1329 |
| |
1328 |
| - | |
| 1330 | + | |
1329 | 1331 |
| |
1330 | 1332 |
| |
1331 | 1333 |
| |
| |||
1354 | 1356 |
| |
1355 | 1357 |
| |
1356 | 1358 |
| |
1357 |
| - | |
| 1359 | + | |
1358 | 1360 |
| |
1359 | 1361 |
| |
1360 | 1362 |
| |
1361 | 1363 |
| |
1362 | 1364 |
| |
1363 | 1365 |
| |
1364 |
| - | |
| 1366 | + | |
1365 | 1367 |
| |
1366 | 1368 |
| |
1367 | 1369 |
| |
|
0 commit comments
Comments
(0)