From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Logical replication alternative
Date: Wed, 4 Nov 2020 12:57:21 +0100
Message-ID: <ad723f5b-d72f-a108-556e-11b939ecd940@jakobs.com> (raw)
In-Reply-To: <CALhHtcAOudY+a=h3hLmhtCzO2A+r_6KQdvyGt-=jLnrWfr3DVA@mail.gmail.com>
References: <CALhHtcAhgLkN0SM6iZqG0S5OZw6_Q-3YaBrtrBMNwiWzF3YM0A@mail.gmail.com>
<d2016434-293b-a05a-35f4-549626e662f5@jakobs.com>
<CALhHtcAOudY+a=h3hLmhtCzO2A+r_6KQdvyGt-=jLnrWfr3DVA@mail.gmail.com>
Okay,
updating some tables once a day isn't actually replication.
For this to happen, I would suggest you connect the two machines by
using the Foreign Data Wrapper and then:
* set up a foreign table
* create a materialized view on the "slave" as "select * from
foreign_table"
* set up a job for refreshing the materialized view
Regards,
Holger
Am 04.11.20 um 12:34 schrieb Yambu:
> Hi Holger
>
> 1. We want to update the few tables once a day
> 2. We want to avoid restart the mission critical database, changing
> wal_level requires a restart
>
> regardsĀ
>
> On Wed, Nov 4, 2020 at 1:28 PM Holger Jakobs <holger@jakobs.com
> <mailto:holger@jakobs.com>> wrote:
>
> Hi,
>
> Why do you need an alternative to logical replication? Please tell us
> why logical replication isn't for you.
>
> Regards,
>
> Holger
>
>
> Am 04.11.20 um 11:55 schrieb Yambu:
> > Hi
> >
> > May i know what is the alternative to logical replication if i
> want to
> > replicate a few tables on postgres v10?
> >
> > regards
>
> --
> Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
>
>
>
--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
Subject: Re: Logical replication alternative
In-Reply-To: <ad723f5b-d72f-a108-556e-11b939ecd940@jakobs.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