Re: Strange issue with NFS mounted PGDATA on ugreen NAS - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Strange issue with NFS mounted PGDATA on ugreen NAS
Date
Msg-id 13722.1735709976@sss.pgh.pa.us
Whole thread Raw
In response to Re: Strange issue with NFS mounted PGDATA on ugreen NAS  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Strange issue with NFS mounted PGDATA on ugreen NAS
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> NFS is at least supposed to tell the client that its cookie has been
> invalidated with a cookie-invalidation-cookie called cookieverf.  But
> there isn't any specified way to recover.  FreeBSD's client looks like
> it might try to, but I'm not sure if that Linux's server even
> implements it.

ISTM we used to disclaim responsibility for data integrity if you
try to put PGDATA on NFS.  I looked at the current wording about
NFS in runtime.sgml and was frankly shocked at how optimistic it is.
Shouldn't we be saying something closer to "if it breaks you
get to keep both pieces"?

> Anyway, I'll write a patch to change rmtree() to buffer the names in
> memory.  In theory there could be hundreds of gigabytes of pathnames,
> so perhaps I should do it in batches; I'll look into that.

This feels a lot like putting lipstick on a pig.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Conflict detection for update_deleted in logical replication
Next
From: Michail Nikolaev
Date:
Subject: Re: Proposal to Enable/Disable Index using ALTER INDEX (with patch)