If you pre-create the data directory with the appropriate permissions,
what keeps you from giving ownership to the correct user too?
Our NFS server is not a regular linux based server,
it's on zOS (Mainframes) with AT-TLS security enabled,
hence it doesn't allow changing of ownership.
Basically, we have tried everything we could
to change the directory ownership to match with the postgres user
and that as of now looks impossible, unless we make changes in the environment.
To summarize, we are not able to change the ownership of the data directory
due to the Mainframe NFS server limitations when enabled with AT-TLS security
Hence we wanted to check if bypassing this check is ok if it could be assured
that only the postgres user can write here (NFS-AT-TLS ensures that).
I wouldn't get into details of explaining why changing ownership is not possible,
as that would take this discussion to another context, hence avoiding.
Thanks in advance