-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use"ALTER EXTENSION citext UPDATE TO '1.1'"toload this file. \quit
/* First we have to remove them from the extension */ ALTER EXTENSION citext DROP FUNCTION regexp_matches( citext, citext ); ALTER EXTENSION citext DROP FUNCTION regexp_matches( citext, citext, text );
/* Then we can drop them */ DROP FUNCTION regexp_matches( citext, citext ); DROP FUNCTION regexp_matches( citext, citext, text );
/* Now redefine */ CREATE FUNCTION regexp_matches( citext, citext ) RETURNS SETOF TEXT[] AS $$ SELECT pg_catalog.regexp_matches( $1::pg_catalog.text, $2::pg_catalog.text, 'i' );
$$ LANGUAGE SQL IMMUTABLE STRICT ROWS 1;
CREATE FUNCTION regexp_matches( citext, citext, text ) RETURNS SETOF TEXT[] AS $$ SELECT pg_catalog.regexp_matches( $1::pg_catalog.text, $2::pg_catalog.text, CASEWHENpg_catalog.strpos($3, 'c') = 0THEN $3 || 'i'ELSE $3 END );
$$ LANGUAGE SQL IMMUTABLE STRICT ROWS 10;
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-08-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.