From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Lars Vonk <lars.vonk@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Missing rows after migrating from postgres 11 to 12 with logical replication
Date: Mon, 21 Dec 2020 14:51:44 -0800
Message-ID: <5b0a4d0d-651e-dd4b-07c2-b66a3a0e68b3@aklaver.com> (raw)
In-Reply-To: <CAMX1ThgHK4i86qRy8aCqGbnW8VJz-wTQg5ugPA1SZaTG3B_UzA@mail.gmail.com>
References: <CAMX1Thi1aXm49c7c9UUHKorEQn-kh6Y6qrAwcu_TQFUF=+VQ6Q@mail.gmail.com>
<CAMX1Thi3iHzLbza68nxfpiHs2Rw-xN-fXfbRU3FXg3OBXUnZyQ@mail.gmail.com>
<4f884e1e-99fb-f29a-4ee6-f7c0fa039331@aklaver.com>
<CAMX1Thgz4QTrZXhaCB31Rppd=nA+pzbCM0QCV1KkMOKa83orgg@mail.gmail.com>
<9f505de4-440d-f4c8-4f8a-70e7abd0ed00@aklaver.com>
<CAMX1ThgHK4i86qRy8aCqGbnW8VJz-wTQg5ugPA1SZaTG3B_UzA@mail.gmail.com>
On 12/21/20 2:42 PM, Lars Vonk wrote:
> What was being run when the above ERROR was triggered?
>
>
> The initial copy of a table. Other than that we ran select
> pg_size_pretty(pg_relation_size('table_name')) to see the current size
> of the table being copied to get a feeling on progress.
>
> And whenever we added a new table to the publication we ran ALTER
> SUBSCRIPTION migration REFRESH PUBLICATION; to add any new table to the
> subscription. But not around that timestamp, about 50 minutes before the
> first occurence of that ERROR. (no ERRORS after prior ALTER SUBSCRIPTIONs).
>
> But after the initial copy's ended there are more ERROR's on different
> WAL segments missing. Each missing wal segment is logged as ERROR a
> couple of times and then no more. After a couple of hours no errors are
> logged.
Something was looking for the WAL segment.
Did you have some other replication running on the 11 instance?
In any case what was the command logged just before the ERROR.
>
> Lars
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, lars.vonk@gmail.com
Subject: Re: Missing rows after migrating from postgres 11 to 12 with logical replication
In-Reply-To: <5b0a4d0d-651e-dd4b-07c2-b66a3a0e68b3@aklaver.com>
References: <CAMX1Thi1aXm49c7c9UUHKorEQn-kh6Y6qrAwcu_TQFUF=+VQ6Q@mail.gmail.com> <CAMX1Thi3iHzLbza68nxfpiHs2Rw-xN-fXfbRU3FXg3OBXUnZyQ@mail.gmail.com> <4f884e1e-99fb-f29a-4ee6-f7c0fa039331@aklaver.com> <CAMX1Thgz4QTrZXhaCB31Rppd=nA+pzbCM0QCV1KkMOKa83orgg@mail.gmail.com> <9f505de4-440d-f4c8-4f8a-70e7abd0ed00@aklaver.com> <CAMX1ThgHK4i86qRy8aCqGbnW8VJz-wTQg5ugPA1SZaTG3B_UzA@mail.gmail.com> <5b0a4d0d-651e-dd4b-07c2-b66a3a0e68b3@aklaver.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