Re: [PATCH] pgbench tap tests fail if the path contains a perl special character - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] pgbench tap tests fail if the path contains a perl special character
Date
Msg-id 29026.1547841766@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] pgbench tap tests fail if the path contains a perlspecial character  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: [PATCH] pgbench tap tests fail if the path contains a perl special character  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Mitar
Date:
Subject: Re: Feature: temporary materialized views
Next
From: Robert Haas
Date:
Subject: Re: pgsql: Restrict the use of temporary namespace in two-phase transaction