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 1pVBsM-0001Ok-O7 for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 13:43:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pVBsL-0008S3-FS for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 13:43:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVBsL-0008Ru-2Y for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 13:43:09 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVBsI-0006ek-8v for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 13:43:08 +0000 Received: from [192.168.1.113] (dsl-hkibng22-54f8db-125.dhcp.inet.fi [84.248.219.125]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id B53A71B001D8; Thu, 23 Feb 2023 15:43:02 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1677159782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tK9nXmTwhztBFd+hnOE2l2/FX/jYuep/9KZmEPOI0lg=; b=sdADTRvm5vWxli34/aQd5cWRxYiN50zvB7+avQWxRAltGUbZXViBNg7gyY6LqFm46ImUea j7iTBU3X8bYUwdlYc94s2GPNWX90hRD4qYC2VxrFRcqR9isP9TJE638zAeo4K8yuWvXNKJ McetoQW+f/aDjWLkcZQo3c6ypPdnZHo8UC6yB3z5F2tioavPWP+0lrS/j0sK0WdoIxDsLJ iIWjLqcAGV3I1VBPH1zXgnNpWCzEamavmuGh7c1VMP4StjCSsM4YziJYg8pMULt/ulYuOM AIK5V1CLGhjkMAFD4RDLlruIwBzZe0OxCPltOyXhoaWQKvnLfgTRPVbsq24oHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1677159782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tK9nXmTwhztBFd+hnOE2l2/FX/jYuep/9KZmEPOI0lg=; b=Nz8VhJR3cNO0bZkplsjQlaKKAEGod6UvSmEysaK6j6SPGS12Ua7kObLDZPnFg19ccFVhL3 f77jss+K3sOciy7U5MJLVLJ61Se5xAsdIV/cd9TvHsNsYl6HHg4ZDfQPWm84TjOyIBl6mA fXzsTE0tt/nUQJkUbngljbpE+oFJSaNH5nBRV8PctqKgqymc26+l5FN1Sxjm3HdpC7NhUt Tunqc/8gGRUpjkAl08NQRYFIselv7TLat2QXj9OhV3zXfC1JUfFoKoWcnzG2hLiNAAaCYm c91hzeEiCAJC/bTEkxRIogfKXgSSkSkW3dDER5unPd/JYW3uixy0S41PSKoXmA== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1677159782; a=rsa-sha256; cv=none; b=mWeM7iXLBL/RIjaAXmpsDK/7xaqf1UZTWIixpHsMCtZ0Is/yjEDA0fzmEIOigsdsJl0Yfc bBbNU6aFvYFp2VKEnMfan4Xj+lRkhHtTV7H89Qp+1gQNuQjED1Vrat9qoPgDcQIv9S66Xm mgZN+ctdSlUH41m8WEkSD2tihT1L3yPyWGnqr8+iSps/P9JUSARqndy/aXNOobV7vJFawa ZPS/PS6hskNX/45HgULK9j3IZawrX9G08dORKzAeR93JXRboxSQ+9UBdJL8+dFdeo5FmAF Av+dbd0zTOT5st13CqS5b3ukQscWu/hEwnOAbSJ+g98KcuJDze9TfUFIVtabLQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi Message-ID: <55b992da-c362-7474-1251-e1fe34eb136b@iki.fi> Date: Thu, 23 Feb 2023 15:43:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: pg_rewind race condition just after promotion Content-Language: en-US From: Heikki Linnakangas To: PostgreSQL Hackers Cc: Aleksander Alekseev , Ian Lawrence Barwick , Daniel Gustafsson , Ibrar Ahmed References: <9f568c97-87fe-a716-bd39-65299b8a60f4@iki.fi> <162626420228.1167.13414583689741111142.pgcf@coridan.postgresql.org> <492590F3-9566-4AC2-986D-6CFB35B110CD@yesql.se> <848e03ce-0c16-2166-3994-f2c3dcf467d0@iki.fi> In-Reply-To: <848e03ce-0c16-2166-3994-f2c3dcf467d0@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22/02/2023 16:00, Heikki Linnakangas wrote: > On 11/12/2022 02:01, Ian Lawrence Barwick wrote: >> 2021年11月9日(火) 20:31 Daniel Gustafsson : >>> >>>> On 14 Jul 2021, at 14:03, Aleksander Alekseev wrote: >>>> >>>> The following review has been posted through the commitfest application: >>>> make installcheck-world: tested, passed >>>> Implements feature: tested, passed >>>> Spec compliant: tested, passed >>>> Documentation: tested, passed >>>> >>>> The v3 patch LGTM. I wonder if we should explicitly say in pg_rewind tests that >>>> they _don't_ have to call `checkpoint`, or otherwise, we will lose the test >>>> coverage for this scenario. But I don't have a strong opinion on this one. >>>> >>>> The new status of this patch is: Ready for Committer >>> >>> Heikki, do you have plans to address this patch during this CF? >> >> Friendly reminder ping one year on; I haven't looked at this patch in >> detail but going by the thread contents it seems it should be marked >> "Ready for Committer"? Moved to the next CF anyway. > > Here's an updated version of the patch. > > I renamed the arguments to findCommonAncestorTimeline() so that the > 'targetHistory' argument doesn't shadow the global 'targetHistory' > variable. No other changes, and this still looks good to me, so I'll > wait for the cfbot to run on this and commit in the next few days. Pushed. I decided not to backpatch this, after all. We haven't really been treating this as a bug so far, and the patch didn't apply cleanly to v13 and before. - Heikki