forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit003c68a
committed
Rename rbtree.c functions to use "rbt" prefix not "rb" prefix.
The "rb" prefix is used by Ruby, so that our existing code resultsin name collisions that break plruby. We discussed ways to preventthat by adjusting dynamic linker options, but it seems that at bestwe'd move the pain to other cases. Renaming to avoid the collisionis the only portable fix anyway. Fortunately, our rbtree code isnot (yet?) widely used --- in core, there's only a single usagein GIN --- so it seems likely that we can get away with a rename.I chose to do this basically as s/rb/rbt/g, except for places wherethere already was a "t" after "rb". The patch could have been madesmaller by only touching linker-visible symbols, but it would haveresulted in oddly inconsistent-looking code. Better to make it looklike "rbt" was the plan all along.Back-patch to v10. The rbtree.c code exists back to 9.5, butrb_iterate() which is the actual immediate source of pain was addedin v10, so it seems like changing the names before that would havemore risk than benefit.Per report from Pavel Raiskup.Discussion:https://postgr.es/m/4738198.8KVIIDhgEB@nb.usersys.redhat.com1 parent8f623be commit003c68a
File tree
5 files changed
+267
-264
lines changed- src
- backend
- access/gin
- lib
- include
- access
- lib
- test/modules/test_rbtree
5 files changed
+267
-264
lines changedLines changed: 16 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
167 |
| - | |
| 166 | + | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| |||
256 | 256 |
| |
257 | 257 |
| |
258 | 258 |
| |
259 |
| - | |
| 259 | + | |
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| |||
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
275 |
| - | |
| 275 | + | |
276 | 276 |
| |
277 | 277 |
| |
278 | 278 |
| |
|
0 commit comments
Comments
(0)