forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9807c82
committed
Fix citext upgrade script for disallowance of oidvector element assignment.
In commit45e02e3, we intentionallydisallowed updates on individual elements of oidvector columns. While thatstill seems like a sane idea in the abstract, we (I) forgot that citext's"upgrade from unpackaged" script did in fact perform exactly such updates,in order to fix the problem that citext indexes should have a collationbut would not in databases dumped or upgraded from pre-9.1 installations.Even if we wanted to add casts to allow such updates, there's no practicalway to do so in the back branches, so the only real alternative is to makecitext's kluge even klugier. In this patch, I cast the oidvector to text,fix its contents with regexp_replace, and cast back to oidvector. (Ugh!)Since the aforementioned commit went into all active branches, we have tofix this in all branches that contain the now-broken update script.Per report from Eric Malm.1 parent0aa09c9 commit9807c82
1 file changed
+20
-8
lines changedLines changed: 20 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
109 | 114 |
| |
110 | 115 |
| |
111 | 116 |
| |
| |||
115 | 120 |
| |
116 | 121 |
| |
117 | 122 |
| |
118 |
| - | |
| 123 | + | |
| 124 | + | |
119 | 125 |
| |
120 | 126 |
| |
121 | 127 |
| |
| |||
125 | 131 |
| |
126 | 132 |
| |
127 | 133 |
| |
128 |
| - | |
| 134 | + | |
| 135 | + | |
129 | 136 |
| |
130 | 137 |
| |
131 | 138 |
| |
| |||
135 | 142 |
| |
136 | 143 |
| |
137 | 144 |
| |
138 |
| - | |
| 145 | + | |
| 146 | + | |
139 | 147 |
| |
140 | 148 |
| |
141 | 149 |
| |
| |||
145 | 153 |
| |
146 | 154 |
| |
147 | 155 |
| |
148 |
| - | |
| 156 | + | |
| 157 | + | |
149 | 158 |
| |
150 | 159 |
| |
151 | 160 |
| |
| |||
155 | 164 |
| |
156 | 165 |
| |
157 | 166 |
| |
158 |
| - | |
| 167 | + | |
| 168 | + | |
159 | 169 |
| |
160 | 170 |
| |
161 | 171 |
| |
| |||
165 | 175 |
| |
166 | 176 |
| |
167 | 177 |
| |
168 |
| - | |
| 178 | + | |
| 179 | + | |
169 | 180 |
| |
170 | 181 |
| |
171 | 182 |
| |
| |||
175 | 186 |
| |
176 | 187 |
| |
177 | 188 |
| |
178 |
| - | |
| 189 | + | |
| 190 | + | |
179 | 191 |
| |
180 | 192 |
| |
181 | 193 |
| |
|
0 commit comments
Comments
(0)