Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCUhb-0005lh-Tm for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Sep 2019 20:12:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCUha-0004sL-Pl for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Sep 2019 20:12:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCUha-0004ra-Bg for pgsql-hackers@lists.postgresql.org; Mon, 23 Sep 2019 20:12:54 +0000 Received: from mail-yw1-xc44.google.com ([2607:f8b0:4864:20::c44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCUhW-0007HM-Sy for pgsql-hackers@lists.postgresql.org; Mon, 23 Sep 2019 20:12:53 +0000 Received: by mail-yw1-xc44.google.com with SMTP id i207so5754819ywc.9 for ; Mon, 23 Sep 2019 13:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=fMJnCia1h/8QjXwU6RxExLsg5gEA77WAMSQxXuFpRWU=; b=P8hprqHE+BmGPzXvQrKSVQmCmHVRkVkbRfDfxrPKZC5UIkLU4Ti9RBBQXGR2TJfrDE oBdJRF8qFwKGc2ebZIcaDWRntWOlciUQpRwHYWj4Q7IDdnUyVnYJNuVTgObZNKvPclNV yp4zPXkN2ptOuK+dDZ5++5SH/61ynLZdemej3eEtW0knc+8L1aELCRgKANYajO1VFf4o SDamv0PTiutuFVQsdVcdy2hZ7smB4skWzwC+qiqT8aYTBsciIjM3zO1xJhgZvFqPxAbL Xr5NzPRF+Oa/kHqcM7eNXUCo+Lzc1OCz1Qdks3Xsup0Ge65YJ4rEEluRtW5LC/PLrjIC osvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=fMJnCia1h/8QjXwU6RxExLsg5gEA77WAMSQxXuFpRWU=; b=ActNAYspwumU1blq05h25h0C2KNMiKr3ZQ8S98AFRgvSoSmBX6aj/6/2vbC3gPiItO cGJwAHHb1G/cibTVVPlcr1IE4FiilRhoXNrZd7RhSbOpY0Pt0B3S+f7VgfQpMf3fLULy VXmboJCprQV4RH84hyZJae0Kl8JiU5Bx2/jQo63frbJn5YF6c9bwSA+Qz/rDyk3S+vmc AOAWhLWkgdr3URsCzFlHMRvSz4NDSgWwWIknKXCwCnWHy/yy0hmUdzYSyN0rIs3SqRLI ptvI1hZ7ruldryDMOrxU9lvBcGl6+fqaIz5ecUGjD6JQvA3y4fK5h/rE0ZnIdApCccJe TElQ== X-Gm-Message-State: APjAAAWFEPQLmpV1er2/dKT2JdVtOUHK4wvXE3uo7rp9n8A6FLbVkiuP eZ4lGtutfO9yTMrQettGFzvAfQR6EsKg+2S05kEwfE+HykdfNX7/7FuuIZxDaSvLFWO7/TNIQEm D2YPaxeN4KEv0CcbTzOZtK/+S4T2H42Gcbs0JSGi7QcNBDs7ZBU7XUe4uyNkzYG07X1RhNOgTfx FmK/OY+5iReRz9A+ZEr+uqUk0= X-Google-Smtp-Source: APXvYqwBU/D7Sm2to+Z5587hw1iLB5jDrWtET550yB/AXK8neMZmCoVSqqIiAo9Vww8ufiBwoPiESQ== X-Received: by 2002:a0d:d7d1:: with SMTP id z200mr58046ywd.464.1569269568430; Mon, 23 Sep 2019 13:12:48 -0700 (PDT) Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net. [99.10.92.30]) by smtp.gmail.com with ESMTPSA id v204sm2790903ywb.23.2019.09.23.13.12.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Sep 2019 13:12:47 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: subscriptionCheck failures on nightjar To: Tom Lane , Alvaro Herrera Cc: Andres Freund , Kuntal Ghosh , Michael Paquier , Tomas Vondra , Robert Haas , Thomas Munro , PostgreSQL Hackers References: <20190920220620.GA5214@alvherre.pgsql> <4218.1569017822@sss.pgh.pa.us> Openpgp: preference=signencrypt Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNL0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+wsCY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUJDyV6hBYhBOQ+WEYd/Hy/RGkV pZn6f8tZ/DuBBQJcH/EVAhkBAAoJEJn6f8tZ/DuB7BEH/iDWZEbVft2m2MT6SPjARzTupt/l xLLZ/Cl6n2US2hov5+fBbnR5xvECk/YCOfG9ICvKNlpFjceq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rant.com> Date: Mon, 23 Sep 2019 16:12:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <4218.1569017822@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/20/19 6:17 PM, Tom Lane wrote: > Alvaro Herrera writes: >> Uh .. I didn't think it was possible that we would build the same >> snapshot file more than once. Isn't that a waste of time anyway? Maybe >> we can fix the symptom by just not doing that in the first place? >> I don't have a strategy to do that, but seems worth considering before >> retiring the bf animals. > The comment near the head of SnapBuildSerialize says > > * there is an obvious race condition here between the time we stat(2) the > * file and us writing the file. But we rename the file into place > * atomically and all files created need to contain the same data anyway, > * so this is perfectly fine, although a bit of a resource waste. Locking > * seems like pointless complication. > > which seems like a reasonable argument. Also, this is hardly the only > place where we expect rename(2) to be atomic. So I tend to agree with > Andres that we should consider OSes with such a bug to be unsupported. > > Dromedary is running the last release of macOS that supports 32-bit > hardware, so if we decide to kick that to the curb, I'd either shut > down the box or put some newer Linux or BSD variant on it. > > Well, nightjar is on FBSD 9.0 which is oldish. I can replace it before long with an 11-stable instance if that's appropriate. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services