pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix EXEC BACKEND + Windows builds for group privs
3+ messages / 2 participants
[nested] [flat]
* pgsql: Fix EXEC BACKEND + Windows builds for group privs
@ 2018-04-07 23:02 Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Frost @ 2018-04-07 23:02 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Fix EXEC BACKEND + Windows builds for group privs
Under EXEC BACKEND we also need to be going through the group privileges
setup since we do support that on Unixy systems, so add that to
SubPostmasterMain().
Under Windows, we need to simply return true from
GetDataDirectoryCreatePerm(), but that wasn't happening due to a missing
#else clause.
Per buildfarm.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2b74022473f0c7a7fbe11a4973f80478226275bd
Modified Files
--------------
src/backend/postmaster/postmaster.c | 8 ++++++++
src/common/file_perm.c | 9 +++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Fix EXEC BACKEND + Windows builds for group privs
@ 2018-04-09 02:44 Tom Lane <tgl@sss.pgh.pa.us>
parent: Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2018-04-09 02:44 UTC (permalink / raw)
To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-committers@lists.postgresql.org
Stephen Frost <sfrost@snowman.net> writes:
> Fix EXEC BACKEND + Windows builds for group privs
jacana seems to think there's still an issue here:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2018-04-09%2000%3A00%3A41
It's pretty much the same symptom:
Apr 08 20:58:22 Running this script will delete the old cluster's data files:
Apr 08 20:58:22 delete_old_cluster.bat
Apr 08 20:58:33 ++ find /home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_upgrade/tmp_check/data -type f '!' -perm 640
Apr 08 20:58:33 ++ wc -l
Apr 08 20:58:42 + '[' 3361 -ne 0 ']'
Apr 08 20:58:42 + echo 'files in PGDATA with permission != 640'
Apr 08 20:58:42 files in PGDATA with permission != 640
Apr 08 20:58:42 + exit 1
Apr 08 20:58:42 make: *** [check] Error 1
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Fix EXEC BACKEND + Windows builds for group privs
@ 2018-04-09 02:52 Stephen Frost <sfrost@snowman.net>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Frost @ 2018-04-09 02:52 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
Greetings,
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> writes:
> > Fix EXEC BACKEND + Windows builds for group privs
>
> jacana seems to think there's still an issue here:
>
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2018-04-09%2000%3A00%3A41
>
> It's pretty much the same symptom:
>
> Apr 08 20:58:22 Running this script will delete the old cluster's data files:
> Apr 08 20:58:22 delete_old_cluster.bat
> Apr 08 20:58:33 ++ find /home/pgrunner/bf/root/HEAD/pgsql.build/src/bin/pg_upgrade/tmp_check/data -type f '!' -perm 640
> Apr 08 20:58:33 ++ wc -l
> Apr 08 20:58:42 + '[' 3361 -ne 0 ']'
> Apr 08 20:58:42 + echo 'files in PGDATA with permission != 640'
> Apr 08 20:58:42 files in PGDATA with permission != 640
> Apr 08 20:58:42 + exit 1
> Apr 08 20:58:42 make: *** [check] Error 1
Yes, I was just looking at that and working up what I believe will be a
fix. This is exactly the kind of test I was anticipating getting run
unintentionally on Windows, sorry about that, but I don't have a Windows
test environment currently.
I've pushed what I believe will fix this, which is essentially "don't
try to run this test on this platform." Tested it locally (under Linux)
and it didn't blow up, so hopefully this doesn't make things worse, in
any case.
If there's more that's needed to fix jacana, I'll see about dealing with
it first thing in the morning.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-04-09 02:52 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-07 23:02 pgsql: Fix EXEC BACKEND + Windows builds for group privs Stephen Frost <sfrost@snowman.net>
2018-04-09 02:44 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-04-09 02:52 ` Stephen Frost <sfrost@snowman.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox