Sv: drop database - Mailing list pgsql-general

From Andreas Joseph Krogh
Subject Sv: drop database
Date
Msg-id VisenaEmail.82.97e945011b03eb60.16ddb83a7a3@tc7-visena
Whole thread Raw
In response to drop database  (Julie Nishimura <juliezain@hotmail.com>)
Responses Re: Sv: drop database
List pgsql-general
På torsdag 17. oktober 2019 kl. 22:44:15, skrev Julie Nishimura <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
 
Attachment

pgsql-general by date:

Previous
From: Julie Nishimura
Date:
Subject: drop database
Next
From: Ron
Date:
Subject: Re: drop database