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 1gtyXn-0001hH-IA for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 17:41:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtyXm-0004Sl-6R for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Feb 2019 17:41:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtyXl-0004B9-Op for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 17:41:57 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtyXi-0005Vm-VS for pgsql-hackers@lists.postgresql.org; Wed, 13 Feb 2019 17:41:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id C4643D1FD; Wed, 13 Feb 2019 12:41:53 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 13 Feb 2019 12:41:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=qXmBVrNGWMguoLwlzLI1kWOggZC RQ9N2ZVHANYM2M0U=; b=eGVpUDXVVRqIuKrdIYJdwmwzE1hGv2gBVsfFR/CWmRX vCJSwtpprQ9ucAwD9I/n57lACEXdUL9mIFe1vzQ4IwcoPuIcfczXyWmTZEq/sGI7 RjEfzmD/olj2qeOh0IDGUCvprzL5pycGVltbN12Tyfixd/6o0gq2WJL5elQf/7YX VRKE49F0YHjOOE4iIdfl5xawkEES88OHQoVkC5OSW6R1uzy6dTFwyS/DG2RnVKvs UFzcLQpx6X7kkLxp8U32wCKMZ22Mj/PstuF8fNAr2/u0CgiM4CRraOi82/6B8wEY ZlJYh4rjYUNvC0iH/B2h8PBziu+/+JNK7HzY14Malng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=qXmBVr NGWMguoLwlzLI1kWOggZCRQ9N2ZVHANYM2M0U=; b=Mv3tuc2qq+9rRU2UbvRA3D 1W00Emkl7ROxM0Fl0nLMxM8SX0+3UTlVOhVX5FAnolf8TFViG009aEVAZjVY8sJ9 icWbp69ZproDmJvEmqgns0rw97nbpRpAOZjgFrTXq+epIB9Ov8dzrWHQwNP05P8f rTgqHwD15qyQ/SMsWVjnj+YAsPC1PeVoQVzjGFV5Vt7z+Elwj3l1YnovngjI3zQ1 oZYpbq7/fUGqN6ZgQQon92QytQX8pngQQBk7lpe7SJwEBvwRlKMHCrGniObbWHfo +urnE/fWiAEME4Jdksp5fhP6G6wVO2NrB/w0eix3z3aJAe4E0d3fKoWwI+J5/1pg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddtfedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffukf hfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceo rghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepkeekrdduvdekrdekuddrud dvkeenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdr uggvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (unknown [88.128.81.128]) by mail.messagingengine.com (Postfix) with ESMTPA id 1FD2310319; Wed, 13 Feb 2019 12:41:53 -0500 (EST) Date: Wed, 13 Feb 2019 09:41:51 -0800 From: Andres Freund To: Tom Lane Cc: Thomas Munro , PostgreSQL Hackers Subject: Re: subscriptionCheck failures on nightjar Message-ID: <20190213174151.mfylkessxmapt4io@alap3.anarazel.de> References: <17827.1549866683@sss.pgh.pa.us> <27965.1550077052@sss.pgh.pa.us> <20190213171101.6wpz7tardp3t3uvk@alap3.anarazel.de> <29708.1550079455@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29708.1550079455@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-02-13 12:37:35 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2019-02-13 11:57:32 -0500, Tom Lane wrote: > >> I've managed to reproduce this locally, and obtained this PANIC: > > > Cool. How exactly? > > Andrew told me that nightjar is actually running in a qemu VM, > so I set up freebsd 9.0 in a qemu VM, and boom. It took a bit > of fiddling with qemu parameters, but for such a timing-sensitive > problem, that's not surprising. Ah. > >> I also wonder why bother with the directory sync just before the > >> rename. > > > Because on some FS/OS combinations the size of the renamed-into-place > > file isn't guaranteed to be durable unless the directory was > > fsynced. > > Bleah. But in any case, the rename should not create a situation > in which we need to fsync the file data again. Well, it's not super well defined which of either you need to make the rename durable, and it appears to differ between OSs. Any argument against fixing it up like I suggested, by using an fd from before the rename? Greetings, Andres Freund