Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLCtY-0006Am-3F for pgsql-general@arkaria.postgresql.org; Thu, 17 Oct 2019 21:01:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLCtW-0004Rb-R0 for pgsql-general@arkaria.postgresql.org; Thu, 17 Oct 2019 21:01:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLCtW-0004RH-G2 for pgsql-general@lists.postgresql.org; Thu, 17 Oct 2019 21:01:14 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLCtU-0002ZJ-EL for pgsql-general@lists.postgresql.org; Thu, 17 Oct 2019 21:01:14 +0000 Received: by mail-ot1-x32c.google.com with SMTP id e11so3137528otl.5 for ; Thu, 17 Oct 2019 14:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=l+QCalPz/5ixsMWGqQ/6I920jmb6aXrBJGuzoewhzFM=; b=pf5U8ArZEUb8QajyuAYK3UM9rB1T4CkhljnElXuZgguOjwSsBTKerOhsQKj640N5gM tptq6jZQn/XBIeKTRvv20pAeoFLomJ0jftO2u1KA6xPGbA48C8Vraki5IDYwBanEoAtZ u51LIUCq0L/4uPk3qHkcPt4hqUqdWJHS3NhjLARK3m4fjl5OgkFhzapQ8Wc+RxAQsBTs 2HOxGnS+FM0pic8tvlDJNNaBG8vTlSuxXYhiNzP0HujE/u0G+561eSHWHrSq74abFmXf SgRrak+m+Tkb0Mp5Mmp+0Kentr/RssHjrr7EZF2WC0cUeG5I3zOZZvh/raDlRBmoBDV/ Veog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=l+QCalPz/5ixsMWGqQ/6I920jmb6aXrBJGuzoewhzFM=; b=LE8wNjOmHYCfZGQ46s6cywwZ97vVwyTukb4XUXmLFERg9nqHfIHEDQ4nx3U6oi15T2 4fFCM5i2U3MdbRKwOojRxeKpRu/E5xgxVHpgvt7xDieeJUTS+eCJyW/jt3hRZd7u+4ln POvd/oMshaJ72jQcC4Vc2yynanj49m9MsZ5YrzBAH1ZSJAZiI3F85TdTDXlAMqMr0KRs ZAwKsP/XDJGKeiH7Dc5baPXNYHlkUf1HDn56OWgNzup/++HBMT3gWVWH6nLgZIz8Ny4q 4vK9Sq8sxsweQgmsZb5gtnxN7QbT7xtdVt5n9PARKCpMBLPl52rO8Db4MMTNWkCfDQ02 Rw0A== X-Gm-Message-State: APjAAAWdRV47/m7TANcVMxMip5svyM5ISud2e6DI7Cau4EgRKoBsc/6h Zd685ESxNZzsd74IRDn4TFAq1o0ELL7kJA== X-Google-Smtp-Source: APXvYqw+J937Y7a2X+8DYyvZiU7FLM5jFO99ATQbwYCE4XAL1VylVqRT63Gbe3n3ei+hFb3+Gq2nww== X-Received: by 2002:a9d:65c2:: with SMTP id z2mr4383244oth.47.1571346070611; Thu, 17 Oct 2019 14:01:10 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id z14sm781249oic.13.2019.10.17.14.01.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 14:01:09 -0700 (PDT) Subject: Re: Sv: drop database To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <8ff311cb-48ad-ec66-ca90-4e00dce09d48@gmail.com> Date: Thu, 17 Oct 2019 16:01:08 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------8AC577141D296F4AEA16F431" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------8AC577141D296F4AEA16F431 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/17/19 3:58 PM, Andreas Joseph Krogh wrote: > På torsdag 17. oktober 2019 kl. 22:44:15, skrev Julie Nishimura > >: > > 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. --------------8AC577141D296F4AEA16F431 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------8AC577141D296F4AEA16F431--