Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAjaF-0005li-Gx for pgsql-general@arkaria.postgresql.org; Mon, 23 Apr 2018 22:05:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fAjaE-0006qx-3T for pgsql-general@arkaria.postgresql.org; Mon, 23 Apr 2018 22:05:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fAjaD-0006qL-Lx for pgsql-general@lists.postgresql.org; Mon, 23 Apr 2018 22:05:13 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fAjaB-0001Yx-4y for pgsql-general@postgresql.org; Mon, 23 Apr 2018 22:05:12 +0000 Received: by mail-pf0-x232.google.com with SMTP id p15so10439784pff.11 for ; Mon, 23 Apr 2018 15:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=OxhYsmeJ25GxUpnG24veOV0vloQoUP8qL55CbS7YB4o=; b=UeuyhxKWiUmKposB1h63xg2rMY1atKKrg1UVxcUYe/6hgr8VoX/yqFxLTC86x622Ls um2Pz2utE3B60HnrxZRD9FQMWo7p9l1bYiShQPN7AHKNMxarG46XMwdMxIOOImrEx3VL /uIr6Uv7Z+UB+2NWDcwWc/K3c62/ErjgiPPioik+UCF2inFt3TX5lUT/3mSmdewwCc79 CqAPuE4sHW7NaSOV1MkZyu9Wy73lyiCHeJuGeNHQ+w4eUwGkYb9+R2gf/g7u40Z1Dgti /AOUPdwgJ0QMXyF0UiICFSOz0NjAHeiYG5+VxVMyArDbiY5IF8fRp70x+VZLtlzZGHnk 5X3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=OxhYsmeJ25GxUpnG24veOV0vloQoUP8qL55CbS7YB4o=; b=IImV/q08aamEfcSO9plypjDEWb6ffk2pIJ0ZMEzk0MeKB/dYXzb0oYEXzq7vHvV79M KdnFu4weUew3rGLszxYHJrPDbuo2g3dTWBEgD1dA5kESVJ6XUVjXYGuiULvHNGGB+fz4 ZDHw6bAOOMfOBW+peSR0+1O1mZFuTmqwI5gP4vpHcU/5yiHQhzUApfGkW4UJpA3Y6pwg X63O3jAeRNeOvEH0avzcJLyYzSLfAvU8byQ/lCWcD+ARXx4pcI1bOxg7KgU8JUKCLLxx ASWHBnQZR/ZCczqZNKF8NZLCkdGoGEranVc1J91gqNGweEkl26+XGTI49KosXTRMjVuF cs2w== X-Gm-Message-State: ALQs6tDcK34+N5PJjIURjQzkeYjs2v/pJ5RpjkWvgfvlmDabByVHHMAE f9DqdD2w9dTdHEn8GwQif5t4YiCw X-Google-Smtp-Source: AIpwx48JA9br5oFcw82pmEer3TGupXJHXPREiX7xR0WTITTJBlbrLbUMOMXdrPvU+td/XmDvHeWvOg== X-Received: by 10.99.96.193 with SMTP id u184mr14639753pgb.122.1524521109492; Mon, 23 Apr 2018 15:05:09 -0700 (PDT) Received: from tim-desktop (2001-44b8-31f2-bb00-f033-489a-d3c3-2745.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:f033:489a:d3c3:2745]) by smtp.gmail.com with ESMTPSA id b3sm24448783pff.11.2018.04.23.15.05.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 15:05:08 -0700 (PDT) References: <87tvs2q3ge.fsf@gmail.com> <20180423000530.u3wbek72qv6jhben@alap3.anarazel.de> User-agent: mu4e 0.9.18; emacs 26.1 From: Tim Cross To: Andres Freund Cc: pgsql-general Subject: Re: Postgres and fsync In-reply-to: <20180423000530.u3wbek72qv6jhben@alap3.anarazel.de> Date: Tue, 24 Apr 2018 08:05:04 +1000 Message-ID: <87sh7lpoj3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Hi, > > On 2018-04-23 08:30:25 +1000, Tim Cross wrote: >> the recent article in LWN regarding issues with fsync and error >> reporting in the Linux kernel and the potential for lost data has >> prompted me to ask 2 questions. > > Note that you need to have *storage* failures for this to > happen. I.e. your disk needs to die, and there's no raid or such to fix > the issue. > > >> 1. Is this issue low level enough that it affects all potentially >> supported sync methods on Linux? For example, if you were concerned >> about this issue and you had a filesystem which supports open_sync or >> open_datasync etc, is switching to one of these options something which >> should be considered or is this issue low level enough that all sync >> methods are impacted? > > No, the issue is largely about datafiles whereas the setting you refer > to is about the WAL. > > Greetings, > > Andres Freund OK, thanks. -- Tim Cross