forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb0a55e4
committed
Change internal RelFileNode references to RelFileNumber or RelFileLocator.
We have been using the term RelFileNode to refer to either (1) theinteger that is used to name the sequence of files for a certain relationwithin the directory set aside for that tablespace/database combination;or (2) that value plus the OIDs of the tablespace and database; oroccasionally (3) the whole series of files created for a relationbased on those values. Using the same name for more than one thing isconfusing.Replace RelFileNode with RelFileNumber when we're talking about just thesingle number, i.e. (1) from above, and with RelFileLocator when we'retalking about all the things that are needed to locate a relation's fileson disk, i.e. (2) from above. In the places where we refer to (3) asa relfilenode, instead refer to "relation storage".Since there is a ton of SQL code in the world that knows aboutpg_class.relfilenode, don't change the name of that column, or of otherSQL-facing things that derive their name from it.On the other hand, do adjust closely-related internal terminology. Forexample, the structure member names dbNode and spcNode appear to bederived from the fact that the structure itself was called RelFileNode,so change those to dbOid and spcOid. Likewise, various variables withnames like rnode and relnode get renamed appropriately, according tohow they're being used in context.Hopefully, this is clearer than before. It is also preparation forfuture patches that intend to widen the relfilenumber fields from itscurrent width of 32 bits. Variables that store a relfilenumber are nowdeclared as type RelFileNumber rather than type Oid; right now, theseare the same, but that can now more easily be changed.Dilip Kumar, per an idea from me. Reviewed also by Andres Freund.I fixed some whitespace issues, changed a couple of words in acomment, and made one other minor correction.Discussion:http://postgr.es/m/CA+TgmoamOtXbVAQf9hWFzonUo6bhhjS6toZQd7HZ-pmojtAmag@mail.gmail.comDiscussion:http://postgr.es/m/CA+Tgmobp7+7kmi4gkq7Y+4AM9fTvL+O1oQ4-5gFTT+6Ng-dQ=g@mail.gmail.comDiscussion:http://postgr.es/m/CAFiTN-vTe79M8uDH1yprOU64MNFE+R3ODRuA+JWf27JbhY4hJw@mail.gmail.com1 parent7775c74 commitb0a55e4
File tree
138 files changed
+1640
-1606
lines changed- contrib
- bloom
- oid2name
- pg_buffercache
- pg_prewarm
- pg_visibility
- src
- backend
- access
- common
- gin
- gist
- hash
- heap
- nbtree
- rmgrdesc
- spgist
- table
- transam
- bootstrap
- catalog
- commands
- nodes
- parser
- postmaster
- replication/logical
- storage
- buffer
- freespace
- ipc
- lmgr
- smgr
- utils
- adt
- cache
- bin
- pg_dump
- pg_rewind
- pg_upgrade
- pg_waldump
- common
- include
- access
- catalog
- commands
- common
- nodes
- postmaster
- replication
- storage
- utils
- test/recovery/t
- tools/pgindent
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
138 files changed
+1640
-1606
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
|
Lines changed: 15 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
129 | 129 |
| |
130 |
| - | |
| 130 | + | |
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
| |||
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
497 |
| - | |
| 497 | + | |
498 | 498 |
| |
499 | 499 |
| |
500 | 500 |
| |
| |||
504 | 504 |
| |
505 | 505 |
| |
506 | 506 |
| |
507 |
| - | |
| 507 | + | |
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
512 |
| - | |
| 512 | + | |
513 | 513 |
| |
514 | 514 |
| |
515 |
| - | |
| 515 | + | |
516 | 516 |
| |
517 | 517 |
| |
518 | 518 |
| |
519 |
| - | |
| 519 | + | |
520 | 520 |
| |
521 | 521 |
| |
522 | 522 |
| |
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
527 |
| - | |
| 527 | + | |
528 | 528 |
| |
529 | 529 |
| |
530 | 530 |
| |
531 |
| - | |
| 531 | + | |
| 532 | + | |
532 | 533 |
| |
533 | 534 |
| |
534 | 535 |
| |
| |||
539 | 540 |
| |
540 | 541 |
| |
541 | 542 |
| |
542 |
| - | |
| 543 | + | |
543 | 544 |
| |
544 | 545 |
| |
545 | 546 |
| |
| |||
588 | 589 |
| |
589 | 590 |
| |
590 | 591 |
| |
591 |
| - | |
| 592 | + | |
592 | 593 |
| |
593 | 594 |
| |
594 | 595 |
| |
595 |
| - | |
| 596 | + | |
596 | 597 |
| |
597 | 598 |
| |
598 | 599 |
| |
| |||
618 | 619 |
| |
619 | 620 |
| |
620 | 621 |
| |
621 |
| - | |
| 622 | + | |
622 | 623 |
| |
623 | 624 |
| |
624 | 625 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
| 212 | + | |
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
|
Lines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
| 65 | + | |
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
350 |
| - | |
| 350 | + | |
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
| |||
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
497 |
| - | |
| 497 | + | |
498 | 498 |
| |
499 | 499 |
| |
500 | 500 |
| |
| |||
506 | 506 |
| |
507 | 507 |
| |
508 | 508 |
| |
509 |
| - | |
| 509 | + | |
510 | 510 |
| |
511 | 511 |
| |
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
515 |
| - | |
| 515 | + | |
516 | 516 |
| |
517 | 517 |
| |
518 | 518 |
| |
| |||
527 | 527 |
| |
528 | 528 |
| |
529 | 529 |
| |
530 |
| - | |
| 530 | + | |
531 | 531 |
| |
532 | 532 |
| |
533 | 533 |
| |
| |||
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
634 |
| - | |
635 |
| - | |
636 |
| - | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
637 | 637 |
| |
638 | 638 |
| |
639 | 639 |
| |
| |||
671 | 671 |
| |
672 | 672 |
| |
673 | 673 |
| |
674 |
| - | |
| 674 | + | |
675 | 675 |
| |
676 | 676 |
| |
677 | 677 |
| |
| |||
900 | 900 |
| |
901 | 901 |
| |
902 | 902 |
| |
903 |
| - | |
| 903 | + | |
904 | 904 |
| |
905 | 905 |
| |
906 | 906 |
| |
| |||
911 | 911 |
| |
912 | 912 |
| |
913 | 913 |
| |
914 |
| - | |
| 914 | + | |
915 | 915 |
| |
916 | 916 |
| |
917 | 917 |
| |
|
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: 15 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 |
| - | |
| 118 | + | |
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
| |||
159 | 159 |
| |
160 | 160 |
| |
161 | 161 |
| |
162 |
| - | |
163 |
| - | |
164 |
| - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
| 179 | + | |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
191 |
| - | |
| 191 | + | |
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
| 201 | + | |
201 | 202 |
| |
202 | 203 |
| |
203 | 204 |
| |
| |||
207 | 208 |
| |
208 | 209 |
| |
209 | 210 |
| |
210 |
| - | |
| 211 | + | |
211 | 212 |
| |
212 | 213 |
| |
213 | 214 |
| |
| |||
255 | 256 |
| |
256 | 257 |
| |
257 | 258 |
| |
258 |
| - | |
| 259 | + | |
259 | 260 |
| |
260 | 261 |
| |
261 | 262 |
| |
| |||
281 | 282 |
| |
282 | 283 |
| |
283 | 284 |
| |
284 |
| - | |
285 |
| - | |
| 285 | + | |
| 286 | + | |
286 | 287 |
| |
287 | 288 |
| |
288 | 289 |
| |
| |||
309 | 310 |
| |
310 | 311 |
| |
311 | 312 |
| |
312 |
| - | |
| 313 | + | |
313 | 314 |
| |
314 | 315 |
| |
315 | 316 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
470 | 470 |
| |
471 | 471 |
| |
472 | 472 |
| |
473 |
| - | |
| 473 | + | |
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
238 |
| - | |
| 238 | + | |
239 | 239 |
| |
240 | 240 |
| |
241 | 241 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
688 | 688 |
| |
689 | 689 |
| |
690 | 690 |
| |
691 |
| - | |
| 691 | + | |
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 |
| - | |
| 102 | + | |
103 | 103 |
| |
104 |
| - | |
| 104 | + | |
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
|
0 commit comments
Comments
(0)