Re: PATCH: Configurable file mode mask
David Steele <david@pgmasters.net>
From: David Steele <david@pgmasters.net>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Michael Paquier <michael.paquier@gmail.com>,
Alvaro Herrera <alvherre@alvh.no-ip.org>, Stephen Frost
<sfrost@snowman.net>, Adam Brightwell <adam.brightwell@crunchydata.com>
Cc: Robert Haas <robertmhaas@gmail.com>,
"Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>,
Tom Lane <tgl@sss.pgh.pa.us>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-01-29T21:29:08Z
Lists: pgsql-hackers
Attachments
- group-access-v6-01-pgresetwal-test.patch (text/plain) patch v6
- group-access-v6-02-mkdir.patch (text/plain) patch v6
- group-access-v6-03-group.patch (text/plain) patch v6
On 1/19/18 4:43 PM, Peter Eisentraut wrote: > On 1/19/18 14:07, David Steele wrote: >> I have yet to add tests for pg_rewindwal and pg_upgrade. pg_rewindwal >> doesn't *have* any tests as far as I can tell and pg_upgrade has tests >> in a shell script -- it's not clear how I would extend it or reuse the >> Perl code for perm testing. >> >> Does anyone have suggestions on tests for pg_resetwal and pg_upgrade? >> Should I start from scratch? > > A test suite for pg_resetwal would be nice. Agreed. > TAP tests for pg_upgrade will create problems with the build farm. > There was a recent thread about that. OK, that being the case I have piggy-backed on the current pg_upgrade tests in the same way that --wal-segsize did. There are now three patches: 1) 01-pgresetwal-test Adds a *very* basic test suite for pg_resetwal. I was able to make this utility core dump (floating point errors) pretty easily with empty or malformed pg_control files so I focused on WAL reset functionality plus the basic help/command tests that every utility has. 2) 02-mkdir Converts mkdir() calls to MakeDirectoryDefaultPerm() if the original call used default permissions. 3) 03-group Allow group access on PGDATA. This includes backend changes, utility changes (initdb, pg_ctl, pg_upgrade, etc.) and tests for each utility. Regards, -- -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