postgresql/contrib/citext
Tom Lane 7f7eec89b6 Fix citext upgrade script for disallowance of oidvector element assignment.
In commit 45e02e3232, we intentionally
disallowed updates on individual elements of oidvector columns.  While that
still 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 collation
but 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 practical
way to do so in the back branches, so the only real alternative is to make
citext'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 to
fix this in all branches that contain the now-broken update script.

Per report from Eric Malm.
2014-08-28 18:21:05 -04:00
..
expected Remove dependency on database encoding in citext regression test. 2014-02-27 14:58:47 -05:00
sql Remove dependency on database encoding in citext regression test. 2014-02-27 14:58:47 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00
citext--1.0.sql Don't quote language name 2011-11-17 18:27:54 -03:00
citext--unpackaged--1.0.sql Fix citext upgrade script for disallowance of oidvector element assignment. 2014-08-28 18:21:05 -04:00
citext.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
citext.control Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00