From: Julie Nishimura <juliezain@hotmail.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: drop database
Date: Thu, 17 Oct 2019 21:21:27 +0000
Message-ID: <BYAPR08MB50145F7B03762273F704AD49AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com> (raw)
In-Reply-To: <BYAPR08MB50146E455A79219F537BF071AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB5014A67857551E2F06DEE4E0AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com>
<a5e48672-8892-e078-efb4-61f791147147@gmail.com>
<BYAPR08MB50146E455A79219F537BF071AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com>
I think you don't swallow an entire elephant at once, you can choke on it, it is more safe to be eaten piece by piece:)
________________________________
From: Julie Nishimura <juliezain@hotmail.com>
Sent: Thursday, October 17, 2019 2:19 PM
To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: drop database
Ive seen some performance degradation on some other RDBMS systems when "drop database" was in progress. We need to drop database which is 16 tb with minimal impact for our end users. There are 32 other databases with hundreds of connections on the same cluster, and I just want to release the space with minimal impact. Trying to find the best solution. I could even script 'truncate table' or 'drop table' in the loop if it helps. I dont have luxury to test such large db drop in action.
Thanks!
________________________________
From: Ron <ronljohnsonjr@gmail.com>
Sent: Thursday, October 17, 2019 1:59 PM
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: drop database
On 10/17/19 3:44 PM, Julie Nishimura wrote:
Guys, can anybody reply if they drop any postgresql database larger than 1 tb and how long did it take?
A lot has to do with how quickly the underlying file system can delete files.
To be honest, though... does it really matter how long it takes? (If I were worried about it -- which I might be -- then I'd put a DROP DATABASE script in crontab and run it from there.)
--
Angular momentum makes the world go 'round.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: juliezain@hotmail.com, ronljohnsonjr@gmail.com
Subject: Re: drop database
In-Reply-To: <BYAPR08MB50145F7B03762273F704AD49AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com>
References: <BYAPR08MB5014A67857551E2F06DEE4E0AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com> <a5e48672-8892-e078-efb4-61f791147147@gmail.com> <BYAPR08MB50146E455A79219F537BF071AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com> <BYAPR08MB50145F7B03762273F704AD49AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox