Re: fairywren is generating bogus BASE_BACKUP commands

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: fairywren is generating bogus BASE_BACKUP commands
Дата
Msg-id fc3a24c2-fbe8-609f-19fb-87e69807b4d4@dunslane.net
обсуждение исходный текст
Ответ на Re: fairywren is generating bogus BASE_BACKUP commands  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: fairywren is generating bogus BASE_BACKUP commands  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: fairywren is generating bogus BASE_BACKUP commands  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 1/21/22 17:10, Thomas Munro wrote:
> On Sat, Jan 22, 2022 at 10:42 AM Robert Haas <robertmhaas@gmail.com> wrote:
>> # Running: pg_basebackup --no-sync -cfast --target
>> server:/home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_basebackup/tmp_check/tmp_test_Ag8r/backuponserver
>> -X none
>> pg_basebackup: error: could not initiate base backup: ERROR:
>> unrecognized target: "server;C"
>>
>> "server" is a valid backup target, but "server;C" is not. And I think
>> this must be a bug on the client side, because the server logs the
>> generated query:
> It looks a bit like msys perl could be recognising
> "server:/home/pgrunner/..." and converting it to
> "server;C:\tools\msys64\home\pgrunner\...".  From a bit of light
> googling I see that such conversions happen in msys perl's system()
> unless you turn them off with MSYS_NO_PATHCONV, and then we'd have to
> do it ourselves in the right places.



c.f. src/bin/pg_verifybackup/t/003_corruption.pl which says:


    my $source_ts_prefix = $source_ts_path;
    $source_ts_prefix =~ s!(^[A-Z]:/[^/]*)/.*!$1!;
    ...

    # See https://www.msys2.org/wiki/Porting/#filesystem-namespaces
    local $ENV{MSYS2_ARG_CONV_EXCL} = $source_ts_prefix;


Probably in this case just setting it to 'server:' would do the trick.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Document atthasmissing default optimization avoids verification table scan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: fairywren is generating bogus BASE_BACKUP commands