pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: AP <ap@zip.com.au>
To: Sergei Kornilov <sk@zsrv.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15582: ALTER TABLE/INDEX ... SET TABLESPACE does not free disk space
Date: Thu, 10 Jan 2019 21:40:54 +1100
Message-ID: <20190110104053.hxurczmhhuzvopxk@zip.com.au> (raw)
In-Reply-To: <43232061547113498@myt4-929fb874f3f2.qloud-c.yandex.net>
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>

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




view thread (8+ messages)  latest in thread

Message-ID: <20190110104053.hxurczmhhuzvopxk@zip.com.au>
Permalink:  ../20190110104053.hxurczmhhuzvopxk@zip.com.au/
Also on:    postgresql.org/message-id/20190110104053.hxurczmhhuzvopxk@zip.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ap@zip.com.au, sk@zsrv.org, andres@anarazel.de
  Subject: Re: BUG #15582: ALTER TABLE/INDEX ... SET TABLESPACE does not free disk space
  In-Reply-To: <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> <20190110104053.hxurczmhhuzvopxk@zip.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox