Re: fix tablespace handling in pg_combinebackup

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: fix tablespace handling in pg_combinebackup
Дата
Msg-id 33ae66c2-a9a1-db1c-9361-79d55842430a@gmail.com
обсуждение исходный текст
Ответ на Re: fix tablespace handling in pg_combinebackup  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: fix tablespace handling in pg_combinebackup  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
Hello Thomas and Robert,

20.04.2024 08:56, Thomas Munro wrote:
> ... it still broke[4].  So I'm not sure what's going on...
>

 From what I can see, the following condition (namely, -l):
                 if ($path =~ /^pg_tblspc\/(\d+)$/ && -l "$backup_path/$path")
                 {
                     push @tsoids, $1;
                     return 0;
                 }

is false for junction points on Windows (cf [1]), but the target path is:
  Directory of 

C:\src\postgresql\build\testrun\pg_combinebackup\002_compare_backups\data\t_002_compare_backups_primary_data\backup\backup1\pg_tblspc

04/21/2024  02:05 PM    <DIR>          .
04/21/2024  02:05 PM    <DIR>          ..
04/21/2024  02:05 PM    <JUNCTION>     16415 [\??\C:\Users\ADMINI~1\AppData\Local\Temp\xXMfNDMCot\ts1backup]

[1] https://www.perlmonks.org/?node_id=1223819

Best regards,
Alexander



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

Предыдущее
От: Jelte Fennema-Nio
Дата:
Сообщение: Re: Support a wildcard in backtrace_functions
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: createdb compares strategy as case-sensitive