BUG #19891: pg_restore ignores an explicitly empty -F argument

Поиск
Список
Период
Сортировка
Искать

BUG #19891: pg_restore ignores an explicitly empty -F argument

От:
PG Bug reporting form <noreply@postgresql.org>
Дата:
The following bug has been logged on the website:

Bug reference:      19891
Logged by:          Faye
Email address:      imchifan@mail.com
PostgreSQL version: 18.6
Operating system:   Linux/amd64
Description:        

pg_restore treats an explicitly empty -F/--format argument as though the
option were absent and proceeds with archive-format auto-detection. With
empty input, I get an input-file error, while another invalid format is
rejected during option validation.

Because -F requires an archive format and accepts only c, d, or t, an
explicitly supplied empty value should be rejected as an unrecognized
archive format rather than enabling auto-detection.

How to repeat:

Run these commands with pg_restore on PATH:

```
pg_restore -f - -F '' 
FAQ