Re: pg_upgrade errno

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_upgrade errno
Дата
Msg-id YucSnskQnxLc4ANF@paquier.xyz
обсуждение исходный текст
Ответ на pg_upgrade errno  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On Sun, Jul 31, 2022 at 08:41:35AM -0500, Justin Pryzby wrote:
> Since 3a769d823 (pg_upgrade: Allow use of file cloning)
> file.c has had:
>
> -       if (ioctl(dest_fd, FICLONE, src_fd) < 0)
> -       {
> -               unlink(dst);
> -               pg_fatal("error while cloning relation \"%s.%s\" (\"%s\" to \"%s\"): %s",
> -                                schemaName, relName, src, dst, strerror(errno));
> -       }
>
> But errno should be saved before strerror/%m.

Good catch, Justin.  Will fix on HEAD.
--
Michael

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: ci: update to freebsd 13.1 / remove minor versions from image names
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_upgrade errno