Re: Partitioning an existing table - pg10.6 - Mailing list pgsql-general

From legrand legrand
Subject Re: Partitioning an existing table - pg10.6
Date
Msg-id 1562143051610-0.post@n3.nabble.com
Whole thread Raw
In response to Partitioning an existing table - pg10.6  (Ayub M <hiayub@gmail.com>)
Responses Re: Partitioning an existing table - pg10.6  (legrand legrand <legrand_legrand@hotmail.com>)
List pgsql-general
Hello,

I didn’t test it myself but maybe using  logical réplication could help ...
See https://www.postgresql.org/docs/10/logical-replication.html

Operations
- create parttable
- Feed it using réplication
- when sync : stop app, stop réplication, rename tables
- maybe you can réplicate from parttable to nonpart as a rollback plan
- ...

To be tested carrefully
Regards
PAscal




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



pgsql-general by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: Partitioning an existing table - pg10.6
Next
From: Karl Martin Skoldebrand
Date:
Subject: Too short field