Update tsearch regex memory management.
authorThomas Munro <tmunro@postgresql.org>
Sat, 8 Apr 2023 09:54:45 +0000 (21:54 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 8 Apr 2023 10:09:17 +0000 (22:09 +1200)
commit4f51429dd7f194e36af32b557ecdce555b5ab51b
tree9c943ba73757fe45411d798fc1a87061e2211d0b
parentbea3d7e3831fa6a1395eadbad7d97cebc7aa8aee
Update tsearch regex memory management.

Now that our regex engine uses palloc(), it's not necessary to set up a
special memory context callback to free compiled regexes.  The regex has
no resources other than the memory that is already going to be freed in
bulk.

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