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 1kxlUP-0003PZ-Pv for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Jan 2021 06:43:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxlUO-00014u-6K for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Jan 2021 06:43:12 +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 1kxlUN-00014m-Q5 for pgsql-hackers@lists.postgresql.org; Fri, 08 Jan 2021 06:43:11 +0000 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxlUH-00071x-9o for pgsql-hackers@postgresql.org; Fri, 08 Jan 2021 06:43:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1610088185; x=1641624185; h=to:cc:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding:subject; bh=zocdbe3/s+6Wi/AyAuFqWsxyQuiEnnK74HiwVdFXYV0=; b=n7PK2zuxt0nyvHSNRjLVQfzVGZD9aTkBCx4mJB50TxT4ujdeXMCwosLA PB2pxaYjA2C0BV2Ozir9CEbp1ExSmJuBgKeA3yBN5BPoZ5txecij/95jc xnv3XIriy+4R8RJEn3ykv25QQ1LUvFuFf4K3Y2tBKaW84dO1jm5yH7Wtu w=; X-IronPort-AV: E=Sophos;i="5.79,330,1602547200"; d="scan'208";a="73546526" Subject: Re: Add Information during standby recovery conflicts Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-821c648d.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 08 Jan 2021 06:42:56 +0000 Received: from EX13D03EUC003.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1a-821c648d.us-east-1.amazon.com (Postfix) with ESMTPS id 17F3BA19D5; Fri, 8 Jan 2021 06:42:54 +0000 (UTC) Received: from 38f9d36c4abb.ant.amazon.com (10.43.160.205) by EX13D03EUC003.ant.amazon.com (10.43.164.192) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 8 Jan 2021 06:42:50 +0000 To: Fujii Masao , Masahiko Sawada , Alvaro Herrera , Kyotaro Horiguchi , Masahiko Sawada CC: PostgreSQL-development References: <20201130182528.GA1854@alvherre.pgsql> <594f4419-62aa-c272-ef7d-4287e5c6b654@amazon.com> <627f702d-a04c-b72b-b94f-214f448e2935@oss.nttdata.com> <73037867-b688-c5cc-5f6d-ad73db6ab94d@amazon.com> <02b17df8-cf11-7e5a-31e3-d94c87b28775@oss.nttdata.com> <5517bbfd-27ad-3e97-51e2-cb9ffb8f8a8d@amazon.com> <2ae8a3a6-9647-b08f-90c3-bd57a14755f9@oss.nttdata.com> <6e5b7836-06a2-0a0a-0ef9-a6572789cc6b@amazon.com> From: "Drouvot, Bertrand" Message-ID: Date: Fri, 8 Jan 2021 07:42:46 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; 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-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.43.160.205] X-ClientProxiedBy: EX13D19UWA003.ant.amazon.com (10.43.160.170) To EX13D03EUC003.ant.amazon.com (10.43.164.192) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/8/21 7:24 AM, Fujii Masao wrote: > CAUTION: This email originated from outside of the organization. Do > not click links or open attachments unless you can confirm the sender > and know the content is safe. > > > > On 2021/01/08 14:02, Drouvot, Bertrand wrote: >> Hi, >> >> On 1/7/21 4:51 PM, Fujii Masao wrote: >>> Thanks for the review! I pushed the latest patch. >>> >> Thanks all of you for your precious help on this patch! >> >> The original idea behind this thread has been split into 3 pieces. >> >> Pieces 1 (9d0bd95fa90a7243047a74e29f265296a9fc556d) and 2 >> (0650ff23038bc3eb8d8fd851744db837d921e285) have now been committed, >> the last one is to add more information regarding the canceled >> statements (if any), like: >> >> * What was the blocker(s) doing? > > This "canceled statement" is just one that's canceled by recovery > conflict? > If so, the blocker is always the startup process? Sorry maybe I fail to > understand this idea well.. > > By blocker, I meant the one being canceled (I had in mind the startup process being the blocked one, not the blocker one). Sorry if i have not been clear enough. As an example, it could provide things like: 2020-06-15 06:48:54.778 UTC [7037] LOG: about to interrupt pid: 7037, backend_type: client backend, state: active, wait_event_type: Timeout, wait_event: PgSleep, query_start: 2020-06-15 06:48:13.008427+00 2020-06-15 06:48:54.778 UTC [7037] ERROR: canceling statement due to conflict with recovery > Anyway if you post the patch, I'm happy to review that! Thanks! Bertrand