Re: Sv: drop database

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Sv: drop database
Дата
Msg-id 8ff311cb-48ad-ec66-ca90-4e00dce09d48@gmail.com
обсуждение исходный текст
Ответ на Sv: drop database  (Andreas Joseph Krogh <andreas@visena.com>)
Список pgsql-general
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>:
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


1TB is 38x larger than 26GB. 


--
Angular momentum makes the world go 'round.

В списке pgsql-general по дате отправления:

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Sv: drop database
Следующее
От: Julie Nishimura
Дата:
Сообщение: Re: drop database