forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c83a3b
committed
process startup: Split single user code out of PostgresMain().
It was harder than necessary to understand PostgresMain() because the code fora normal backend was interspersed with single-user mode specific code. Splitmost of the single-user mode code into its own functionPostgresSingleUserMain(), that does all the necessary setup for single-usermode, and then hands off after that to PostgresMain().There still is some single-user mode code in InitPostgres(), and it'd likelybe worth moving at least some of it out. But that's for later.Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Author: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de1 parent499c9b1 commit7c83a3b
File tree
4 files changed
+90
-80
lines changed- src
- backend
- main
- postmaster
- tcop
- include/tcop
4 files changed
+90
-80
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
196 |
| - | |
197 |
| - | |
| 195 | + | |
| 196 | + | |
198 | 197 |
| |
199 | 198 |
| |
200 | 199 |
| |
|
Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4551 | 4551 |
| |
4552 | 4552 |
| |
4553 | 4553 |
| |
4554 |
| - | |
4555 |
| - | |
4556 |
| - | |
4557 |
| - | |
4558 |
| - | |
4559 |
| - | |
4560 | 4554 |
| |
4561 | 4555 |
| |
4562 | 4556 |
| |
4563 | 4557 |
| |
4564 | 4558 |
| |
4565 | 4559 |
| |
4566 |
| - | |
| 4560 | + | |
4567 | 4561 |
| |
4568 | 4562 |
| |
4569 | 4563 |
| |
|
Lines changed: 84 additions & 68 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3654 | 3654 |
| |
3655 | 3655 |
| |
3656 | 3656 |
| |
3657 |
| - | |
| 3657 | + | |
3658 | 3658 |
| |
3659 | 3659 |
| |
3660 | 3660 |
| |
| |||
3915 | 3915 |
| |
3916 | 3916 |
| |
3917 | 3917 |
| |
3918 |
| - | |
3919 |
| - | |
3920 |
| - | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
3921 | 3922 |
| |
3922 |
| - | |
3923 |
| - | |
3924 |
| - | |
3925 |
| - | |
3926 |
| - | |
3927 |
| - | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
3928 | 3926 |
| |
3929 | 3927 |
| |
3930 |
| - | |
3931 |
| - | |
3932 |
| - | |
| 3928 | + | |
| 3929 | + | |
3933 | 3930 |
| |
3934 |
| - | |
3935 |
| - | |
3936 |
| - | |
3937 |
| - | |
3938 |
| - | |
3939 |
| - | |
| 3931 | + | |
3940 | 3932 |
| |
3941 |
| - | |
3942 |
| - | |
3943 |
| - | |
| 3933 | + | |
3944 | 3934 |
| |
3945 |
| - | |
| 3935 | + | |
| 3936 | + | |
3946 | 3937 |
| |
3947 | 3938 |
| |
3948 | 3939 |
| |
3949 | 3940 |
| |
3950 |
| - | |
3951 |
| - | |
| 3941 | + | |
3952 | 3942 |
| |
3953 | 3943 |
| |
3954 | 3944 |
| |
| |||
3966 | 3956 |
| |
3967 | 3957 |
| |
3968 | 3958 |
| |
3969 |
| - | |
3970 |
| - | |
3971 |
| - | |
3972 |
| - | |
3973 |
| - | |
3974 |
| - | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
| 4005 | + | |
| 4006 | + | |
| 4007 | + | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
| 4025 | + | |
| 4026 | + | |
| 4027 | + | |
3975 | 4028 |
| |
3976 | 4029 |
| |
3977 | 4030 |
| |
| |||
4029 | 4082 |
| |
4030 | 4083 |
| |
4031 | 4084 |
| |
4032 |
| - | |
4033 |
| - | |
4034 |
| - | |
4035 |
| - | |
4036 |
| - | |
4037 |
| - | |
4038 |
| - | |
4039 |
| - | |
4040 |
| - | |
4041 |
| - | |
4042 |
| - | |
4043 |
| - | |
4044 |
| - | |
4045 |
| - | |
4046 |
| - | |
4047 |
| - | |
4048 |
| - | |
4049 |
| - | |
4050 |
| - | |
4051 |
| - | |
4052 |
| - | |
4053 |
| - | |
4054 |
| - | |
4055 |
| - | |
4056 |
| - | |
4057 |
| - | |
4058 |
| - | |
4059 |
| - | |
4060 |
| - | |
4061 |
| - | |
4062 |
| - | |
4063 |
| - | |
4064 |
| - | |
4065 |
| - | |
4066 |
| - | |
4067 |
| - | |
4068 |
| - | |
4069 | 4085 |
| |
4070 | 4086 |
| |
4071 | 4087 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
|
0 commit comments
Comments
(0)