Fix RS_isRegis() to agree exactly with RS_compile()'s idea of what's a valid
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |