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 1iXCJE-0005id-6Q for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2019 22:49:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXCJC-0003pL-JM for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2019 22:49:18 +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 1iXCJC-0003pE-1I for pgsql-hackers@lists.postgresql.org; Tue, 19 Nov 2019 22:49:18 +0000 Received: from mail-yw1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXCJ8-0001Ml-6m for pgsql-hackers@postgresql.org; Tue, 19 Nov 2019 22:49:16 +0000 Received: by mail-yw1-xc2c.google.com with SMTP id y18so7970268ywk.1 for ; Tue, 19 Nov 2019 14:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YJ9VbALbR6iQPymW4jxYiZGJuqhLDc5PBQ57D9xsklk=; b=Lj50PlQ+uVduNBQTEoChl2jELZbS+1OsH+DQEEqNxsgy1tH3gj9do5kYTOqIT5D4Zq q6fqO6RUV+fgr5h67NM0O6vVFihoiyMY2Is9TmIgUCeGyWaYbldUKDjxYDMi/BA1iPTM 3KKwoGb0AId20Rfo4b9LywtUK3qUgyrdjj+944k26m6Tq0kEGzIY67yK6oxWh34rXQ/x 7FxLwieTfT20MKuQy5o9k6QVG/NWSPdRIONCzsgJlcZnRZWDk1Gvf4VcnZD0Fitc+jkt SLN9xgOQ1e8Ib8/fL4nnIYwnxFYTrZdr7rB7mkHwxKiZoFhxubgZuz7HNwVI2xnrHjHL Drbg== 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:user-agent; bh=YJ9VbALbR6iQPymW4jxYiZGJuqhLDc5PBQ57D9xsklk=; b=uVOQyp////9z70/H2D7KgS/yALYAr0iLdlqRQjAjlveyWyQD1w4GAc9iV7/a/nn6ib hv6vzgpwPsKRZmUAyFYuskCrPe5zJGuLdpzFhq3R4GhbHD5cdls67sJBhckHeTUIMO80 5/WLa++OygR4essYnNywFUzXQngOeIZn8vvl7+JEknUtgfu4qitI3iRobly3RJsnqvug CQV5ZQti2WED9WszqdWAlcQYBV8ChLvg70fApdOvJ3MnNAngfByt611WkdBI3mEqec4n mdfKVJGPtrGajtOyGw7PtKmXOnxRbK/RyP3wyRs+O3lh6B8llWz3ZeU/0SEOnpQ6subX gaJg== X-Gm-Message-State: APjAAAX2QWiP9WQhjiwlCd/rFcDfeHei83LZljZJFX45UbvsC3+08jmu +n0ukALZAwyATvFRDZvwNEbp4w== X-Google-Smtp-Source: APXvYqyQ2AguMvLqVpllNuWzZ+A5JZNX2DsYMzQA8uqp457h0Y71gWdEvCaXPXyrq4yRWR5N6gMN0w== X-Received: by 2002:a81:df06:: with SMTP id c6mr170362ywn.81.1574203753309; Tue, 19 Nov 2019 14:49:13 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id z14sm11724223ywj.74.2019.11.19.14.49.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 14:49:12 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id E2456800AB8; Tue, 19 Nov 2019 16:49:10 -0600 (CST) Date: Tue, 19 Nov 2019 16:49:10 -0600 From: Justin Pryzby To: Thomas Munro Cc: pgsql-hackers@postgresql.org Subject: Re: checkpointer: PANIC: could not fsync file: No such file or directory Message-ID: <20191119224910.GU30362@telsasoft.com> References: <20191119115759.GI30362@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Nov 20, 2019 at 09:26:53AM +1300, Thomas Munro wrote: > Perhaps we should not panic if we failed to open (not fsync) the file, > but it's not the root problem here which is that somehow we thought we > should be fsyncing a file that had apparently been removed already > (due to CLUSTER, VACUUM FULL, DROP, rewriting ALTER etc). FYI, I *do* have scripts which CLUSTER and(or) VAC FULL (and REINDEX), but they were disabled due to crash in 12.0 (which was resolved in 12.1) and it wouldn't have run anyway, since they run after the backup script (which failed) in a shell with set -e. I think TRUNCATE does that too..but I don't think that any processes which do TRUNCATE are running on that server. Thanks, Justin