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 1mRB5D-0000rH-Of for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Sep 2021 10:27: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 1mRB5B-0006ed-M0 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Sep 2021 10:27:01 +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 1mRB5B-0006eV-By for pgsql-hackers@lists.postgresql.org; Fri, 17 Sep 2021 10:27:01 +0000 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mRB58-00065W-Vl for pgsql-hackers@lists.postgresql.org; Fri, 17 Sep 2021 10:27:00 +0000 Received: by mail-qk1-x736.google.com with SMTP id bk29so15855176qkb.8 for ; Fri, 17 Sep 2021 03:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dq0NqKOG3V7hVdq+thYR/KO79LLYXUFuVjkzvo/oaIo=; b=aF5lE5iAzZpCcyPUqyTkIJWdmVnz9Ll6Wch/BbnrcmN/9waPE6DpJDbk9bsb9gBdnG ejJ6BAQu8lMrBZ3f/qKYjUOHJQ8d6qkswyaOmWa0Gu66g97w7fHA27FHjzJXl+nzDoC8 BBll2+ov5l+Z/1fW2/deFYjwaGNPbHwbCUUAsh8AvS05DtgTExtmQxGVCp9XK+0SnG72 KaDuMIHm7Qv4ei1JgZhw2MT5OzZ9YRmfO8et8XEPG4v74NyFfxuRtX2nW8zxsnP1OjK6 rQgZ6HzA+yLkbkbavogk8L3NJVXpTiwRruQ6vUPjLKbq03iJhiyaE/02EBHjsXOt3A60 RK/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dq0NqKOG3V7hVdq+thYR/KO79LLYXUFuVjkzvo/oaIo=; b=1NtpOfWEH2bWFiEhSm7t3MC7RLwc2FePiJpCg71aLvNPE2p30aOKTJRsWhGb5+S5A+ rIKfPzTAiUpZgAcWz1vhiFBLoPEjXuX3HmjqNYbRIyXaUQHp5FIl/e0+1h1YCrbNrKHJ fl8uiIh3vby4G87QsxOYpYkZGHyW7qpEKwp+EcmrqF9IVgcGpifZLZ+XHOz+3AREMsVm DkUBOjvM/bkwVn8Rs9asfxH8Gio9CtFlXpZXH1T7ES+hpgtiuiGTSCj6OMh2b3MjJwmA 0K23xxR4sAk5P4blKgXrlMhean3GjBJpTcfOc1SjgCtmmQtgbnDw9DrbA2W4NYwdqDAC 46yQ== X-Gm-Message-State: AOAM533vBWZC/Z0X0YwSj5fIiNyD0pbu84Zs+U3MU90cO2R0ZV04u+9J MoQ/W1VkKpRipRDITmpS43lyxqxXd055/12ioB4= X-Google-Smtp-Source: ABdhPJwD49Z8pNR8ZHUnscl8rrOrgySCDPz36Ltehq0is/ovs7jmW1CX63IK6WmqLchEcuFejwXrMgH04E//P2yo6+g= X-Received: by 2002:a25:2ccf:: with SMTP id s198mr11866296ybs.452.1631874416413; Fri, 17 Sep 2021 03:26:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 17 Sep 2021 15:56:45 +0530 Message-ID: Subject: Re: Logical replication timeout problem To: Fabrice Chapuis Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Sep 17, 2021 at 3:29 PM Fabrice Chapuis wrote: > > Hi, > > Logical replication is configured on one instance in version 10.18. Timeout errors occur regularly and the worker process exit with an exit code 1 > > 2021-09-16 12:06:50 CEST [24881]: [1-1] user=postgres,db=foo,client=[local] LOG: duration: 1281408.171 ms statement: COPY schem.tab (col1, col2) FROM stdin; > 2021-09-16 12:07:11 CEST [12161]: [1-1] user=,db=,client= LOG: automatic analyze of table "foo.schem.tab" system usage: CPU: user: 4.13 s, system: 0.55 s, elapsed: 9.58 s > 2021-09-16 12:07:50 CEST [3770]: [2-1] user=,db=,client= ERROR: terminating logical replication worker due to timeout > 2021-09-16 12:07:50 CEST [12546]: [11-1] user=,db=,client= LOG: worker process: logical replication worker for subscription 24106654 (PID 3770) exited with exit code 1 > 2021-09-16 12:07:50 CEST [13872]: [1-1] user=,db=,client= LOG: logical replication apply worker for subscription "subxxxx" has started > 2021-09-16 12:07:50 CEST [13873]: [1-1] user=repuser,db=foo,client=127.0.0.1 LOG: received replication command: IDENTIFY_SYSTEM > Can you share the publisher-side log as well? -- With Regards, Amit Kapila.