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

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: mb(dot)alzouabi(at)gmail(dot)com
Subject: BUG #18245: pg_restore accepts same output file name as input file name
Date: 2023-12-13 03:39:58
Message-ID: 18245-eed25801b2d599c9@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18245
Logged by: Mohammad Al Zouabi
Email address: mb(dot)alzouabi(at)gmail(dot)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!

Responses

Browse pgsql-bugs by date

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