You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
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.