- Notifications
You must be signed in to change notification settings - Fork4.9k
Commiteb5949d
committed
Arrange for the postmaster (and standalone backends, initdb, etc) to
chdir into PGDATA and subsequently use relative paths instead of absolutepaths to access all files under PGDATA. This seems to give a smallperformance improvement, and it should make the system more robustagainst naive DBAs doing things like moving a database directory thathas a live postmaster in it. Per recent discussion.1 parent7504f0b commiteb5949d
File tree
27 files changed
+364
-474
lines changed- contrib/dbsize
- src
- backend
- access/transam
- bootstrap
- catalog
- commands
- libpq
- postmaster
- storage
- file
- freespace
- smgr
- tcop
- utils
- adt
- init
- misc
- bin/pg_resetxlog
- include
- access
27 files changed
+364
-474
lines changedLines changed: 12 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 | 27 |
| |
31 | 28 |
| |
32 | 29 |
| |
| |||
91 | 88 |
| |
92 | 89 |
| |
93 | 90 |
| |
94 |
| - | |
| 91 | + | |
95 | 92 |
| |
96 | 93 |
| |
97 | 94 |
| |
98 |
| - | |
| 95 | + | |
99 | 96 |
| |
100 | 97 |
| |
101 | 98 |
| |
| |||
104 | 101 |
| |
105 | 102 |
| |
106 | 103 |
| |
107 |
| - | |
108 |
| - | |
| 104 | + | |
| 105 | + | |
109 | 106 |
| |
110 | 107 |
| |
111 | 108 |
| |
| |||
134 | 131 |
| |
135 | 132 |
| |
136 | 133 |
| |
137 |
| - | |
| 134 | + | |
138 | 135 |
| |
139 |
| - | |
| 136 | + | |
140 | 137 |
| |
141 |
| - | |
| 138 | + | |
142 | 139 |
| |
143 | 140 |
| |
144 | 141 |
| |
| |||
208 | 205 |
| |
209 | 206 |
| |
210 | 207 |
| |
211 |
| - | |
| 208 | + | |
212 | 209 |
| |
213 |
| - | |
| 210 | + | |
214 | 211 |
| |
215 |
| - | |
216 |
| - | |
| 212 | + | |
| 213 | + | |
217 | 214 |
| |
218 | 215 |
| |
219 | 216 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
| 193 | + | |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
|
Lines changed: 5 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
661 | 661 |
| |
662 | 662 |
| |
663 | 663 |
| |
664 |
| - | |
| 664 | + | |
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
| |||
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 | 1436 |
| |
1437 |
| - | |
1438 | 1437 |
| |
1439 | 1438 |
| |
1440 | 1439 |
| |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 |
| - | |
| 1440 | + | |
| 1441 | + | |
1445 | 1442 |
| |
1446 | 1443 |
| |
1447 | 1444 |
| |
| |||
1540 | 1537 |
| |
1541 | 1538 |
| |
1542 | 1539 |
| |
1543 |
| - | |
| 1540 | + | |
1544 | 1541 |
| |
1545 | 1542 |
| |
1546 | 1543 |
| |
|
0 commit comments
Comments
(0)