Update contrib/trgm_regexp's memory management.

Thomas Munro <tmunro@postgresql.org>

Commit: 6db75edb2ecbc9f6912f90b671b01ab4ac3a01b0
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2023-04-08T10:09:17Z
Releases: 16.0
Update contrib/trgm_regexp's memory management.

While no code change was necessary for this code to keep working, we
don't need to use PG_TRY()/PG_FINALLY() with explicit clean-up while
working with regexes anymore.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CA%2BhUKGK3PGKwcKqzoosamn36YW-fsuTdOPPF1i_rtEO%3DnEYKSg%40mail.gmail.com

Files

PathChange+/−
contrib/pg_trgm/trgm_regexp.c modified +2 −15

Discussion