| 1 |
/* contrib/citext/citext--1.1--1.2.sql */ |
| 2 |
|
| 3 |
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
| 4 |
\echo Use "ALTER EXTENSION citext UPDATE TO '1.2'" to load this file. \quit |
| 5 |
|
| 6 |
ALTER FUNCTION citextin(cstring) PARALLEL SAFE; |
| 7 |
ALTER FUNCTION citextout(citext) PARALLEL SAFE; |
| 8 |
ALTER FUNCTION citextrecv(internal) PARALLEL SAFE; |
| 9 |
ALTER FUNCTION citextsend(citext) PARALLEL SAFE; |
| 10 |
ALTER FUNCTION citext(bpchar) PARALLEL SAFE; |
| 11 |
ALTER FUNCTION citext(boolean) PARALLEL SAFE; |
| 12 |
ALTER FUNCTION citext(inet) PARALLEL SAFE; |
| 13 |
ALTER FUNCTION citext_eq(citext, citext) PARALLEL SAFE; |
| 14 |
ALTER FUNCTION citext_ne(citext, citext) PARALLEL SAFE; |
| 15 |
ALTER FUNCTION citext_lt(citext, citext) PARALLEL SAFE; |
| 16 |
ALTER FUNCTION citext_le(citext, citext) PARALLEL SAFE; |
| 17 |
ALTER FUNCTION citext_gt(citext, citext) PARALLEL SAFE; |
| 18 |
ALTER FUNCTION citext_ge(citext, citext) PARALLEL SAFE; |
| 19 |
ALTER FUNCTION citext_cmp(citext, citext) PARALLEL SAFE; |
| 20 |
ALTER FUNCTION citext_hash(citext) PARALLEL SAFE; |
| 21 |
ALTER FUNCTION citext_smaller(citext, citext) PARALLEL SAFE; |
| 22 |
ALTER FUNCTION citext_larger(citext, citext) PARALLEL SAFE; |
| 23 |
ALTER FUNCTION texticlike(citext, citext) PARALLEL SAFE; |
| 24 |
ALTER FUNCTION texticnlike(citext, citext) PARALLEL SAFE; |
| 25 |
ALTER FUNCTION texticregexeq(citext, citext) PARALLEL SAFE; |
| 26 |
ALTER FUNCTION texticregexne(citext, citext) PARALLEL SAFE; |
| 27 |
ALTER FUNCTION texticlike(citext, text) PARALLEL SAFE; |
| 28 |
ALTER FUNCTION texticnlike(citext, text) PARALLEL SAFE; |
| 29 |
ALTER FUNCTION texticregexeq(citext, text) PARALLEL SAFE; |
| 30 |
ALTER FUNCTION texticregexne(citext, text) PARALLEL SAFE; |
| 31 |
ALTER FUNCTION regexp_matches(citext, citext) PARALLEL SAFE; |
| 32 |
ALTER FUNCTION regexp_matches(citext, citext, text) PARALLEL SAFE; |
| 33 |
ALTER FUNCTION regexp_replace(citext, citext, text) PARALLEL SAFE; |
| 34 |
ALTER FUNCTION regexp_replace(citext, citext, text, text) PARALLEL SAFE; |
| 35 |
ALTER FUNCTION regexp_split_to_array(citext, citext) PARALLEL SAFE; |
| 36 |
ALTER FUNCTION regexp_split_to_array(citext, citext, text) PARALLEL SAFE; |
| 37 |
ALTER FUNCTION regexp_split_to_table(citext, citext) PARALLEL SAFE; |
| 38 |
ALTER FUNCTION regexp_split_to_table(citext, citext, text) PARALLEL SAFE; |
| 39 |
ALTER FUNCTION strpos(citext, citext) PARALLEL SAFE; |
| 40 |
ALTER FUNCTION replace(citext, citext, citext) PARALLEL SAFE; |
| 41 |
ALTER FUNCTION split_part(citext, citext, int) PARALLEL SAFE; |
| 42 |
ALTER FUNCTION translate(citext, citext, text) PARALLEL SAFE; |
| 43 |
|
| 44 |
-- We have to update aggregates the hard way for lack of ALTER support |
| 45 |
DO LANGUAGE plpgsql |
| 46 |
$$ |
| 47 |
DECLARE |
| 48 |
my_schema pg_catalog.text := pg_catalog.quote_ident(pg_catalog.current_schema()); |
| 49 |
old_path pg_catalog.text := pg_catalog.current_setting('search_path'); |
| 50 |
BEGIN |
| 51 |
-- for safety, transiently set search_path to just pg_catalog+pg_temp |
| 52 |
PERFORM pg_catalog.set_config('search_path', 'pg_catalog, pg_temp', true); |
| 53 |
|
| 54 |
UPDATE pg_proc SET proparallel = 's' |
| 55 |
WHERE oid = (my_schema || '.min(' || my_schema || '.citext)')::pg_catalog.regprocedure; |
| 56 |
|
| 57 |
UPDATE pg_proc SET proparallel = 's' |
| 58 |
WHERE oid = (my_schema || '.max(' || my_schema || '.citext)')::pg_catalog.regprocedure; |
| 59 |
|
| 60 |
UPDATE pg_aggregate SET aggcombinefn = (my_schema || '.citext_smaller')::regproc |
| 61 |
WHERE aggfnoid = (my_schema || '.max(' || my_schema || '.citext)')::pg_catalog.regprocedure; |
| 62 |
|
| 63 |
UPDATE pg_aggregate SET aggcombinefn = (my_schema || '.citext_larger')::regproc |
| 64 |
WHERE aggfnoid = (my_schema || '.max(' || my_schema || '.citext)')::pg_catalog.regprocedure; |
| 65 |
|
| 66 |
PERFORM pg_catalog.set_config('search_path', old_path, true); |
| 67 |
END |
| 68 |
$$; |