From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Sv: drop database
Date: Thu, 17 Oct 2019 16:01:08 -0500
Message-ID: <8ff311cb-48ad-ec66-ca90-4e00dce09d48@gmail.com> (raw)
In-Reply-To: <VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena>
References: <VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena>
On 10/17/19 3:58 PM, Andreas Joseph Krogh wrote:
> På torsdag 17. oktober 2019 kl. 22:44:15, skrev Julie Nishimura
> <juliezain@hotmail.com <mailto:juliezain@hotmail.com>>:
>
> Guys, can anybody reply if they drop any postgresql database larger
> than 1 tb and how long did it take?
> Thanks
>
> About 280ms:
> andreak@[local]:543212.0 andreak=# select
> pg_size_pretty(pg_database_size('rsm'));
> ┌────────────────┐
> │ pg_size_pretty │
> ├────────────────┤
> │ 26 GB │
> └────────────────┘
> (1 row)
>
> andreak@[local]:543212.0 andreak=# \timing
> Timing is on.
> andreak@[local]:543212.0 andreak=# drop DATABASE rsm;
> DROP DATABASE
> Time: 280,355 ms
1TB is 38x larger than 26GB.
--
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: ronljohnsonjr@gmail.com
Subject: Re: drop database
In-Reply-To: <8ff311cb-48ad-ec66-ca90-4e00dce09d48@gmail.com>
References: <VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena> <8ff311cb-48ad-ec66-ca90-4e00dce09d48@gmail.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