Re: PATCH: Configurable file mode mask

From: David Steele <david(at)pgmasters(dot)net>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Adam Brightwell <adam(dot)brightwell(at)crunchydata(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PATCH: Configurable file mode mask
Date: 2018-04-06 22:04:44
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi Stephen,

On 4/6/18 3:02 PM, Stephen Frost wrote:
> Alright, changes I've made, since I got impatient and it didn't seem to
> make sense to bounce these back to David instead of just making them (I
> did discuss them with him on the phone today tho, just to be clear).
> - The PG_FILE_MODE_DEFAULT, PG_DIR_MODE_DEFAULT, et al, were confusing.
> Those constants are used for the default file/dir mode, sure, but what
> that actually *are* is the 'owner'-only style mode, so they've been

This is definitely better.

There were a few missed replacements in 01 so I fixed those.

> Things that still need doing:
> - 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.

> - Perhaps a bit more review to try to minimize the risk that something
> breaks on Windows... Looked ok to me, but probably still some risk
> that the Windows buildfarm members fall over, though I suppose that's
> also what they're there for.

I did my best on this based on breakage from some of my other patches.

> David, if you could look through this again and make sure I didn't break
> anything with the changes made, and perhaps make improvements to the
> docs/comments/commit messages, that'd be helpful for getting this over
> the line.

I'm pretty happy with it overall. As you say, there could always be
more comments, but I'm not sure what to add without just running on.

New patches attached.


Attachment Content-Type Size
group-access-v17-01-file-perm.patch text/plain 42.2 KB
group-access-v17-02-group.patch text/plain 45.9 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-04-06 22:23:23 Re: Online enabling of checksums
Previous Message Andres Freund 2018-04-06 21:54:14 Re: PATCH: pgbench - option to build using ppoll() for larger connection counts