Search Postgresql Archives

Re: Quering by Regular Expressions stored in table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allen Fair <dba@xxxxxxxxxxx> writes:
> Hi! I have a table with a character column (called match_regex) 
> containing a POSIX regular expression, hoping to have Postgres use it 
> while evaluating the "where" predicate. The following error occurs:

> SELECT *
> from patterns
> where 'blah blah blah' ~ match_regex;

> ERROR:  invalid regular expression: quantifier operand invalid

This means there's at least one value in the column that's not a legal
regex (* at the front is one possible cause, IIRC).

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux