Re: precompiling regular expressions in plpgsql - Mailing list pgsql-novice

From Tom Lane
Subject Re: precompiling regular expressions in plpgsql
Date
Msg-id 13643.1154379364@sss.pgh.pa.us
Whole thread Raw
In response to precompiling regular expressions in plpgsql  (Brian Hurt <bhurt@janestcapital.com>)
List pgsql-novice
Brian Hurt <bhurt@janestcapital.com> writes:
> Now, the strings that I'm using as the pattern as a regular expression
> really are constant, even if they don't look like it to postgres.  Is it
> possible to precompile these expressions (basically, build up the tables
> for the DFA engine ahead of time) in plpgsql?

This already happens internally --- you might need to increase the size
of the cache in src/backend/utils/adt/regexp.c ...

            regards, tom lane

pgsql-novice by date:

Previous
From: Brian Hurt
Date:
Subject: precompiling regular expressions in plpgsql
Next
From: Brian Hurt
Date:
Subject: GRANT role TO PUBLIC- not working?