forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8e1f37c
committed
Rethink the generation rule for fmgroids.h macros.
Traditionally, the names of fmgroids.h macros for pg_proc OIDshave been constructed from the prosrc field. But sometimes thesame C function underlies multiple pg_proc entries, forcing usto make an arbitrary choice of which OID to reference; the otherentries are then not namable via fmgroids.h. Moreover, we couldnot have macros at all for pg_proc entries that aren't forC-coded functions.Instead, use the proname field, and append the proargtypes field(replacing inter-argument spaces with underscores) if proname isnot unique. Special-casing unique entries such as F_OIDEQ removesthe need to change a lot of code. Indeed, I can only find twoplaces in the tree that need to be adjusted; while this changesquite a few existing entries in fmgroids.h, few of them arereferenced from C code.With this patch, all entries in pg_proc.dat have macros in fmgroids.h.Discussion:https://postgr.es/m/472274.1604258384@sss.pgh.pa.us1 parentfd29975 commit8e1f37c
File tree
3 files changed
+28
-27
lines changed- src/backend
- optimizer/util
- utils
- adt
3 files changed
+28
-27
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
779 | 779 |
| |
780 | 780 |
| |
781 | 781 |
| |
782 |
| - | |
| 782 | + | |
783 | 783 |
| |
784 | 784 |
| |
785 | 785 |
| |
|
Lines changed: 26 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 | 72 |
| |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 | 73 |
| |
76 | 74 |
| |
77 | 75 |
| |
| 76 | + | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| 81 | + | |
81 | 82 |
| |
82 | 83 |
| |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 |
| |
84 | 88 |
| |
85 | 89 |
| |
| |||
122 | 126 |
| |
123 | 127 |
| |
124 | 128 |
| |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
| |||
186 | 187 |
| |
187 | 188 |
| |
188 | 189 |
| |
189 |
| - | |
| 190 | + | |
190 | 191 |
| |
191 | 192 |
| |
192 | 193 |
| |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
197 | 204 |
| |
198 | 205 |
| |
199 | 206 |
| |
| |||
206 | 213 |
| |
207 | 214 |
| |
208 | 215 |
| |
| 216 | + | |
| 217 | + | |
| 218 | + | |
209 | 219 |
| |
210 | 220 |
| |
211 | 221 |
| |
212 | 222 |
| |
213 | 223 |
| |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 | 224 |
| |
224 |
| - | |
| 225 | + | |
225 | 226 |
| |
226 | 227 |
| |
227 | 228 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10144 | 10144 |
| |
10145 | 10145 |
| |
10146 | 10146 |
| |
10147 |
| - | |
| 10147 | + | |
10148 | 10148 |
| |
10149 | 10149 |
| |
10150 | 10150 |
| |
|
0 commit comments
Comments
(0)