Re: PATCH: Configurable file mode mask
David Steele <david@pgmasters.net>
From: David Steele <david@pgmasters.net>
To: Stephen Frost <sfrost@snowman.net>
Cc: Michael Paquier <michael@paquier.xyz>, Tom Lane <tgl@sss.pgh.pa.us>,
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>,
Adam Brightwell <adam.brightwell@crunchydata.com>,
Robert Haas <robertmhaas@gmail.com>,
"Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-04-07T17:09:11Z
Lists: pgsql-hackers
Attachments
- group-access-v19-01-file-perm.patch (text/plain) patch v19-0001
- group-access-v19-02-group.patch (text/plain) patch v19-0002
Hi Stephen, On 4/6/18 10:22 PM, Stephen Frost wrote: > > * David Steele (david@pgmasters.net) wrote: >> On 4/6/18 6:04 PM, David Steele wrote: >>> On 4/6/18 3:02 PM, Stephen Frost wrote: >>>> >>>> - Further discussion in the commit messages >>> >>> Agreed, these need some more work. I'm happy to do that but I'll need a >>> bit more time. Have a look at the new patches and I'll work on some >>> better messages. >> >> I'm sure you'll want to reword some things, but I think these commit >> messages capture the essential changes for each patch. > > Thanks much. I've taken (most) of these, adjusting a few bits here and > there. > > I've been back over the patch again, mostly improving the commit > messages, comments, and docs. I also looked over the code and tests > again and they're looking pretty good to me, so I'll be looking to > commit this tomorrow afternoon or so US/Eastern. OK, one last review. I did't make any code changes, but I improved some comments, added documentation and fixed a test. 01) Refactor dir/file permissions * Small comment update, replace "such cases-" with "such cases --". 02) Allow group access on PGDATA * Add data_directory_mode guc to "Preset Options" documentation. * Add a section to the documentation that discusses changing the permissions of an existing cluster. * Improved comment on checkControlFile(). * Comment wordsmithing for SetDataDirectoryCreatePerm() and RetrieveDataDirCreatePerm(). * Fixed ordering of -g option in initdb documentation. * Fixed a new test that was "broken" by 032429701e477. It was broken before but the rmtrees added in 032429701e477 exposed the problem. Attached are the v19 patches. Thanks! -- -David david@pgmasters.net
Commits
-
Allow group access on PGDATA
- c37b3d08ca68 11.0 landed
-
Refactor dir/file permissions
- da9b580d8990 11.0 landed
-
Revert "Add basic TAP test setup for pg_upgrade"
- 58ffe141eb37 11.0 cited
-
Add basic TAP test setup for pg_upgrade
- f41e56c76e39 11.0 cited