From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add --exclude-database option to pg_dumpall
Date: Fri, 1 Mar 2019 13:07:17 -0500
Message-ID: <9db0d2fe-de8a-727a-94ac-799fb0ee6ecb@2ndQuadrant.com> (raw)
In-Reply-To: <096370d7-5981-8dae-c47b-a1d3af33c3c5@2ndQuadrant.com>
References: <E1gzknH-0008QJ-NY@gemulon.postgresql.org>
<7317.1551459893@sss.pgh.pa.us>
<096370d7-5981-8dae-c47b-a1d3af33c3c5@2ndQuadrant.com>
On 3/1/19 12:56 PM, Andrew Dunstan wrote:
> On 3/1/19 12:04 PM, Tom Lane wrote:
>> Andrew Dunstan <andrew@dunslane.net> writes:
>>> Add --exclude-database option to pg_dumpall
>> Buildfarm seems to think you got the test case wrong ...
>>
>>
>
> Hmm, Of course I tested this. It's passing on Linux boxes like crake and
> prion, but failing on OSX and FBSD boxes.
>
>
> I guess that's what we have a buildfarm for :-)
>
>
> here's the error:
>
>
> # Failed test 'pg_dumpall: option --exclude-database requires an argument: matches'
> # at t/001_basic.pl line 154.
> # 'pg_dumpall: option `--exclude-database' requires an argument
> # Try "pg_dumpall --help" for more information.
> # '
> # doesn't match '(?^:pg_dumpall\:\ option\ \'\-\-exclude\-database\'\ requires\ an\ argument)'
>
>
> Why is that backtick there? That looks like the culprit, coming from the
> GetOpt implementation presumably.
>
>
> I guess I can replace the first quote with a class containing ['`]
... and on Windows the result is radically different:
# Failed test 'pg_dumpall: option --exclude-database requires an argument: matches'
# at t/001_basic.pl line 154.
# 'H:\prog\bf\root\HEAD\pgsql.build\tmp_install\bin\pg_dumpall.EXE: option requires an argument -- exclude-database
# Try "pg_dumpall --help" for more information.
# '
# doesn't match '(?^:pg_dumpall\:\ option\ \'\-\-exclude\-database\'\ requires\ an\ argument)'
I'm somewhat inclined just to abandon the test. It's at best of marginal
use.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andrew.dunstan@2ndquadrant.com, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add --exclude-database option to pg_dumpall
In-Reply-To: <9db0d2fe-de8a-727a-94ac-799fb0ee6ecb@2ndQuadrant.com>
References: <E1gzknH-0008QJ-NY@gemulon.postgresql.org> <7317.1551459893@sss.pgh.pa.us> <096370d7-5981-8dae-c47b-a1d3af33c3c5@2ndQuadrant.com> <9db0d2fe-de8a-727a-94ac-799fb0ee6ecb@2ndQuadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox