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 1hiall-00078c-Ga for pgsql-general@arkaria.postgresql.org; Wed, 03 Jul 2019 08:37:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hialk-0006Be-B8 for pgsql-general@arkaria.postgresql.org; Wed, 03 Jul 2019 08:37:36 +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 1hialk-0006BX-1E for pgsql-general@lists.postgresql.org; Wed, 03 Jul 2019 08:37:36 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hialh-0002v0-I6 for pgsql-general@postgresql.org; Wed, 03 Jul 2019 08:37:35 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 95C77153B8578 for ; Wed, 3 Jul 2019 01:37:31 -0700 (MST) Date: Wed, 3 Jul 2019 01:37:31 -0700 (MST) From: legrand legrand To: pgsql-general@postgresql.org Message-ID: <1562143051610-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: Partitioning an existing table - pg10.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I didn=E2=80=99t test it myself but maybe using logical r=C3=A9plication c= ould help ... See https://www.postgresql.org/docs/10/logical-replication.html Operations=20 - create parttable - Feed it using r=C3=A9plication - when sync : stop app, stop r=C3=A9plication, rename tables - maybe you can r=C3=A9plicate from parttable to nonpart as a rollback plan= =20 - ... To be tested carrefully=20 Regards PAscal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml