pgsql: Update tsearch regex memory management.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Update tsearch regex memory management.
Date: 2023-04-08 10:18:13
Message-ID: E1pl5e7-0021kw-Q8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2023-04-08 11:24:10 pgsql: Revert "Add support for Kerberos credential delegation"
Previous Message Andres Freund 2023-04-08 09:26:51 pgsql: TAP test for logical decoding on standby