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 1lEtrK-0001oF-IY for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Feb 2021 13:05:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lEtrJ-00085U-GG for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Feb 2021 13:05:41 +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 1lEtrJ-00085H-6z for pgsql-hackers@lists.postgresql.org; Wed, 24 Feb 2021 13:05:41 +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 1lEtrG-0007vd-N2 for pgsql-hackers@postgresql.org; Wed, 24 Feb 2021 13:05:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1614171939; x=1645707939; h=to:cc:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding:subject; bh=VazpfnjiW9mDgsvEEKdnX8FMX80wWGpYrXMVA5CO2Q4=; b=nvWw5MQ1jRvBuIswwdIEDWIzznNIGrmnjFpDkChxkDatcg8QoCOhgfLL gvUOZ/0CWJ2bUTJD81DuZnyAcnDn/iVAWSaCQvMo3PhYxvWGlmLasM9aa AJBqG0c/0/3mSUERtjBggNUKb2lB7egRiuxWsCaRthegqFDcrUwI+eAjY Y=; X-IronPort-AV: E=Sophos;i="5.81,203,1610409600"; d="scan'208";a="87459746" Subject: Re: [BUG] segfault during delete Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 24 Feb 2021 13:05:30 +0000 Received: from EX13D03EUC003.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com (Postfix) with ESMTPS id 79AF9A1A82; Wed, 24 Feb 2021 13:05:29 +0000 (UTC) Received: from 38f9d36c4abb.ant.amazon.com (10.43.161.146) by EX13D03EUC003.ant.amazon.com (10.43.164.192) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 24 Feb 2021 13:05:27 +0000 To: Amit Langote CC: PostgreSQL-development References: <39a71864-b120-5a5c-8cc5-c632b6f16761@amazon.com> <1240b37c-6515-07c6-3779-cdb33d6c4701@amazon.com> From: "Drouvot, Bertrand" Message-ID: Date: Wed, 24 Feb 2021 14:05:23 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 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.161.146] X-ClientProxiedBy: EX13d09UWC004.ant.amazon.com (10.43.162.114) To EX13D03EUC003.ant.amazon.com (10.43.164.192) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/24/21 1:59 PM, Amit Langote wrote: > > On Wed, Feb 24, 2021 at 6:12 PM Drouvot, Bertrand wrote: >> On 2/24/21 9:12 AM, Amit Langote wrote: >>> I've attached a patch with my suggested fixes and also test cases. >>> Please take a look. >> I had a look and it looks good to me. Also the new regression tests are >> doing it right and are segfaulting without your patch. >> >> That's all good to me. > Thanks. > >> That fix should be back ported to 12 and 13, do you agree? > Yeah, I think so. great, patch added to the CF. Bertrand