Re: tsearch2 patch status report - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: tsearch2 patch status report
Date
Msg-id 46CB1B64.10205@enterprisedb.com
Whole thread Raw
In response to Re: tsearch2 patch status report  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
>> The memory management of the init functions looks weird. In spell.c,
>> there's this piece of code:
> 
> I saw that and didn't care for it much, but didn't look into exactly
> what would be needed to get rid of it.  (I did clean up another place
> that had a *global* magic context pointer ... that looked like trouble
> waiting to happen.)  If you make the outside caller create the context,
> does it need to be passed explicitly or can it just be
> CurrentMemoryContext when they are called?

I believe CurrentMemoryContext would work just fine. I'll put together a
patch.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: tsearch2 patch status report
Next
From: "Pavel Stehule"
Date:
Subject: Re: A couple of tsearch loose ends