pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Sv: drop database
3+ messages / 2 participants
[nested] [flat]

* Sv: drop database
@ 2019-10-17 20:58  Andreas Joseph Krogh <andreas@visena.com>
  1 sibling, 1 reply; 3+ messages in thread

From: Andreas Joseph Krogh @ 2019-10-17 20:58 UTC (permalink / raw)
  To: Julie Nishimura <juliezain@hotmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general


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; 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Sv: drop database
@ 2019-10-17 20:59  Andreas Joseph Krogh <andreas@visena.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Andreas Joseph Krogh @ 2019-10-17 20:59 UTC (permalink / raw)
  To: Julie Nishimura <juliezain@hotmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general


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? 

Sorry, I missread you question as 1GB (not TB)... 


-- 
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; 

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Sv: drop database
@ 2019-10-17 21:01  Ron <ronljohnsonjr@gmail.com>
  parent: Andreas Joseph Krogh <andreas@visena.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Ron @ 2019-10-17 21:01 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-10-17 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-17 20:58 ` Andreas Joseph Krogh <andreas@visena.com>
2019-10-17 21:01   ` Ron <ronljohnsonjr@gmail.com>
2019-10-17 20:59 ` Andreas Joseph Krogh <andreas@visena.com>

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