From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Nicolas Sornin <nicolas.sornin@actia.be>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: PG13 partitioned table logical replication
Date: Thu, 10 Sep 2020 17:03:43 +0200
Message-ID: <54c6aa94-5e78-854c-f2d8-dc6d625acfb0@2ndquadrant.com> (raw)
In-Reply-To: <AM0PR05MB6801F84970377191B90FCA9BF1270@AM0PR05MB6801.eurprd05.prod.outlook.com>
References: <AM0PR05MB6801F84970377191B90FCA9BF1270@AM0PR05MB6801.eurprd05.prod.outlook.com>
On 2020-09-10 14:13, Nicolas Sornin wrote:
> I just made some test of upcoming version of porstgresql, especially the
> ability to publish partitioned table via root partition.
>
> I tried to setup PG13 to PG12 replication with different partitioning
> schemes.
>
> My first attempt was to replicate time partitioned table in PG13 cluster
> to a regular table in PG12 cluster, but after looking at the logs I saw
> the following error :
>
> 2020-09-09 12:21:33.964 CEST [22976] LOG: logical replication table
> synchronization worker for subscription "rep_part_sub", table
> "stock_sales" has started
>
> 2020-09-09 12:21:33.997 CEST [22976] ERROR: table "public.stock_sales"
> not found on publisher
>
> 2020-09-09 12:21:33.999 CEST [20346] LOG: background worker "logical
> replication worker" (PID 22976) exited with exit code 1
>
> While not being aware of underlying mechanics of logical replication, I
> was expecting this use case to work given table names and column
> names/types are the same on both sides.
>
> Is this the intended behavior and simply out of the scope of the changes
> introduced by PG13 ?
When the subscriber running on PG12 is trying to fetch information about
the table from the publisher, it is looking for a real table, which it
doesn't find, because it's a partitioned table. So this combination
doesn't work.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: peter.eisentraut@2ndquadrant.com, nicolas.sornin@actia.be
Subject: Re: PG13 partitioned table logical replication
In-Reply-To: <54c6aa94-5e78-854c-f2d8-dc6d625acfb0@2ndquadrant.com>
References: <AM0PR05MB6801F84970377191B90FCA9BF1270@AM0PR05MB6801.eurprd05.prod.outlook.com> <54c6aa94-5e78-854c-f2d8-dc6d625acfb0@2ndquadrant.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