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 1iq56r-0005Ob-SJ for pgsql-general@arkaria.postgresql.org; Sat, 11 Jan 2020 00:58:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iq56q-0004tx-MP for pgsql-general@arkaria.postgresql.org; Sat, 11 Jan 2020 00:58:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipybC-0000pj-5T for pgsql-general@lists.postgresql.org; Fri, 10 Jan 2020 18:01:30 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ipyb9-000458-2a for pgsql-general@postgresql.org; Fri, 10 Jan 2020 18:01:28 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id D83761A13AFD4 for ; Fri, 10 Jan 2020 11:01:25 -0700 (MST) Date: Fri, 10 Jan 2020 11:01:25 -0700 (MST) From: dagamier To: pgsql-general@postgresql.org Message-ID: <1578679285883-0.post@n3.nabble.com> Subject: pg_repack in cluster MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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