forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdebcec7
committed
Include the backend ID in the relpath of temporary relations.
This allows us to reliably remove all leftover temporary relationfiles on cluster startup without reference to system catalogs or WAL;therefore, we no longer include temporary relations in XLOG_XACT_COMMITand XLOG_XACT_ABORT WAL records.Since these changes require including a backend ID in eachSharedInvalSmgrMsg, the size of the SharedInvalidationMessage.idfield has been reduced from two bytes to one, and the maximum numberof connections has been reduced from INT_MAX / 4 to 2^23-1. It wouldbe possible to remove these restrictions by increasing the size ofSharedInvalidationMessage by 4 bytes, but right now that doesn't seemlike a good trade-off.Review by Jaime Casanova and Tom Lane.1 parent3f9479e commitdebcec7
File tree
37 files changed
+668
-342
lines changed- doc/src/sgml
- src
- backend
- access
- heap
- nbtree
- transam
- catalog
- commands
- postmaster
- storage
- buffer
- file
- freespace
- smgr
- utils
- adt
- cache
- misc
- include
- access
- catalog
- postmaster
- storage
- utils
37 files changed
+668
-342
lines changedLines changed: 15 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 |
| |
147 | 151 |
| |
148 | 152 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
376 |
| - | |
377 |
| - | |
| 376 | + | |
378 | 377 |
| |
379 | 378 |
| |
380 | 379 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
298 |
| - | |
299 |
| - | |
300 |
| - | |
| 298 | + | |
| 299 | + | |
301 | 300 |
| |
302 | 301 |
| |
303 | 302 |
| |
|
Lines changed: 5 additions & 5 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 |
| |
| |||
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
868 |
| - | |
869 |
| - | |
| 868 | + | |
| 869 | + | |
870 | 870 |
| |
871 | 871 |
| |
872 | 872 |
| |
| |||
1320 | 1320 |
| |
1321 | 1321 |
| |
1322 | 1322 |
| |
1323 |
| - | |
| 1323 | + | |
1324 | 1324 |
| |
1325 | 1325 |
| |
1326 | 1326 |
| |
1327 | 1327 |
| |
1328 | 1328 |
| |
1329 |
| - | |
| 1329 | + | |
1330 | 1330 |
| |
1331 | 1331 |
| |
1332 | 1332 |
| |
|
Lines changed: 10 additions & 11 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 |
| |
| |||
912 | 912 |
| |
913 | 913 |
| |
914 | 914 |
| |
915 |
| - | |
916 | 915 |
| |
917 | 916 |
| |
918 | 917 |
| |
919 | 918 |
| |
920 | 919 |
| |
921 | 920 |
| |
922 | 921 |
| |
923 |
| - | |
| 922 | + | |
924 | 923 |
| |
925 | 924 |
| |
926 | 925 |
| |
| |||
1048 | 1047 |
| |
1049 | 1048 |
| |
1050 | 1049 |
| |
1051 |
| - | |
| 1050 | + | |
1052 | 1051 |
| |
1053 | 1052 |
| |
1054 | 1053 |
| |
| |||
1334 | 1333 |
| |
1335 | 1334 |
| |
1336 | 1335 |
| |
1337 |
| - | |
| 1336 | + | |
1338 | 1337 |
| |
1339 | 1338 |
| |
1340 | 1339 |
| |
| |||
4474 | 4473 |
| |
4475 | 4474 |
| |
4476 | 4475 |
| |
4477 |
| - | |
| 4476 | + | |
4478 | 4477 |
| |
4479 | 4478 |
| |
4480 | 4479 |
| |
4481 | 4480 |
| |
4482 | 4481 |
| |
4483 | 4482 |
| |
4484 | 4483 |
| |
4485 |
| - | |
| 4484 | + | |
4486 | 4485 |
| |
4487 | 4486 |
| |
4488 | 4487 |
| |
| |||
4579 | 4578 |
| |
4580 | 4579 |
| |
4581 | 4580 |
| |
4582 |
| - | |
| 4581 | + | |
4583 | 4582 |
| |
4584 | 4583 |
| |
4585 | 4584 |
| |
4586 | 4585 |
| |
4587 | 4586 |
| |
4588 | 4587 |
| |
4589 | 4588 |
| |
4590 |
| - | |
| 4589 | + | |
4591 | 4590 |
| |
4592 | 4591 |
| |
4593 | 4592 |
| |
| |||
4661 | 4660 |
| |
4662 | 4661 |
| |
4663 | 4662 |
| |
4664 |
| - | |
| 4663 | + | |
4665 | 4664 |
| |
4666 | 4665 |
| |
4667 | 4666 |
| |
| |||
4716 | 4715 |
| |
4717 | 4716 |
| |
4718 | 4717 |
| |
4719 |
| - | |
| 4718 | + | |
4720 | 4719 |
| |
4721 | 4720 |
| |
4722 | 4721 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
136 |
| - | |
| 136 | + | |
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
| 169 | + | |
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 |
| - | |
| 203 | + | |
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| |||
276 | 276 |
| |
277 | 277 |
| |
278 | 278 |
| |
279 |
| - | |
| 279 | + | |
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
| |||
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
296 |
| - | |
| 296 | + | |
297 | 297 |
| |
298 | 298 |
| |
299 | 299 |
| |
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 |
| - | |
| 315 | + | |
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
|
0 commit comments
Comments
(0)