Re: [Slony1-general] A 154 GB table swelled to 527 GB on the Slony slave. How to compact it? - Mailing list pgsql-general

From Aleksey Tsalolikhin
Subject Re: [Slony1-general] A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?
Date
Msg-id CA+jMWof66PL_gkDgFVRcS710Ww-xpw-=R6sZY-0=t7k+qTVAzg@mail.gmail.com
Whole thread Raw
In response to A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?  (Aleksey Tsalolikhin <atsaloli.tech@gmail.com>)
List pgsql-general
Dear Joshua,

  You wrote:

> Try disabling replication on that table and clustering the table and then re-enabling
> replication.
...
> Alternatively you could disable replication on that table, truncate the table, and then
> re-enable replication for that table. A concern would be is that it is a large table
> regardless, which means you are going to hold open a transaction to refill it.

I don't see any way to disable replication on a table in Slony.   I do
see I can remove
a table from the replication set, and then add it back in.  Is that
what you meant, or
am I missing something?

I ask because I know when a table is added to a replication set, it is
copied over in
full from origin to slave, and since this table is huge, I'll need to
schedule a maintenance
window to minimize impact on production.

Yours truly,
Aleksey

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Re: A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?
Next
From: Shigeru Hanada
Date:
Subject: Re: FDWs, foreign servers and user mappings