| 1 |
/* contrib/citext/citext--1.3--1.4.sql */ |
| 2 |
|
| 3 |
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
| 4 |
\echo Use "ALTER EXTENSION citext UPDATE TO '1.4'" to load this file. \quit |
| 5 |
|
| 6 |
CREATE FUNCTION regexp_match( citext, citext ) RETURNS TEXT[] AS $$ |
| 7 |
SELECT pg_catalog.regexp_match( $1::pg_catalog.text, $2::pg_catalog.text, 'i' ); |
| 8 |
$$ LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE; |
| 9 |
|
| 10 |
CREATE FUNCTION regexp_match( citext, citext, text ) RETURNS TEXT[] AS $$ |
| 11 |
SELECT pg_catalog.regexp_match( $1::pg_catalog.text, $2::pg_catalog.text, CASE WHEN pg_catalog.strpos($3, 'c') = 0 THEN $3 || 'i' ELSE $3 END ); |
| 12 |
$$ LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE; |