Additional "Creating a Cluster" Guidance for Windows Users - Mailing list pgsql-docs

From Jonathan S. Katz
Subject Additional "Creating a Cluster" Guidance for Windows Users
Date
Msg-id 5e25223c-700d-3559-a7af-cf15941b093d@postgresql.org
Whole thread Raw
List pgsql-docs
Hi,

Per the last update release[1] I was going through some of our
documentation around creating clusters and noticed that we may want to
provide a bit more guidance around creating clusters on Windows:

https://www.postgresql.org/docs/current/creating-cluster.html

i.e.:

"Because the data directory contains all the data stored in the
database, it is essential that it be secured from unauthorized access.
initdb therefore revokes access permissions from everyone but the
PostgreSQL user, and optionally, group."

However, this does not explicitly state that initdb performs this
revocation only for *non-Windows systems* -- to lock down the data
directory after an initdb run on a Windows system, it requires manual
intervention.

I've attached a patch that explicitly states the above. I wrapped the
guidance in a "Warning" box given the data directory is exposed if not
locked down properly.

I would also recommend this is backpatched to 9.4. If in agreement on
the above methodology + wording, I can generate the backpatches.

Thanks,

Jonathan

[1] https://www.postgresql.org/about/news/1939/

Attachment

pgsql-docs by date:

Previous
From: Oleg Bartunov
Date:
Subject: SQL-2016 in docs
Next
From: Peter Eisentraut
Date:
Subject: Re: SQL-2016 in docs