Re: message string fixes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: message string fixes
Дата
Msg-id 14842.1200871675@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: message string fixes  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: message string fixes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Teodor Sigaev wrote:
>> Hmm. If regis detects an error in expression then it will be an error for 
>> regex library too. At least, it was supposed to be.

> And those that are not, probably are not what the user intends anyway,
> with the pattern language being so narrow.

It looks to me like RS_isRegis() needs to be tightened up a bit anyway:
it will accept "^foo" which is valid regex but not valid regis, leading
to an error being thrown which is not what we want.

If we tighten it to exactly match what RS_compile() will take ... say
by using the same state-machine logic ... then indeed the ereports
are internal and can be demoted to elog's.  If we make them elogs then
ISTM they ought to keep saying regis, just so we know where to look
if they ever do fail ;-)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Minor bug in src/port/rint.c
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [GENERAL] setof record "out" syntax and returning records