Re: Fwd: Re: A new look at old NFS readdir() problems? - Mailing list pgsql-hackers

From David Steele
Subject Re: Fwd: Re: A new look at old NFS readdir() problems?
Date
Msg-id e386116b-07aa-4195-af6c-7df3276a3eb5@pgbackrest.org
Whole thread Raw
In response to Re: Fwd: Re: A new look at old NFS readdir() problems?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Fwd: Re: A new look at old NFS readdir() problems?
List pgsql-hackers
On 1/8/25 12:40, Bruce Momjian wrote:
> On Tue, Jan  7, 2025 at 01:03:05AM +0000, David Steele wrote:
>>>> I'm more concerned about the report we saw on SUSE/NFS [1]. If that
>>>> report is accurate it indicates this may not be something we can just
>>>> document and move on from -- unless we are willing to entirely drop
>>>> support for NFS.
>>>> [1] https://github.com/pgbackrest/pgbackrest/issues/1423
>>>
>>> I installed an up-to-date OpenSUSE image (Leap 15.6) and it passes
>>> my "rmtree" test just fine with my NAS.  The report you cite
>>> doesn't have any details on what the NFS server was, but I'd be
>>> inclined to guess that that server's filesystem lacked support
>>> for stable NFS cookies.
>>
>> The internal report we received might have had a similar cause. Sure seems
>> like a minefield for any user trying to figure out if their setup is
>> compliant, though. In many setups (especially production) a drop database is
>> rare.
> 
> Will people now always get a clear error on failure?  

The error will be something like "directory is not empty" when trying to 
drop a database. So not very clear at all.

> Crazy idea, but
> could we have initdb or postmaster start test this?

I think this test would be too expensive for postmaster start as it 
would require creating and deleting a large number of files (maybe 
multiple times). I suppose it could be a special setting but I doubt 
that would be popular.

initdb might be more promising but clusters are frequently 
copied/restored to different storage so I'm not sure if it would be too 
helpful in the long run.

Regards,
-David




pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: use a non-locking initial test in TAS_SPIN on AArch64
Next
From: Marcos Pegoraro
Date:
Subject: Re: Virtual generated columns