View Single Post

   
  #7 (permalink)  
Old 04-15-2008, 11:42 PM
Tom Lane
 
Posts: n/a
Default Re: message string fixes

Teodor Sigaev <teodor@sigaev.ru> 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 With Quote