Teodor Sigaev <[EMAIL PROTECTED]> writes:
> There is a  fallback to regex if expression isn't supported by regis (see 
> call 
> of RS_isRegis() in spell.c).

Oh.  So in that case, the messages Alvaro is worried about

                ereport(ERROR,
                        (errcode(ERRCODE_INVALID_REGULAR_EXPRESSION),
                         errmsg("invalid regis pattern: \"%s\"",
                                str)));

aren't user-facing errors at all, and should be demoted to elog's,
correct?

                elog(ERROR, "invalid regis pattern: \"%s\"", str);


                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to