pgsql: Fix RS_isRegis() to agree exactly with RS_compile()'s idea of

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix RS_isRegis() to agree exactly with RS_compile()'s idea of
Date: 2008-01-21 02:46:11
Message-ID: 20080121024611.2635E754108@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/tsearch:
regis.c (r1.3 -> r1.4)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/regis.c?r1=1.3&r2=1.4)
spell.c (r1.10 -> r1.11)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/spell.c?r1=1.10&r2=1.11)
pgsql/src/include/tsearch/dicts:
regis.h (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/tsearch/dicts/regis.h?r1=1.4&r2=1.5)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-01-21 03:28:42 pgsql: Improve description of bgwriter_lru_multiplier, per discussion.
Previous Message User H-saito 2008-01-21 02:27:17 psqlodbc - psqlodbc: Compile of SSPI cannot be supported in VC+6.