Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Jan 2008 02:46:11 +0000 (02:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Jan 2008 02:46:11 +0000 (02:46 +0000)
commit716e8b8374d7acd8831767918258727ecb099428
tree583ec41d15bf8bbf4b573bdc5d3a221061d34825
parentf7108ce06bb526ba336c194956b4ed924b317b7a
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.
src/backend/tsearch/regis.c
src/backend/tsearch/spell.c
src/include/tsearch/dicts/regis.h