Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krU26-0002bq-Fu for pgsql-general@arkaria.postgresql.org; Mon, 21 Dec 2020 22:52:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1krU23-0006tY-Km for pgsql-general@arkaria.postgresql.org; Mon, 21 Dec 2020 22:51:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krU21-0006tR-UA for pgsql-general@lists.postgresql.org; Mon, 21 Dec 2020 22:51:59 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krU1t-0004vn-Ma for pgsql-general@postgresql.org; Mon, 21 Dec 2020 22:51:57 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0913D9B8; Mon, 21 Dec 2020 17:51:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 21 Dec 2020 17:51:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=8 01wTKcW3Oyr4WsD06dQWsPJLUd4zWNOmFuCxQ1M0VI=; b=N5KtJKerTov9jFIxv NsLszSiY8Ae/hqmOjHru5unMpIvtnWStFbx5habvuO1J5OT09BV3wc31oU2h0HQy qklrEj8X1ej6HGJLtYDN7UgFCnAwBu/NW6GhDVOxe4MdvDTZ62hKjShZIK0v334I PHkWMV5KrmRcFnH0s1lUYcTjlPIaPeinl46tK3S6Zco5Y2U4OjZtGb/xv6zJ18up Sc/ME4hJcjaYxJkGUdTx2zQso6++JpOJCPactGrrNdYcA8VvPa/CNpdIBikAYE6Z w8ARnjtOBco83GwhOObB8sV3MuF49SEjFkz7M41RglI5OusYxi3ItuDlaSJbZCon 1ixOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=801wTKcW3Oyr4WsD06dQWsPJLUd4zWNOmFuCxQ1M0 VI=; b=fJS1ejdiuZILd6jjamajRKKcryJvUAGv0QzzHsxEnkHjF1qAi8aFMDVB1 E4YL44fg73b4JCJv8IasusY64p/DLGvgr1Pizc/EryGzAgKIs/JskP+8UsVCB14F Z8Oc5mStxtrlU1p0R9kieooejB6GM39+6pxSeLd4TCQtXVbMRiJWxbKeO/tLB+8B OltZ5HSa3ud8PnJpOJsl21K0Y2+sn5WJ2x0MHiHDNXALPBZKfXSeKbkrbtnNXplh OU49KPWaVNYjsm170ACq8D4xc1XUEGmCl+70uhUmIINC6i8ecitbMBF5p2PRtfsy f3n6jIYri55v9P3YB8+AZcAJe2p6g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtfedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeetjedvteffjeeuvdelieeffeehuedthffgvdfhhffh kedvudevgedvjedufefgveenucfkphepjeehrddujedvrddugedrudejnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id 03C91108005C; Mon, 21 Dec 2020 17:51:44 -0500 (EST) Subject: Re: Missing rows after migrating from postgres 11 to 12 with logical replication To: Lars Vonk Cc: pgsql-general@postgresql.org References: <4f884e1e-99fb-f29a-4ee6-f7c0fa039331@aklaver.com> <9f505de4-440d-f4c8-4f8a-70e7abd0ed00@aklaver.com> From: Adrian Klaver Message-ID: <5b0a4d0d-651e-dd4b-07c2-b66a3a0e68b3@aklaver.com> Date: Mon, 21 Dec 2020 14:51:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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