BUG #18245: pg_restore accepts same output file name as input file name - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18245: pg_restore accepts same output file name as input file name
Date
Msg-id 18245-eed25801b2d599c9@postgresql.org
Whole thread Raw
Responses Re: BUG #18245: pg_restore accepts same output file name as input file name  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18245
Logged by:          Mohammad Al Zouabi
Email address:      mb.alzouabi@gmail.com
PostgreSQL version: 14.10
Operating system:   macOS
Description:

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

I just lost a very important .tar file because I forgot to replace .tar with
.sql.

Thanks!


pgsql-bugs by date:

Previous
From: jian he
Date:
Subject: Re: BUG #18238: Cross-partitition MERGE/UPDATE with delete-preventing trigger leads to incorrect memory access
Next
From: Laurenz Albe
Date:
Subject: Re: BUG #18244: Corruption in indexes involving whole-row expressions