pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Partitioning an existing table - pg10.6
Date: Wed, 3 Jul 2019 01:37:31 -0700 (MST)
Message-ID: <1562143051610-0.post@n3.nabble.com> (raw)
In-Reply-To: <CAOS0qEsT0E3KqWTeGOU-=e38PYwpTXmgzyuEvHG4-yUhTAoMzA@mail.gmail.com>
References: <CAOS0qEsT0E3KqWTeGOU-=e38PYwpTXmgzyuEvHG4-yUhTAoMzA@mail.gmail.com>

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





view thread (5+ messages)  latest in thread

Message-ID: <1562143051610-0.post@n3.nabble.com>
Permalink:  ../1562143051610-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1562143051610-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: legrand_legrand@hotmail.com
  Subject: Re: Partitioning an existing table - pg10.6
  In-Reply-To: <1562143051610-0.post@n3.nabble.com>
  References: <CAOS0qEsT0E3KqWTeGOU-=e38PYwpTXmgzyuEvHG4-yUhTAoMzA@mail.gmail.com> <1562143051610-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