pgsql: Update tsearch regex memory management. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Update tsearch regex memory management.
Date
Msg-id E1pl5e7-0021kw-Q8@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4f51429dd7f194e36af32b557ecdce555b5ab51b

Modified Files
--------------
src/backend/tsearch/spell.c       | 34 +++++++---------------------------
src/include/tsearch/dicts/spell.h | 18 ++++++------------
2 files changed, 13 insertions(+), 39 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: TAP test for logical decoding on standby
Next
From: Stephen Frost
Date:
Subject: pgsql: Revert "Add support for Kerberos credential delegation"