Commit 024c521
committed
Replace BackendIds with 0-based ProcNumbers
Now that BackendId was just another index into the proc array, it was
redundant with the 0-based proc numbers used in other places. Replace
all usage of backend IDs with proc numbers.
The only place where the term "backend id" remains is in a few pgstat
functions that expose backend IDs at the SQL level. Those IDs are now
in fact 0-based ProcNumbers too, but the documentation still calls
them "backend ids". That term still seems appropriate to describe what
the numbers are, so I let it be.
One user-visible effect is that pg_temp_0 is now a valid temp schema
name, for backend with ProcNumber 0.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/8171f1aa-496f-46a6-afc3-c46fe7a9b407@iki.fi1 parent ab355e3 commit 024c521
File tree
71 files changed
+571
-579
lines changed- doc/src/sgml
- src
- backend
- access/transam
- backup
- catalog
- commands
- libpq
- postmaster
- replication
- logical
- storage
- buffer
- ipc
- lmgr
- smgr
- utils
- activity
- adt
- cache
- error
- init
- time
- common
- include
- access
- catalog
- common
- libpq
- postmaster
- storage
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
71 files changed
+571
-579
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7495 | 7495 | | |
7496 | 7496 | | |
7497 | 7497 | | |
7498 | | - | |
| 7498 | + | |
7499 | 7499 | | |
7500 | 7500 | | |
7501 | 7501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4940 | 4940 | | |
4941 | 4941 | | |
4942 | 4942 | | |
4943 | | - | |
| 4943 | + | |
4944 | 4944 | | |
4945 | 4945 | | |
4946 | 4946 | | |
| |||
6813 | 6813 | | |
6814 | 6814 | | |
6815 | 6815 | | |
6816 | | - | |
| 6816 | + | |
6817 | 6817 | | |
6818 | 6818 | | |
6819 | 6819 | | |
| |||
6824 | 6824 | | |
6825 | 6825 | | |
6826 | 6826 | | |
6827 | | - | |
| 6827 | + | |
6828 | 6828 | | |
6829 | 6829 | | |
6830 | 6830 | | |
| |||
6839 | 6839 | | |
6840 | 6840 | | |
6841 | 6841 | | |
6842 | | - | |
| 6842 | + | |
6843 | 6843 | | |
6844 | 6844 | | |
6845 | 6845 | | |
| |||
6850 | 6850 | | |
6851 | 6851 | | |
6852 | 6852 | | |
6853 | | - | |
| 6853 | + | |
6854 | 6854 | | |
6855 | 6855 | | |
6856 | 6856 | | |
| |||
6903 | 6903 | | |
6904 | 6904 | | |
6905 | 6905 | | |
6906 | | - | |
| 6906 | + | |
6907 | 6907 | | |
6908 | 6908 | | |
6909 | 6909 | | |
| |||
6913 | 6913 | | |
6914 | 6914 | | |
6915 | 6915 | | |
6916 | | - | |
| 6916 | + | |
6917 | 6917 | | |
6918 | 6918 | | |
6919 | 6919 | | |
| |||
6925 | 6925 | | |
6926 | 6926 | | |
6927 | 6927 | | |
6928 | | - | |
| 6928 | + | |
6929 | 6929 | | |
6930 | 6930 | | |
6931 | 6931 | | |
| |||
6935 | 6935 | | |
6936 | 6936 | | |
6937 | 6937 | | |
6938 | | - | |
| 6938 | + | |
6939 | 6939 | | |
6940 | 6940 | | |
6941 | 6941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
| 641 | + | |
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| |||
0 commit comments