Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sWWuw-00FhZT-Eg for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2024 08:00:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sWWut-002JIT-62 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2024 08:00:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sWWus-002JIL-IR for pgsql-hackers@lists.postgresql.org; Wed, 24 Jul 2024 08:00:06 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sWWup-001ATZ-VG for pgsql-hackers@postgresql.org; Wed, 24 Jul 2024 08:00:05 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-52efabf5d7bso4301224e87.1 for ; Wed, 24 Jul 2024 01:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721808002; x=1722412802; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=X3A44JhiTjFa2+IvsPXng+p5pfyTIZUblsiBehJoAz4=; b=Nb/RRj+/diuJ2IsXEla4FFafKnZKbUJVlpJsS1dP8XcZubDjz7b8th6gSW0D3P0Xvt wGMmmTywCZBzwnI1B9MhQW+GN8xpuRa4kseqJ4+LGUqpUVkiQONTOeABerVQezT7/855 moOdTZ7XvvIvzG7CsOJ0LN9RMIK/KLBvfYXnin8WdVdsKkj4VA9GXsOaLAKZ31QqzhlI sHAsOOkp8UVITkumMXRdc8GNzF/avd6R7OwPt0ON0zgLCgaIOPzcmKydnedIRv45YPHf iw6xXvDygY1rtIcgD/Atb6iHyyGS0R5mCs+l4oW3xxrxY6o8zff7rjtaIEGq9BLytnGg zKww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721808002; x=1722412802; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X3A44JhiTjFa2+IvsPXng+p5pfyTIZUblsiBehJoAz4=; b=XklHlUMVMDIS+fC6xQMepoHu0YugMqcmfE3EbJlfP7ZHoPbyUtr7PtlvHRyjA/U8OH hj9Rj+la5E+zvnXpa/QUvrKOoj7Hflp7m3lKZLhJgYw8+kC8R3q2NYxp+bMz6orORPkn qyEaMfAuRFm86RvdvXe9qmGXp83AbVlEscP5m4a+kXZ6d51clO6m8NAutgqCdWegTZ05 eydLNamFVhXxWzleJom85dBmmt5wvisWaVKFjYMwmH04mCB6DDDMtBpFdUeePHb0KG8p ScY7yb2BdJETCOA8ILEaME36PJRH4FAOvYM4kO/mgIt3aoW3BZGexul4dk1uUWvhZFwJ UZEg== X-Forwarded-Encrypted: i=1; AJvYcCUOfyCrNZRQZcwgPtRTPYCQ1JVHSn62ZvHmkzkAhC2Mc3CKbFxhlxnkMtfPdg8P8BVmusgWR5KObuMQC+VuWaxkgi9MqEdEzsz6PboN X-Gm-Message-State: AOJu0YxUa/djgJmqGfAXqVg/4nwuMJoDCGrxHXhW9nU+XMtcaYzPBUPZ Xp/QKWXkMmLaB4dbNad89nVrzwJi4QGr7WauuHV+CeAAQI2mT1oY X-Google-Smtp-Source: AGHT+IEqfk7YxBpSOb3lhRQ3PgBHa1dlqTicukv+N/KZuA0+KEliCqHc3rI5hi14Oayc6MkBfihLoA== X-Received: by 2002:a05:6512:158e:b0:52e:fcb5:dc9e with SMTP id 2adb3069b0e04-52fcf15536bmr793846e87.61.1721808001998; Wed, 24 Jul 2024 01:00:01 -0700 (PDT) Received: from [1.0.0.7] ([178.155.22.157]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ef5581685sm1819854e87.298.2024.07.24.01.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jul 2024 01:00:01 -0700 (PDT) Message-ID: <7ff9de7f-7203-cad9-76d9-45497cbedac7@gmail.com> Date: Wed, 24 Jul 2024 11:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: race condition when writing pg_control Content-Language: en-US To: Thomas Munro , Noah Misch Cc: Andres Freund , Tom Lane , Nathan Bossart , Melanie Plageman , Michael Paquier , Fujii Masao , "pgsql-hackers@postgresql.org" References: <20200603020259.GA89559@paquier.xyz> <20240516183558.GA1620903@nathanxps13> <2136775.1715885450@sss.pgh.pa.us> <20240516185805.hnbt2tr23q7xbx3m@awork3.anarazel.de> <2138498.1715886091@sss.pgh.pa.us> <20240516190744.6beu43cjdvrml6uw@awork3.anarazel.de> <20240712114322.08.nmisch@google.com> From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Thomas, 15.07.2024 06:44, Thomas Munro wrote: > I'm going to upgrade this to a proposal: > > https://commitfest.postgresql.org/49/5124/ > > I wonder how often this happens in the wild. Please look at a recent failure [1], produced by buildfarm animal culicidae, which tests EXEC_BACKEND. I guess it's caused by the issue discussed. Maybe it would make sense to construct a reliable reproducer for the issue (I could not find a ready-to-use recipe in this thread)... What do you think? [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=culicidae&dt=2024-07-24%2004%3A08%3A23 Best regards, Alexander