Re: [PATCH] pgbench tap tests fail if the path contains a perl special character

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] pgbench tap tests fail if the path contains a perl special character
Дата
Msg-id 29026.1547841766@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] pgbench tap tests fail if the path contains a perlspecial character  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: [PATCH] pgbench tap tests fail if the path contains a perl special character
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
>>> This does not look right to me: glob has a different set of special
>>> characters than regexes, no?

> Perhaps you can do
>    @quoted = map { quotemeta($_) } @logs;

Actually, playing with it here, it seems that quotemeta() quotes
anything that's a special character for either purpose (in fact,
it looks like it quotes anything that's not alphanumeric).
So the patch as given should work.

            regards, tom lane


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

Предыдущее
От: Mitar
Дата:
Сообщение: Re: Feature: temporary materialized views
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pgsql: Restrict the use of temporary namespace in two-phase transaction