From: Andreas Joseph Krogh <andreas@visena.com>
To: Julie Nishimura <juliezain@hotmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Sv: drop database
Date: Thu, 17 Oct 2019 22:58:51 +0200 (CEST)
Message-ID: <VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena> (raw)
In-Reply-To: <BYAPR08MB5014A67857551E2F06DEE4E0AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com>
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]:5432 12.0 andreak=# select
pg_size_pretty(pg_database_size('rsm'));
┌────────────────┐
│ pg_size_pretty │
├────────────────┤
│ 26 GB │
└────────────────┘
(1 row)
andreak@[local]:5432 12.0 andreak=# \timing
Timing is on.
andreak@[local]:5432 12.0 andreak=# drop DATABASE rsm;
DROP DATABASE
Time: 280,355 ms
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
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: andreas@visena.com, juliezain@hotmail.com
Subject: Re: drop database
In-Reply-To: <VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena>
References: <BYAPR08MB5014A67857551E2F06DEE4E0AC6D0@BYAPR08MB5014.namprd08.prod.outlook.com> <VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena>
* 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