forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb8d7174
committed
Store table oid and tuple's tid in tuple slots directly.
After the introduction of tuple table slots all table AMs need tosupport returning the table oid of the tuple stored in a slot createdby said AM. It does not make sense to re-implement that in every AM,therefore move handling of table OIDs into the TupleTableSlotstructure itself. It's possible that we, at a later date, might wantto get rid of HeapTupleData.t_tableOid entirely, but doing so beforethe abstractions for table AMs are integrated turns out to be toohard, so delay that for now.Similarly, every AM needs to support the concept of a tupleidentifier (tid / item pointer) for its tuples. It's quite possiblethat we'll generalize the exact form of a tid at a future point (toallow for things like index organized tables), but for now many partsof the code know about tids, so there's not much point in abstractingtids away. Therefore also move into slot (rather than providing API toset/get the tid associated with the tuple in a slot).Once table AM includes insert/updating/deleting tuples, theresponsibility to set the correct tid after such an action will moveinto that. After that change, code doing such modifications, shouldnot have to deal with HeapTuples directly anymore.Author: Andres Freund, Haribabu Kommi and Ashutosh BapatDiscussion:https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de1 parent5408e23 commitb8d7174
File tree
7 files changed
+69
-44
lines changed- src
- backend
- commands
- executor
- include/executor
7 files changed
+69
-44
lines changedLines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2710 | 2710 |
| |
2711 | 2711 |
| |
2712 | 2712 |
| |
2713 |
| - | |
2714 |
| - | |
| 2713 | + | |
| 2714 | + | |
2715 | 2715 |
| |
2716 |
| - | |
| 2716 | + | |
2717 | 2717 |
| |
2718 | 2718 |
| |
2719 | 2719 |
| |
| |||
2899 | 2899 |
| |
2900 | 2900 |
| |
2901 | 2901 |
| |
2902 |
| - | |
| 2902 | + | |
2903 | 2903 |
| |
2904 | 2904 |
| |
2905 | 2905 |
| |
| |||
2995 | 2995 |
| |
2996 | 2996 |
| |
2997 | 2997 |
| |
2998 |
| - | |
2999 |
| - | |
| 2998 | + | |
| 2999 | + | |
3000 | 3000 |
| |
3001 |
| - | |
| 3001 | + | |
3002 | 3002 |
| |
3003 | 3003 |
| |
| 3004 | + | |
3004 | 3005 |
| |
3005 | 3006 |
| |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
3006 | 3010 |
| |
3007 | 3011 |
| |
3008 | 3012 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4860 | 4860 |
| |
4861 | 4861 |
| |
4862 | 4862 |
| |
| 4863 | + | |
4863 | 4864 |
| |
| 4865 | + | |
| 4866 | + | |
4864 | 4867 |
| |
4865 | 4868 |
| |
4866 | 4869 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
| 427 | + | |
427 | 428 |
| |
428 | 429 |
| |
429 | 430 |
| |
| |||
496 | 497 |
| |
497 | 498 |
| |
498 | 499 |
| |
| 500 | + | |
499 | 501 |
| |
500 | 502 |
| |
501 | 503 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
| 439 | + | |
439 | 440 |
| |
440 | 441 |
| |
441 | 442 |
| |
| |||
817 | 818 |
| |
818 | 819 |
| |
819 | 820 |
| |
| 821 | + | |
820 | 822 |
| |
821 | 823 |
| |
822 | 824 |
| |
| |||
1304 | 1306 |
| |
1305 | 1307 |
| |
1306 | 1308 |
| |
| 1309 | + | |
| 1310 | + | |
1307 | 1311 |
| |
1308 | 1312 |
| |
1309 | 1313 |
| |
| |||
1343 | 1347 |
| |
1344 | 1348 |
| |
1345 | 1349 |
| |
| 1350 | + | |
1346 | 1351 |
| |
1347 | 1352 |
| |
1348 | 1353 |
| |
| |||
1368 | 1373 |
| |
1369 | 1374 |
| |
1370 | 1375 |
| |
| 1376 | + | |
| 1377 | + | |
1371 | 1378 |
| |
1372 | 1379 |
| |
1373 | 1380 |
| |
|
Lines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
| 58 | + | |
| 59 | + | |
62 | 60 |
| |
63 | 61 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
| 62 | + | |
69 | 63 |
| |
70 | 64 |
| |
71 | 65 |
| |
|
Lines changed: 29 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 | 169 |
| |
182 | 170 |
| |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
183 | 178 |
| |
184 | 179 |
| |
185 | 180 |
| |
| |||
332 | 327 |
| |
333 | 328 |
| |
334 | 329 |
| |
335 |
| - | |
| 330 | + | |
| 331 | + | |
336 | 332 |
| |
337 |
| - | |
| 333 | + | |
| 334 | + | |
338 | 335 |
| |
339 | 336 |
| |
340 | 337 |
| |
341 | 338 |
| |
342 | 339 |
| |
343 | 340 |
| |
344 |
| - | |
345 |
| - | |
| 341 | + | |
| 342 | + | |
346 | 343 |
| |
347 |
| - | |
| 344 | + | |
348 | 345 |
| |
349 | 346 |
| |
350 | 347 |
| |
| |||
458 | 455 |
| |
459 | 456 |
| |
460 | 457 |
| |
| 458 | + | |
| 459 | + | |
461 | 460 |
| |
462 | 461 |
| |
463 | 462 |
| |
| |||
503 | 502 |
| |
504 | 503 |
| |
505 | 504 |
| |
| 505 | + | |
| 506 | + | |
506 | 507 |
| |
507 | 508 |
| |
508 | 509 |
| |
| |||
515 | 516 |
| |
516 | 517 |
| |
517 | 518 |
| |
518 |
| - | |
| 519 | + | |
519 | 520 |
| |
520 | 521 |
| |
521 | 522 |
| |
| |||
647 | 648 |
| |
648 | 649 |
| |
649 | 650 |
| |
650 |
| - | |
651 |
| - | |
652 | 651 |
| |
653 | 652 |
| |
654 | 653 |
| |
| |||
670 | 669 |
| |
671 | 670 |
| |
672 | 671 |
| |
673 |
| - | |
| 672 | + | |
674 | 673 |
| |
675 | 674 |
| |
676 | 675 |
| |
677 |
| - | |
678 |
| - | |
| 676 | + | |
679 | 677 |
| |
680 | 678 |
| |
681 | 679 |
| |
| |||
985 | 983 |
| |
986 | 984 |
| |
987 | 985 |
| |
988 |
| - | |
| 986 | + | |
| 987 | + | |
989 | 988 |
| |
990 |
| - | |
| 989 | + | |
991 | 990 |
| |
992 | 991 |
| |
993 | 992 |
| |
994 | 993 |
| |
995 | 994 |
| |
996 | 995 |
| |
997 | 996 |
| |
998 |
| - | |
999 |
| - | |
| 997 | + | |
| 998 | + | |
1000 | 999 |
| |
1001 |
| - | |
| 1000 | + | |
1002 | 1001 |
| |
1003 | 1002 |
| |
1004 | 1003 |
| |
| |||
1184 | 1183 |
| |
1185 | 1184 |
| |
1186 | 1185 |
| |
| 1186 | + | |
| 1187 | + | |
1187 | 1188 |
| |
1188 | 1189 |
| |
1189 | 1190 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
| |||
126 | 127 |
| |
127 | 128 |
| |
128 | 129 |
| |
| 130 | + | |
| 131 | + | |
129 | 132 |
| |
130 | 133 |
| |
131 | 134 |
| |
| |||
398 | 401 |
| |
399 | 402 |
| |
400 | 403 |
| |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
401 | 415 |
| |
402 | 416 |
| |
403 | 417 |
| |
|
0 commit comments
Comments
(0)