Re: BUG #18245: pg_restore accepts same output file name as input file name

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: BUG #18245: pg_restore accepts same output file name as input file name
Дата
Msg-id E7AEB7F8-BB3E-403F-ACDB-E06AF4E37861@yesql.se
обсуждение исходный текст
Ответ на BUG #18245: pg_restore accepts same output file name as input file name  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #18245: pg_restore accepts same output file name as input file name  (Julien Rouhaud <rjuju123@gmail.com>)
Список pgsql-bugs
> On 13 Dec 2023, at 04:39, PG Bug reporting form <noreply@postgresql.org> wrote:

> Please let it fail when the user passes the same name for the output as the
> input.

I think this sounds like a fair restriction, input and output being the same
seems much more likely to be a copy/paste issue than an interesting usecase.
Something like the attached (untested) sketch should be enough I think.

--
Daniel Gustafsson


Вложения

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

Предыдущее
От: Aksel Allas
Дата:
Сообщение: Re: BUG #18242: pg_dump with non-superuser from pg14 to pg15 fails on ALTER FUNCTION
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18246: pgstathashindex() attempts to read invalid file for hash index attached to partitioned table