Re: Compiling C++ extensions on MSVC using scripts in src/tools

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Compiling C++ extensions on MSVC using scripts in src/tools
Дата
Msg-id CAB7nPqRNSqGzsDiMR9YCCErBUQHLFQYVJvEwHqJwvSqRyPS7GQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compiling C++ extensions on MSVC using scripts in src/tools  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Compiling C++ extensions on MSVC using scripts in src/tools  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
On Thu, Nov 27, 2014 at 1:40 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> This doesn't seem to me to be terribly well expressed (I know it's not your fault, quite possibly it's mine.)
Perhapswe should replace 
>>     [r]?[cyl](pp)?
>> with
>>     (c|cpp|y|l|rc)
>
> +1 ... the original coding is illegible already, not to mention wrong
> since it will match stuff it shouldn't.
Yes even the older code could find matches with ry or rl. Except that,
lpp and ypp could be present as well. OK, there are low chances to be
present in a Postgres extension (I don't have such extensions myself),
still they could. So I think that this expression should be written
like that instead:
(c|cpp|l|lpp|y|ypp|rc).
Updated patch is attached.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Proposal : REINDEX SCHEMA
Следующее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: What exactly is our CRC algorithm?