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 1jlQql-0006Jv-0p for pgsql-general@arkaria.postgresql.org; Wed, 17 Jun 2020 05:43:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jlQqi-0006lq-Gp for pgsql-general@arkaria.postgresql.org; Wed, 17 Jun 2020 05:43:00 +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 1jlQqi-0006li-6Q for pgsql-general@lists.postgresql.org; Wed, 17 Jun 2020 05:43:00 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jlQqf-0006Vl-PM for pgsql-general@postgresql.org; Wed, 17 Jun 2020 05:42:59 +0000 Received: by mail-lf1-x134.google.com with SMTP id u25so534537lfm.1 for ; Tue, 16 Jun 2020 22:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=wqVMCfuj9h3ZGNKMUxMrMan34I7ztvlR9zeu5K4JF/w=; b=BplFK884gaar40Vpb3er06+gmgE0LhL5K4nI5PuiwEw5STHow5TaARFCBqFW8QTdmE /MRz1ziFKmEdfit2yzeOLXam7nzB3bvvznJN9tWRzr+mKz2UWi1jxuUSHE/NS6dtrzyp RpPnr1z9GEbUbSAev19uxWtLsFAeo2taArQDvXlgLNOWSlZ/8xPLGt/r08nUkI4qDdrJ WuPRZsbegKn16AZzA/kEFiABpnaE2cY8rZS1t5rBj0RS8+oCGKV5MZpE1xtBPy6z6ANR z2yCBu9JmcaZMXDtKZ+rr100xYpkv6BfMlbl5McOzRqdu5EbvoB80iLZToo5nvm0gsAw 7uDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=wqVMCfuj9h3ZGNKMUxMrMan34I7ztvlR9zeu5K4JF/w=; b=oGERexMA3N21R/q21de3IgPmCPDH5AZnny0OvSoapx0Ho6lbubYyLUNk7YxdYFX6fl pzSjP+BPoxJ0u4vAhAH77FyTfGs4xeetXqK5TUgJTVmH96r6VlVUpTV9oYVnKJkixKRR lWX+4LoOm5ect774PpKEDE7racEYa9psqIlfY2ensAs3Iz7RViN5m4+RLF+Ko/P5TfSh T7KX5KGqZOU5VczvWXeN/iDKJoFeXY/nPoM50GVTBTXr2IhUNAia/7xo1EBl/XkHgY0D fJQl1hxtVD4cWR23Ex2O8ZtehcsugsvYOmGiNcydKt1l5v65k5E/p68JgZXUkoDehZ6D UvTg== X-Gm-Message-State: AOAM531Y2C8jxnXbQQraWLOBhVoYfhV8ZgRzvfkn5msydVsdpyziJg8r tkwAYSQSW7JvFcbDH7YujYWalB6v X-Google-Smtp-Source: ABdhPJyZJWmF6NHv9mYmc7+Hz1qfAaGhyzWYo5Qga67JWMhQ+aGf4H/Q30UfUNY6Kah5XBQVRJcTng== X-Received: by 2002:ac2:5dc8:: with SMTP id x8mr3554729lfq.71.1592372575908; Tue, 16 Jun 2020 22:42:55 -0700 (PDT) Received: from [192.168.10.104] (133-225-29-85.dyn.estpak.ee. [85.29.225.133]) by smtp.gmail.com with ESMTPSA id k22sm5763577lfg.69.2020.06.16.22.42.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2020 22:42:55 -0700 (PDT) From: Toomas Kristin Content-Type: multipart/alternative; boundary="Apple-Mail=_80AE4622-C181-433C-A122-F214BA81A897" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Conflict with recovery on PG version 11.6 Message-Id: <5726DC60-FA11-494F-AC0C-D418DDCC895F@gmail.com> Date: Wed, 17 Jun 2020 08:42:52 +0300 To: pgsql-general X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_80AE4622-C181-433C-A122-F214BA81A897 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi! Basically after upgrade to version 11.5 from 10.6 I experience error = messages on streaming replica host =E2=80=9CFATAL: terminating = connection due to conflict with recovery=E2=80=9D and =E2=80=9CERROR: = canceling statement due to conflict with recovery=E2=80=9D. There is no = changes for vacuuming on master nor max_standby_streaming_delay for = replica. I tried to correlate errors with vacuuming process on master = but according to logs there is no link between them. Somehow I have = feeling that when query runs longer than value for parameter = max_standby_streaming_delay the query will be terminated regardless = vacuuming process on master. Is there any changes on version 11.5 what may cause it? Is there any good solution without setting = max_standby_streaming_delay=3D-1 or enabling hot_standby_feedback? BR, Toomas --Apple-Mail=_80AE4622-C181-433C-A122-F214BA81A897 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi!

Basically after upgrade to version 11.5 from 10.6 I = experience error messages on streaming replica host =E2=80=9CFATAL:  terminating = connection due to conflict with recovery=E2=80=9D and =E2=80=9CERROR: canceling statement due to conflict with = recovery=E2=80=9D. There is no changes for vacuuming on master = nor max_standby_streaming_delay for replica. I tried to correlate errors = with vacuuming process on master but according to logs there is no link = between them. Somehow I have feeling that when query runs longer than = value for parameter max_standby_streaming_delay the query will be = terminated regardless vacuuming process on master.

Is there any changes on = version 11.5 what may cause it?

Is there any good solution without = setting max_standby_streaming_delay=3D-1 or = enabling hot_standby_feedback?

BR,
Toomas

= --Apple-Mail=_80AE4622-C181-433C-A122-F214BA81A897--