Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 716e8b8374d7acd8831767918258727ecb099428
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-01-21T02:46:11Z
Releases: 8.3.0
Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid
regis.  Correct the latter's oversight that a bracket-expression needs to be
terminated.  Reduce the ereports to elogs, since they are now not expected to
ever be hit (thus addressing Alvaro's original complaint).
In passing, const-ify the string argument to RS_compile.

Files

PathChange+/−
src/backend/tsearch/regis.c modified +57 −31
src/backend/tsearch/spell.c modified +2 −2
src/include/tsearch/dicts/regis.h modified +2 −2