forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a00c9a
committed
Remove useless code that propagated FrontendProtocol to a backend via a
PostgresMain switch. In point of fact, FrontendProtocol is already setin a backend process, since ProcessStartupPacket() is executed insidethe backend --- it hasn't been run by the postmaster for many years.And if it were, we'd still certainly want FrontendProtocol to be set beforewe get as far as PostgresMain, so that startup errors get reported in theright protocol.-v might have some future use in standalone backends, so I didn't go sofar as to remove the switch outright.Also, initialize FrontendProtocol to 0 not PG_PROTOCOL_LATEST. The onlylikely result of presetting it like that is to mask failure-to-set-itmistakes.1 parentc66d9ce commit0a00c9a
File tree
3 files changed
+11
-9
lines changed- src/backend
- postmaster
- tcop
- utils/init
3 files changed
+11
-9
lines changedLines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
3353 | 3353 |
| |
3354 | 3354 |
| |
3355 | 3355 |
| |
3356 |
| - | |
3357 | 3356 |
| |
3358 | 3357 |
| |
3359 | 3358 |
| |
| |||
3397 | 3396 |
| |
3398 | 3397 |
| |
3399 | 3398 |
| |
3400 |
| - | |
3401 |
| - | |
3402 |
| - | |
3403 |
| - | |
3404 | 3399 |
| |
3405 | 3400 |
| |
3406 | 3401 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
3075 | 3075 |
| |
3076 | 3076 |
| |
3077 | 3077 |
| |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
3078 | 3085 |
| |
3079 | 3086 |
| |
3080 | 3087 |
| |
|
Lines changed: 2 additions & 2 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 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
|
0 commit comments
Comments
(0)