pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dagamier <zayasj1@yahoo.com>
To: pgsql-general@postgresql.org
Subject: pg_repack in cluster
Date: Fri, 10 Jan 2020 11:01:25 -0700 (MST)
Message-ID: <1578679285883-0.post@n3.nabble.com> (raw)

I have two databases that are clustered. One is my primary (DB1) and the
other is my secondary (DB2). Both have the same tables and schemas. Could I
use pg_repack against each of these separately (I am wanting to do this at a
"by table" level) to clean up dead space that hasn't been returned? Should I
be doing it this way? I would assume that dead space in DB1 would also exist
in DB2 as deletes are performed as part of the replication process, but the
reclamation of space back to the system wouldn't take place? Just curious if
the fact that the database is being replicated would prevent the needed
steps from occurring as it's my understanding that you can't drop a table
that's being replicated between two instances.



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html





view thread (4+ messages)  latest in thread

Message-ID: <1578679285883-0.post@n3.nabble.com>
Permalink:  ../1578679285883-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1578679285883-0.post@n3.nabble.com

 · 

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-general@postgresql.org
  Cc: zayasj1@yahoo.com
  Subject: Re: pg_repack in cluster
  In-Reply-To: <1578679285883-0.post@n3.nabble.com>
  References: <1578679285883-0.post@n3.nabble.com>

* 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