public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Robert Haas <[email protected]>
Cc: Thomas Munro <[email protected]>
Cc: Peter Eisentraut <[email protected]>
Cc: Larry Rosenman <[email protected]>
Cc: Pgsql hackers <[email protected]>
Subject: Re: Fwd: Re: A new look at old NFS readdir() problems?
Date: Mon, 06 Jan 2025 09:49:22 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+TgmoZdxsnA81pADXuoMJZzPd9oWp+w-D253+RnObyY_OqjrQ@mail.gmail.com>
References: <CA+hUKGJuG+P74iaVkBXBPE-rDsULjaruhiJ=qKYwbn_cpfpMQg@mail.gmail.com>
<CAM5tNy7jFMb_zuLZddpX0dM9Cq=Ww-uVBSwS6b2AYD2bCPdbSw@mail.gmail.com>
<[email protected]>
<[email protected]>
<CA+Tgmobh=vSvR4uDmPJ6Y00MptUeoPnKdx19yLpR7GpfXXnt5w@mail.gmail.com>
<[email protected]>
<CA+hUKG+rBEN5Z29AGHHGTaKa35nQugCQuGoOSQWGQNz=Rc8_nA@mail.gmail.com>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<CA+hUKGJWCY=O+NrRj61wGTege=24V9wAaY79XsuXK0ke2J2h1A@mail.gmail.com>
<[email protected]>
<[email protected]>
<CA+TgmoZdxsnA81pADXuoMJZzPd9oWp+w-D253+RnObyY_OqjrQ@mail.gmail.com>
Robert Haas <[email protected]> writes:
> Yeah, that seems like very strong evidence against FreeBSD, but I
> think Thomas Munro's point about CIFS is worth considering. That is
> rather widely used, and if the same workarounds would help both that
> and FreeBSD's NFS, we might want to adopt it even if it's not a
> complete fix.
TBH, I am happy that PG is now failing in a fairly visible way on
filesystems that are broken in this fashion. I think that is better
than silent data corruption in obscure circumstances, which is where
we were before and would be again if we band-aid rmtree() and do
nothing else. Nor do I think it's worth the effort to try to become
fully bulletproof on the point.
I think we should document that CIFS is unsupported. The docs
could say something like:
Storing databases on filesystems with unreliable readdir() is
not supported and can lead to data corruption. If you observe
warnings like "directory is not empty" when trying to drop a
database, that is strong evidence that the filesystem has
unreliable readdir(). Filesystems known to have this problem
include NFS on FreeBSD and CIFS on all platforms.
We could s/FreeBSD/older FreeBSD/ if something comes of Thomas'
efforts to fix that situation.
regards, tom lane
view thread (10+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Fwd: Re: A new look at old NFS readdir() problems?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox