Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fJpnJ-0003wT-2H for pgsql-hackers@arkaria.postgresql.org; Sat, 19 May 2018 00:32:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fJpnH-0003nM-Uq for pgsql-hackers@arkaria.postgresql.org; Sat, 19 May 2018 00:32:19 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fJpnH-0003nC-Jj for pgsql-hackers@lists.postgresql.org; Sat, 19 May 2018 00:32:19 +0000 Received: from mail-wr0-x264.google.com ([2a00:1450:400c:c0c::264]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fJpnE-0006xC-Ed for pgsql-hackers@postgresql.org; Sat, 19 May 2018 00:32:19 +0000 Received: by mail-wr0-x264.google.com with SMTP id w3-v6so3056377wrl.12 for ; Fri, 18 May 2018 17:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FcmxwqnylvGsbpJk1NnmQ+4wq4hz4iUXx2x7jMy+v5s=; b=i841Jri8CC2I/8Se2utbpbyc9w7NIdRQbGpIKVcYC37qcD5NLeSx1a/vxUIWOvFUv3 RCUi6dUBy1OvWHo9K6sO0UaR/xSBjsTXfXIDp3pFWtgj6HHUwllg6HRFjDgAjp5B8DZC k6Rm5IpUmOjcwIp5bjA/Wm9MPV/GxG9W2jXYU3beORTnv767WF7P7eQRiTlqMu8Nm+wv Sbi2HDrCEbB8A0CdPjS3avim/cqFRIe3im+XYeTyXC9ih0inLT/fUFgvGHcsRtxiSprT apevuExtzNJkdJl98YNMz1RCeAiMFereBywIoR+6Oxidg0w/vybYw8pUmmBd44WYXXW6 AX2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FcmxwqnylvGsbpJk1NnmQ+4wq4hz4iUXx2x7jMy+v5s=; b=k0N6lTNr6GGvwE0jYppbsnORsh44TzccG25VdGkaEy1kFh4qLOvS9zztkGz1wY3aJT D7loCCYKIWNd08ZZ4z59Lh8NdeIeg2nHhhxl6RJ8kzhuGYm0rXmTXa0VUdD/VV+XGTov pI5jmNaYwg+Xhk18MTiMdtOLipGwmYQ3t2CagtNtXKzceNEgiNWSZSXIVxlFS8gBpKIy Q+DP3xFnaoIsEo+sc+Dv+t11CnPDyPTReXwGLzKUtWkzQBXnVE8ahMTk0ZGRhdOiIfso pGFHqs7MIUvhQolLe9jd9tYSztl9PE53bBTeqWjNNDjrN1VWC50kK4DPqP4FZNY3zlJZ dM0Q== X-Gm-Message-State: ALKqPwfPh3t08tC9ZBMIQdyxgGpt6Xev/0P3r4R5QGgITu+/E4/2WCHZ uVHjBsB8jZgH2zzsyGduj1kx/S59e1VL4ZB613HqN7pAXRJxoAKvj/TIsj4ngqYsgA== X-Google-Smtp-Source: AB8JxZpHAsPrNavsF4T5eOZ2gSyI1bIkqtb9jL/H8rwtyKup9Dirl2TqgozJOzog7joaOEMQGlz0oRa1YjwR X-Received: by 2002:adf:9383:: with SMTP id 3-v6mr6416195wrp.224.1526689934020; Fri, 18 May 2018 17:32:14 -0700 (PDT) Received: from pitta.toroid.org (pitta.toroid.org. [2a01:4f8:171:16c9::2]) by smtp-relay.gmail.com with ESMTPS id x10-v6sm388876wrn.12.2018.05.18.17.32.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 17:32:14 -0700 (PDT) X-Relaying-Domain: 2ndquadrant.com Received: from ullu.lweshal.in (unknown [10.1.1.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pitta.toroid.org (Postfix) with ESMTPS id 03645FA3F7A; Sat, 19 May 2018 02:32:12 +0200 (CEST) Received: from ams by ullu.lweshal.in with local (Exim 4.91) (envelope-from ) id 1fJpn8-0002Sg-GT; Sat, 19 May 2018 06:02:10 +0530 Date: Sat, 19 May 2018 06:02:10 +0530 From: Abhijit Menon-Sen To: Stephen Frost Cc: Ashutosh Bapat , Robert Haas , Andres Freund , Craig Ringer , Thomas Munro , Simon Riggs , PostgreSQL Hackers Subject: Re: Postgres, fsync, and OSs (specifically linux) Message-ID: <20180519003210.xehe2kfei5nss4mw@toroid.org> References: <20180430160945.5s5qfoqryhtmugxl@alap3.anarazel.de> <20180509225555.rmk3azmgrwfwudw5@alap3.anarazel.de> <20180517164440.szk6vhbdprcm462a@alap3.anarazel.de> <20180519002757.GU27724@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180519002757.GU27724@tamriel.snowman.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk At 2018-05-18 20:27:57 -0400, sfrost@snowman.net wrote: > > I don't agree with the general notion that we can't have a function > which handles the complicated bits about the kind of error because > someone grep'ing the source for PANIC might have to do an additional > lookup. Or we could just name the function promote_eio_to_PANIC. (I understood the objection to be about how 'grep PANIC' wouldn't find these lines at all, not that there would be an additional lookup.) -- Abhijit