forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b36e8f
committed
Change struct tablespaceinfo's oid member from 'char *' to 'Oid'
This shouldn't change behavior except in the unusual case wherethere are file in the tablespace directory that have entirelynumeric names but are nevertheless not possible names for atablespace directory, either because their names have leading zeroesthat shouldn't be there, or the value is actually zero, or becausethe value is too large to represent as an OID.In those cases, the directory would previously have made it intothe list of tablespaceinfo objects and no longer will. Thus, basebackups will now ignore such directories, instead of treating themas legitimate tablespace directories. Similarly, if entries forsuch tablespaces occur in a tablespace_map file, they will nowbe rejected as erroneous, instead of being honored.This is infrastructure for future work that wants to be able toknow the tablespace of each relation that is part of a backup*as an OID*. By strengthening the up-front validation, we don'thave to worry about weird cases later, and can more easily avoidrepeated string->integer conversions.Patch by me, reviewed by David Steele.Discussion:http://postgr.es/m/CA+TgmoZNVeBzoqDL8xvr-nkaepq815jtDR4nJzPew7=3iEuM1g@mail.gmail.com1 parent5c47c65 commit5b36e8f
File tree
7 files changed
+49
-29
lines changed- src
- backend
- access/transam
- backup
- include/backup
7 files changed
+49
-29
lines changedLines changed: 16 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8579 | 8579 |
| |
8580 | 8580 |
| |
8581 | 8581 |
| |
| 8582 | + | |
| 8583 | + | |
8582 | 8584 |
| |
8583 |
| - | |
8584 |
| - | |
| 8585 | + | |
| 8586 | + | |
| 8587 | + | |
| 8588 | + | |
| 8589 | + | |
| 8590 | + | |
| 8591 | + | |
| 8592 | + | |
| 8593 | + | |
| 8594 | + | |
| 8595 | + | |
| 8596 | + | |
| 8597 | + | |
8585 | 8598 |
| |
8586 | 8599 |
| |
8587 | 8600 |
| |
| |||
8656 | 8669 |
| |
8657 | 8670 |
| |
8658 | 8671 |
| |
8659 |
| - | |
| 8672 | + | |
8660 | 8673 |
| |
8661 | 8674 |
| |
8662 | 8675 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
678 | 678 |
| |
679 | 679 |
| |
680 | 680 |
| |
681 |
| - | |
| 681 | + | |
682 | 682 |
| |
683 | 683 |
| |
684 | 684 |
| |
| |||
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
695 |
| - | |
696 | 695 |
| |
697 | 696 |
| |
698 | 697 |
| |
| |||
1341 | 1340 |
| |
1342 | 1341 |
| |
1343 | 1342 |
| |
| 1343 | + | |
| 1344 | + | |
1344 | 1345 |
| |
1345 | 1346 |
| |
1346 | 1347 |
| |
| |||
1360 | 1361 |
| |
1361 | 1362 |
| |
1362 | 1363 |
| |
1363 |
| - | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1364 | 1370 |
| |
1365 | 1371 |
| |
1366 | 1372 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 |
| - | |
| 100 | + | |
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| |||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
117 |
| - | |
| 117 | + | |
118 | 118 |
| |
119 |
| - | |
| 119 | + | |
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
|
Lines changed: 18 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
83 | 83 |
| |
84 |
| - | |
85 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| |||
305 | 306 |
| |
306 | 307 |
| |
307 | 308 |
| |
308 |
| - | |
| 309 | + | |
309 | 310 |
| |
310 | 311 |
| |
311 | 312 |
| |
| |||
346 | 347 |
| |
347 | 348 |
| |
348 | 349 |
| |
349 |
| - | |
| 350 | + | |
350 | 351 |
| |
351 | 352 |
| |
352 | 353 |
| |
| |||
355 | 356 |
| |
356 | 357 |
| |
357 | 358 |
| |
358 |
| - | |
| 359 | + | |
359 | 360 |
| |
360 | 361 |
| |
361 | 362 |
| |
362 |
| - | |
| 363 | + | |
363 | 364 |
| |
364 | 365 |
| |
365 | 366 |
| |
| |||
623 | 624 |
| |
624 | 625 |
| |
625 | 626 |
| |
626 |
| - | |
627 |
| - | |
| 627 | + | |
| 628 | + | |
628 | 629 |
| |
629 | 630 |
| |
630 | 631 |
| |
| |||
1087 | 1088 |
| |
1088 | 1089 |
| |
1089 | 1090 |
| |
1090 |
| - | |
| 1091 | + | |
1091 | 1092 |
| |
1092 | 1093 |
| |
1093 | 1094 |
| |
| |||
1099 | 1100 |
| |
1100 | 1101 |
| |
1101 | 1102 |
| |
1102 |
| - | |
| 1103 | + | |
1103 | 1104 |
| |
1104 | 1105 |
| |
1105 | 1106 |
| |
| |||
1154 | 1155 |
| |
1155 | 1156 |
| |
1156 | 1157 |
| |
1157 |
| - | |
| 1158 | + | |
1158 | 1159 |
| |
1159 | 1160 |
| |
1160 | 1161 |
| |
| |||
1416 | 1417 |
| |
1417 | 1418 |
| |
1418 | 1419 |
| |
1419 |
| - | |
1420 |
| - | |
| 1420 | + | |
| 1421 | + | |
1421 | 1422 |
| |
1422 | 1423 |
| |
1423 | 1424 |
| |
| |||
1486 | 1487 |
| |
1487 | 1488 |
| |
1488 | 1489 |
| |
1489 |
| - | |
1490 |
| - | |
| 1490 | + | |
| 1491 | + | |
1491 | 1492 |
| |
1492 | 1493 |
| |
1493 | 1494 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
410 |
| - | |
| 410 | + | |
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
0 commit comments
Comments
(0)