forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitda952b4
committed
Rework lwlocknames.txt to become lwlocklist.h
This way, we can fold the list of lock names to occur inBuiltinTrancheNames instead of having its own separate array. Thissaves two lines of code in GetLWTrancheName and some space inBuiltinTrancheNames, as foreseen in commit74a7306, as well asremoving the need for a separate lwlocknames.c file.We still have to build lwlocknames.h using Perl code, which initially Iwanted to avoid, but it gives us the chance to cross-checkwait_event_names.txt.Discussion:https://postgr.es/m/202401231025.gbv4nnte5fmm@alvherre.pgsql1 parente5da0fe commitda952b4
File tree
12 files changed
+136
-125
lines changed- src
- backend
- storage/lmgr
- utils/activity
- include/storage
- tools/pginclude
12 files changed
+136
-125
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 |
| - | |
114 |
| - | |
| 113 | + | |
| 114 | + | |
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 | 1 |
| |
3 | 2 |
|
Lines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 | 21 |
| |
23 | 22 |
| |
24 | 23 |
| |
| |||
35 | 34 |
| |
36 | 35 |
| |
37 | 36 |
| |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
| 37 | + | |
43 | 38 |
| |
44 | 39 |
| |
45 | 40 |
| |
46 | 41 |
| |
47 | 42 |
| |
48 | 43 |
| |
49 | 44 |
| |
50 |
| - | |
| 45 | + |
Lines changed: 30 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 |
| - | |
25 | 23 |
| |
26 | 24 |
| |
27 |
| - | |
| 25 | + | |
28 | 26 |
| |
29 | 27 |
| |
30 |
| - | |
31 | 28 |
| |
32 |
| - | |
33 | 29 |
| |
34 | 30 |
| |
35 | 31 |
| |
36 |
| - | |
| 32 | + | |
37 | 33 |
| |
38 | 34 |
| |
39 | 35 |
| |
| |||
61 | 57 |
| |
62 | 58 |
| |
63 | 59 |
| |
64 |
| - | |
| 60 | + | |
65 | 61 |
| |
66 | 62 |
| |
| 63 | + | |
67 | 64 |
| |
68 |
| - | |
| 65 | + | |
69 | 66 |
| |
70 | 67 |
| |
71 | 68 |
| |
72 |
| - | |
73 |
| - | |
| 69 | + | |
| 70 | + | |
74 | 71 |
| |
75 | 72 |
| |
76 |
| - | |
77 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 |
| |
79 |
| - | |
| 85 | + | |
| 86 | + | |
80 | 87 |
| |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 88 | + | |
84 | 89 |
| |
85 |
| - | |
86 |
| - | |
| 90 | + | |
| 91 | + | |
87 | 92 |
| |
88 |
| - | |
| 93 | + | |
89 | 94 |
| |
90 | 95 |
| |
91 | 96 |
| |
92 | 97 |
| |
93 |
| - | |
| 98 | + | |
94 | 99 |
| |
95 | 100 |
| |
96 | 101 |
| |
97 | 102 |
| |
98 | 103 |
| |
99 | 104 |
| |
100 |
| - | |
101 | 105 |
| |
102 | 106 |
| |
103 |
| - | |
104 | 107 |
| |
105 | 108 |
| |
106 | 109 |
| |
107 |
| - | |
| 110 | + | |
108 | 111 |
| |
109 | 112 |
| |
110 | 113 |
| |
111 | 114 |
| |
112 |
| - | |
| 115 | + | |
113 | 116 |
| |
114 | 117 |
| |
115 |
| - | |
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
119 | 121 |
| |
120 |
| - | |
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
124 |
| - | |
125 | 125 |
| |
126 |
| - | |
| 126 | + |
Lines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
| 115 | + | |
| 116 | + | |
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| |||
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 |
| - | |
130 |
| - | |
131 | 129 |
| |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
| |||
742 | 743 |
| |
743 | 744 |
| |
744 | 745 |
| |
745 |
| - | |
746 |
| - | |
747 |
| - | |
748 |
| - | |
749 |
| - | |
| 746 | + | |
750 | 747 |
| |
751 | 748 |
| |
752 | 749 |
| |
|
Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - |
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
283 |
| - | |
| 283 | + | |
284 | 284 |
| |
285 |
| - | |
| 285 | + | |
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 |
| - | |
| 336 | + | |
337 | 337 |
| |
338 |
| - | |
| 338 | + | |
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
82 | 83 |
| |
83 | 84 |
| |
84 | 85 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 | 86 |
| |
89 | 87 |
| |
90 | 88 |
| |
|
0 commit comments
Comments
(0)