Add force flag while doing pg_restore to force dropping database in case of existing connections

Edit
ID 4485
Title Add force flag while doing pg_restore to force dropping database in case of existing connections
Topic Clients
Created 2023-08-06 19:40:12
Last modified 2024-01-14 10:54:36 (9 months ago)
Latest email 2024-01-14 10:55:07 (9 months ago)
Status
2024-01: Returned with feedback
2023-11: Moved to next CF
2023-09: Moved to next CF
Target version stable
Authors Ahmed Ibrahim (ahmedibrahim)
Reviewers Gurjeet Singh (gurjeet)Become reviewer
Committer
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/4485
git checkout commitfest/cf/4485
Emails
There should be a way to use the force flag when restoring databases
First at 2023-07-18 07:53:25 by Joan <aseques at gmail.com>
Latest at 2024-01-14 10:55:07 by vignesh C <vignesh21 at gmail.com>
Latest attachment (v3-force.patch) at 2023-08-06 19:39:04 from Ahmed Ibrahim <ahmed.ibr.hashim at gmail.com>
    Attachment (v3-force.patch) at 2023-08-06 19:39:04 from Ahmed Ibrahim <ahmed.ibr.hashim at gmail.com> (Patch: Yes)
    Attachment (force-v2.patch) at 2023-08-01 15:19:15 from Ahmed Ibrahim <ahmed.ibr.hashim at gmail.com> (Patch: Yes)
    Attachment (force.patch) at 2023-07-23 13:08:53 from Ahmed Ibrahim <ahmed.ibr.hashim at gmail.com> (Patch: Yes)
History
When Who What
2024-01-14 10:54:36 vigneshwaran C (vignesh.postgres) Closed in commitfest 2024-01 with status: Returned with feedback
2023-12-04 08:58:21 John Naylor (john.naylor) Closed in commitfest 2023-11 with status: Moved to next CF
2023-11-11 09:40:37 John Naylor (john.naylor) New status: Waiting on Author
2023-10-02 11:08:49 Peter Eisentraut (petere) Closed in commitfest 2023-09 with status: Moved to next CF
2023-08-31 05:27:37 Gurjeet Singh (gurjeet) Added gurjeet as reviewer
2023-08-06 19:41:50 Ahmed Ibrahim (ahmedibrahim) Changed authors to Ahmed Ibrahim (ahmedibrahim)
2023-08-06 19:41:09 Ahmed Ibrahim (ahmedibrahim) Changed targetversion to stable
2023-08-06 19:41:09 Ahmed Ibrahim (ahmedibrahim) Changed topic to Clients
2023-08-06 19:40:12 Ahmed Ibrahim (ahmedibrahim) Attached mail thread CAP4s+CEVVFREtnw8LpeNGUKcVowR0qMNiHw-A9+8h3-a0AQEaQ@mail.gmail.com
2023-08-06 19:40:12 Ahmed Ibrahim (ahmedibrahim) Created patch record
Edit