Re: regex cache

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: regex cache
Date: 2008-06-18 21:50:54
Message-ID: 8235.1213825854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
>> Having said that, I'm not sure it'd help your problem. If your query is
>> using more than 32 regexes concurrently, it likely is using $BIGNUM
>> regexes concurrently. How do we fix that?

> Hmmm. I think there's a lot of ground between 32 and $BIGNUM. For example,
> where I'm hitting a wall is 300 regexes. Some quick testing on my opteron
> text machine right now shows that the execution time difference between 20rx
> and 50rx is around 20x.

Hmm. Well, I still don't want to tie it to work_mem; how do you feel
about a new GUC to determine the max number of cached REs?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2008-06-18 21:54:00 Re: regex cache
Previous Message Josh Berkus 2008-06-18 18:09:19 Re: Postgres + Window manager