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 1jmHK5-0001zx-Tl for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 13:44:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jmHK4-000871-RA for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 13:44:48 +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 1jmHK4-00086u-Jo for pgsql-general@lists.postgresql.org; Fri, 19 Jun 2020 13:44:48 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jmHK2-0004eB-67 for pgsql-general@postgresql.org; Fri, 19 Jun 2020 13:44:48 +0000 Received: by mail-ed1-x542.google.com with SMTP id o26so7685293edq.0 for ; Fri, 19 Jun 2020 06:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=suPI7oGLNCU6Gva5Uu1fW7eFbUnMA/HVpoGCTyIjuXY=; b=aTZdxHK9sMkIcMn+Q+vcWKenuYctCDBSktNxf/VJRpFmiXEPsw9QgvNhw0eISqAcKt aLWRHkYVRc/+igGN0AkwZXvvvm+049oSkzuqmAStuoqqhJLtonLPBm5FQyOR0IofS2yt WoSBW8/vYqJfgNXRwSwgWi9x0HWH/KbkCJNM/b/d2FduvSt0+sDlVH5Zuy9Fb9HMWTkn gs4EP8FO9Kp9Q0B9tMs1ieshfSWOjplAMQX0O6lK2YDCyLwV+wGSENTYXZMijq7iUBEi qF0/WWiS1lAauj/JGSnJaWim58a0VmdI2DXTUlV0+wkZGXycjRtx/01fSO21o+RXPyz0 GMfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=suPI7oGLNCU6Gva5Uu1fW7eFbUnMA/HVpoGCTyIjuXY=; b=LRhz7tvKD4CH3Y1Ym+1bF9fZQ0kaW9bIipRpGC3HJyz47YVZHvSckaec/YdudWOyFk sE3jvnBUP2aN1OXkByTJSSn968bKUl62+vKtibkVUYSrXoYuiWTihj93qeUWQ88rUnyQ tYYhTsZVXA8QGENynBXe2701B8SSmkXGZqvHmSZ3l6ZQuUMq3rjxXxss1ArIq5u10Bi+ FvvIv5FCDT6UPwC1Ql0heEbuyYtHLM+JPUbqG74EGyJLfT2UPAwfflsEclVDHpewRNt2 sMb2nDBkcXtNZKSO1qo+ET+S2u2xhII7x8h5yFsx+5xmn3APoFiIMVSObn2vUXe4eE21 JI1w== X-Gm-Message-State: AOAM530Grb60lo/LYzkwppNAwZX1/GmmsDkjy/7xQNt+OI1FAj0awa+1 X05EkWSDx188p3qb38GEpDIxjg== X-Google-Smtp-Source: ABdhPJxS18R6DQUHtzDXUj2PrLTqg2Th+bGiCOj6nrd+H6FVVJ/w6nZKabDwubPg0yOwLRii4aZ2Og== X-Received: by 2002:aa7:d041:: with SMTP id n1mr3257787edo.196.1592574285628; Fri, 19 Jun 2020 06:44:45 -0700 (PDT) Received: from localhost.localdomain (217-149-174-45.nat.highway.telekom.at. [217.149.174.45]) by smtp.gmail.com with ESMTPSA id sa19sm4896956ejb.15.2020.06.19.06.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 06:44:45 -0700 (PDT) Message-ID: Subject: Re: Conflict with recovery on PG version 11.6 From: Laurenz Albe To: Toomas Kristin , Kyotaro Horiguchi , pgsql-general Date: Fri, 19 Jun 2020 15:44:44 +0200 In-Reply-To: References: <918BFA04-B89D-4F29-9868-0A113AD72F52@gmail.com> <2d05bf2ad62fc71a5df3d9ba4e75fa300e3e020c.camel@cybertec.at> <20200619.151301.1212338526785241016.horikyota.ntt@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 2020-06-19 at 11:46 +0300, Toomas Kristin wrote: > I executed a database dump with 4 jobs and here are logs how this ended. > > 2020-06-19 02:38:28 UTC:[30953]:ERROR:40001:canceling statement due to conflict with recovery > 2020-06-19 02:38:28 UTC:[30953]:DETAIL:User query might have needed to see row versions that must be removed. > 2020-06-19 02:38:28 UTC:[30953]:LOCATION:ProcessInterrupts, postgres.c:3057 > 2020-06-19 02:38:28 UTC:[30953]:STATEMENT: > 2020-06-19 02:38:28 UTC:[30926]:FATAL:40001:terminating connection due to conflict with recovery > 2020-06-19 02:38:28 UTC:[30926]:DETAIL:User query might have needed to see row versions that must be removed. > 2020-06-19 02:38:28 UTC:[30926]:HINT:In a moment you should be able to reconnect to the database and repeat your command. > 2020-06-19 02:38:28 UTC:[30926]:LOCATION:ProcessInterrupts, postgres.c:2987 > 2020-06-19 02:38:28 UTC:[30952]:ERROR:40001:canceling statement due to conflict with recovery > 2020-06-19 02:38:28 UTC:[30952]:DETAIL:User query might have needed to see row versions that must be removed. > 2020-06-19 02:38:28 UTC:[30952]:LOCATION:ProcessInterrupts, postgres.c:3057 > 2020-06-19 02:38:28 UTC:[30952]:STATEMENT: > 2020-06-19 02:38:28 UTC:[30953]:LOG:08006:could not receive data from client:Connection reset by peer > 2020-06-19 02:38:28 UTC:[30953]:LOCATION:pq_recvbuf, pqcomm.c:978 > > Does it give any hints for anyone? Or how to find right version of source code what to analyse? Yes, that are conflicts with VACUUM. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com