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 1ghY8k-0004ev-7K for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Jan 2019 11:04:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghY8i-0001wB-QB for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Jan 2019 11:04:44 +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 1ghXm0-0005EH-T8 for pgsql-bugs@lists.postgresql.org; Thu, 10 Jan 2019 10:41:16 +0000 Received: from viclamta10p.bpe.bigpond.com ([203.38.21.74]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghXlu-0004JM-6c for pgsql-bugs@lists.postgresql.org; Thu, 10 Jan 2019 10:41:14 +0000 Received: from smtp.telstra.com ([10.10.26.4]) by viclafep10p-svc.bpe.nexus.telstra.com.au with ESMTP id <20190110104055.WARK13861.viclafep10p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com>; Thu, 10 Jan 2019 21:40:55 +1100 X-RG-Spam: Unknown X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedtledrfeefgddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfupfevtfgpvffgnffuvfftteenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomheptefruceorghpseiiihhprdgtohhmrdgruheqnecukfhppeehkedrudejfedrvddvjedrudegkeenucfrrghrrghmpehhvghlohepsghunhihihhprdgsihhllhgrsghonhhgrdifvggvsggvrghsthhivgdrnhgvthdpihhnvghtpeehkedrudejfedrvddvjedrudegkedpmhgrihhlfhhrohhmpeeorghpseiiihhprdgtohhmrdgruheqpdhrtghpthhtohepoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqpdhrtghpthhtohepoehpghhsqhhlqdgsuhhgsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgqedprhgtphhtthhopeeoshhkseiishhrvhdrohhrgheqnecuvehluhhsthgvrhfuihiivgeptd X-RG-VS-CLASS: clean Received: from bunyip.billabong.weebeastie.net (58.173.227.148) by smtp.telstra.com (9.0.019.26-1) id 5BB3FAC311A812E8; Thu, 10 Jan 2019 21:40:55 +1100 Received: from hogarth by bunyip.billabong.weebeastie.net with local (Exim 4.89) (envelope-from ) id 1ghXle-0003oK-7y; Thu, 10 Jan 2019 21:40:54 +1100 Date: Thu, 10 Jan 2019 21:40:54 +1100 From: AP To: Sergei Kornilov Cc: Andres Freund , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #15582: ALTER TABLE/INDEX ... SET TABLESPACE does not free disk space Message-ID: <20190110104053.hxurczmhhuzvopxk@zip.com.au> References: <15582-dae8ba537137883d@postgresql.org> <20190109160728.cmcnkf4x2hnqb4lr@alap3.anarazel.de> <20190110035821.x54pyf4krnri2u4s@zip.com.au> <20190110082200.ftx5id3xafhuoykg@zip.com.au> <43232061547113498@myt4-929fb874f3f2.qloud-c.yandex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43232061547113498@myt4-929fb874f3f2.qloud-c.yandex.net> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jan 10, 2019 at 12:44:58PM +0300, Sergei Kornilov wrote: > Hi > If archiver can not save WAL - postgresql will not remove these WAL and pg_wal directory will grow unlimited. And i think your alter table set tablespace works ok and table was removed from original disk. But was fully copied to WAL and such WAL can not be deleted, therefore overall disk space usage is same. So you need repair you archive_command first. Hi, I just checked. There are only 16GB of WAL in pg_wal. I moved 5.5TB of data so I don't think that that is it. There are also no errors when I'm not trying to shift an object to a new tablespace and WAL backups are happening (recent files in the pgbackrest backup dir). AP