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 1iLFce-0005Fa-N4 for pgsql-general@arkaria.postgresql.org; Thu, 17 Oct 2019 23:56:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLFcd-0005vS-C2 for pgsql-general@arkaria.postgresql.org; Thu, 17 Oct 2019 23:55:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLFcc-0005vF-Td for pgsql-general@lists.postgresql.org; Thu, 17 Oct 2019 23:55:59 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iLFca-0005CS-1e for pgsql-general@lists.postgresql.org; Thu, 17 Oct 2019 23:55:57 +0000 Received: by mail-oi1-x22e.google.com with SMTP id g81so3698550oib.8 for ; Thu, 17 Oct 2019 16:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:cc:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=mzWGsh85I1eLAOZ5aOGOCuEmiqJj7zS9Nvv2S0T8O7s=; b=hXY+gYEPX79IaHWwcNLQvnHBGgPkO44sK8bzru+i1JFSS1cXWe5MTMG9buIMXMfrVS FtNujsV27+75QZWSK6WI69FQLIsiLiW9Bx75N13J7iuxzcC16dHDU2DG9SKdKgYGy1SJ O7Uzu6RF1MJosPe3B9fff8EKuiNTufDgUZ/gnw3chUzCPpecM3TkJJ39ZpfDEPFmEn4N GGNMctguwY2/4FiSLamBh1pYDiCKLeIkyjfGYusMvsuiBnr3sI1KbTucMP8Zx/ePLfZe knaEdvLcG2qG/6/g7YxxU9Z+qioAIqME7PGlboU03ChOQaQa9Zc+LAHXASo+8CIps/gk Qd8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=mzWGsh85I1eLAOZ5aOGOCuEmiqJj7zS9Nvv2S0T8O7s=; b=ZWRAngGqDG6wyCsihdnbjvOVhUJp5P9pRFhNSOsSxO+WUgpNYvEFY/8Gf2YdtMYp51 9uUhw5z+iznjCXiA0F7/n5YCxo7/Efk5V62wTOhlWN413HCUTBkW0SG0kPiJxy6qvEIo xtlL8XiN2hJwKdYrDYrxiu6o3yDm8I3VaC0ZOG+HV76Bgq6ki4PTmajjwMr2THEZtSqN jj4x14Uy1Rn5aUJO4Gn3j4RxKClqFWWwEkEFHJOZR6y+hPP5yDYWwF1yH+kg2AixXM04 FRI68fo1uMSnRm+4YpFszeocZPJlNx761X9QpnTEffhmD3Dc4B2UiXEp83+X7zgcG/93 U7Rg== X-Gm-Message-State: APjAAAUvEt8aGqkODobG6WpMsZBQ4odzeq1F/G6Av0KaTUfApk9egY+t ZLc4ePIMrc6P/GCxsycR0dK+yzV/LIKZmw== X-Google-Smtp-Source: APXvYqyartlHmSRIwc9UiSP20OpyAKkmnGaUU2dj6bHanYVeksN9XAnaxcqPriyoalhx1QPNabWBnQ== X-Received: by 2002:aca:c5ce:: with SMTP id v197mr5460949oif.69.1571356555080; Thu, 17 Oct 2019 16:55:55 -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 h5sm1025094oth.29.2019.10.17.16.55.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 16:55:54 -0700 (PDT) Subject: Re: drop database Cc: "pgsql-general@lists.postgresql.org" References: From: Ron Message-ID: <1cc3f4c8-aa8e-0e0b-3f02-841da307bffb@gmail.com> Date: Thu, 17 Oct 2019 18:55:53 -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="------------18CFD5EA88629D34AFE8CC80" 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. --------------18CFD5EA88629D34AFE8CC80 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit There are other databases in the cluster. On 10/17/19 5:12 PM, Andrew Kerber wrote: > If you are decommissioning the database, why not just rm -rf the whole system? > > On Thu, Oct 17, 2019 at 4:31 PM Michael Lewis > wrote: > > Your plan to loop over tables and truncate them seems great if you are > worried. It seems simple to verify that space is being freed as you > go, and also easy to change tactics if the need arises. > > -- Angular momentum makes the world go 'round. --------------18CFD5EA88629D34AFE8CC80 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit There are other databases in the cluster.

On 10/17/19 5:12 PM, Andrew Kerber wrote:
If you are decommissioning the database, why not just rm -rf the whole system?

On Thu, Oct 17, 2019 at 4:31 PM Michael Lewis <mlewis@entrata.com> wrote:
Your plan to loop over tables and truncate them seems great if you are worried. It seems simple to verify that space is being freed as you go, and also easy to change tactics if the need arises.


--
Angular momentum makes the world go 'round.
--------------18CFD5EA88629D34AFE8CC80--