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 1iB44R-0008Oe-0m for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2019 21:34:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iB44P-0008SW-UO for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2019 21:34:33 +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 1iB44P-0008SL-K9 for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2019 21:34:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iB44M-0005RF-Pq for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2019 21:34:33 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4638921C57; Thu, 19 Sep 2019 17:34:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 19 Sep 2019 17:34:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=L Ik9ygfC6STZy/8izFvmoROdtZWAanqTJglZvcTPtQ0=; b=vxdUHf6esn5qV8uwK v3q+oYkvkqjecOeMk/FUOZwd//2iqX7zFRn5j3ChENL42lLuN0dPlmMQEDAB75mv dyuCXhogD5JxM1RBfEsFwEB66NaYhsKDZ4oRpZfIT8dS38OaaCSDyAORqj0EdyCs 2uyagZoT84ofZy8TpVYM3a36lviOEvjY3126/0nRQlZNdZCMQBI2aORW5ksZ9w+9 pQSroY0bW52vntkJI2x6aRTcXVA1OEVY2YK2jstIJbUKCapxtrJXgpo12aUu2up9 B8k7zAaPgxROhHaFglmQWIG0cpO+ngCUWZssEk77xhB+FNT3OwwhpPeTj8BnAPbF 2i8hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=LIk9ygfC6STZy/8izFvmoROdtZWAanqTJglZvcTPt Q0=; b=wPcjHCmnN+ZJL3AL7ityOm3cTAtXtYkNVg6BRNJm7HUjE8pv2gu+SLKez n2lJ8AEBwPF1wZ4tA9tIE5eCYONbCdVgz3EfVxpcgfKRlsYN3gi6q12NdjSU0bgd YGzYFR3CMqLSBatI2FiBg08dEBEbXvIH69h4iZIkjtdEpWCmgjfKWRccAsMirbth kdTSgpv9ZRTzkQkWoBGtqZAAnT78LNsghxY0/JZwkNJ/fm0idOB/jIQXMojgtahM 6F0bUwwOVq00TJq4kWbfGH+GsXXLRuCIHzs+2+ERgYuUBG+7rvdDmGGf+3rbx9Ch bMLG6Wy2VsONXZLz6GTbvrOZkq6ug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeehnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphepjeegrdelgedrjeefrddvvddvnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D89080059; Thu, 19 Sep 2019 17:34:28 -0400 (EDT) Subject: Re: is it safe to drop 25 tb schema with cascade option? To: Julie Nishimura , "pgsql-general@lists.postgresql.org" References: <71b7be3f-6f7f-cce4-ce76-87febd8295b0@aklaver.com> From: Adrian Klaver Message-ID: Date: Thu, 19 Sep 2019 14:34:27 -0700 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: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/19/19 2:24 PM, Julie Nishimura wrote: > Adrian, > We do run vacuum w/o FULL every day: > SYSTABLES="' pg_catalog.' || relname || ';' from pg_class a, > pg_namespace b where a.relnamespace=b.oid and b.nspname='pg_catalog' an > d a.relkind='r'" > > But it does not look like it frees up the space... > > Or you meant we need to run vacuum on 'my_db_name' without parameters, > that it runs for every table? I am just not sure how long it will take > to run for 39 tb...:( Should have added to previous post that in this link: https://www.postgresql.org/docs/8.2/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND there are some queries that can will show you the XID status for tables and the database. > > Thanks -- Adrian Klaver adrian.klaver@aklaver.com