Re: pgsql: Add 'basebackup_to_shell' contrib module.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pgsql: Add 'basebackup_to_shell' contrib module.
Дата
Msg-id 20220330163024.fsbpbxwxh5oo2ktx@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: pgsql: Add 'basebackup_to_shell' contrib module.  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pgsql: Add 'basebackup_to_shell' contrib module.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 2022-03-30 08:53:43 -0400, Robert Haas wrote:
> Here's a new series, adjusted to use 'gzip' instead of 'cat' and 'type'.

Seems to have done the trick: https://cirrus-ci.com/task/6474955838717952?logs=test_contrib_basebackup_to_shell#L1


# Reconfigure to restrict access and require a detail.
$shell_command =
    $PostgreSQL::Test::Utils::windows_os
    ? qq{$gzip --fast > "$escaped_backup_path\\\\%d.%f.gz"}
    : qq{$gzip --fast > "$escaped_backup_path/%d.%f.gz"};

I don't think the branch is needed anymore, forward slashes should work for
output redirection.

Greetings,

Andres Freund



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

Предыдущее
От: vignesh C
Дата:
Сообщение: Re: Identify missing publications from publisher while create/alter subscription.
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: make MaxBackends available in _PG_init