BUG #16981: pg_dump errors out with incompatible option set but empty tar dump file is created as result
BUG #16981: pg_dump errors out with incompatible option set but empty tar dump file is created as result
От:
PG Bug reporting form <noreply@postgresql.org>
Дата:
The following bug has been logged on the website: Bug reference: 16981 Logged by: Edwin Polkerman Email address: edwin.polkerman@splendiddata.com PostgreSQL version: 13.2 Operating system: Centos7/8, RHEL7/8, SUSE12/15 Description: Basically it is more an improvement than a real bug Run the following pg_dump command: > pg_dump -h 10.17.0.12 -p 5432 -d postgres -U splendid -f /home/splendid/pg_dump_file.tar -F t -v --compress=4 As expected pg_dump returns an error: pg_dump: error: compression is not supported by tar archive format What was not expected is that the file pg_dump_file.tar is created (with 0 size) > ls -l /home/splendid -rw-rw-r-- 1 splendid splendid 0 Apr 23 12:50 pg_dump_file.tar To my opinion the dump file should not be created because the check on options provided can be done before creating the result file