

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
> Sent: 03 December 2001 16:05
> To: Horï¿½k Daniel
> Cc: pgsql-hackers@postgresql.org; Peter Eisentraut
> Subject: Re: FW: [CYGWIN] 7.2b3 postmaster doesn't start on Win98 
> 
> 
> =?iso-8859-1?Q?Hor=E1k_Daniel?= <horak@sit.plzen-city.cz> writes:
> >> When trying to start the postmaster on win98se with cygwin
> >> I get told that the data directory must be 0700, but when I
> >> try to chmod to
> >> 700, it apparently succeds, but nothing permissions stay at 
> >> 755. I suspect
> >> this to be because win98 has no real file protection (just 
> a read only
> >> attribute)
> 
> > It works on WinNT, Win2K, ... because full file security is 
> > implemented only in this systems. There could be a dirty hack that 
> > disables the check (for 0700 permissions on $DATADIR) in 
> > src/backend/postmaster/postmaster.c. I don't  know if it is 
> possible 
> > to do it during runtime for only Win9x systems.
> 
> Ugh...
> 
> Unless someone can think of a reasonable runtime check to 
> distinguish win98 from newer systems, I think we have little 
> choice but to make the data directory permissions check be 
> #ifndef __CYGWIN__.  I don't like this much, but (a) I don't 
> want to hold up 7.2 while we look for better ideas, and (b) 
> no one should consider a Windoze box secure anyway ;-).

This check actually caused me *much* grief when I was testing on Win2K/XP.
It required that the cygwin ntsec option is enabled which in my case caused
me even more problems with my Cygwin installation. I vote for the #ifndef
__CYGWIN__...

Regards, Dave.

Tue, 4 Dec 2001 08:31:48 -0000 
Dave Page <dpage@vale-housing.co.uk>
Re: FW: [CYGWIN] 7.2b3 postmaster doesn't start on Win98 
Dave Page <dpage@vale-housing.co.uk> writes:
>> Unless someone can think of a reasonable runtime check to 
>> distinguish win98 from newer systems, I think we have little 
>> choice but to make the data directory permissions check be 
>> #ifndef __CYGWIN__.  I don't like this much, but (a) I don't 
>> want to hold up 7.2 while we look for better ideas, and (b) 
>> no one should consider a Windoze box secure anyway ;-).

> This check actually caused me *much* grief when I was testing on Win2K/XP.
> It required that the cygwin ntsec option is enabled which in my case caused
> me even more problems with my Cygwin installation. I vote for the #ifndef
> __CYGWIN__...

Oh, so it's (in essence) an optional feature on Cygwin?  And someone
else pointed out that it depends on the filesystem in use, too.

Okay, I think the answer is clear: #ifndef __CYGWIN__ for 7.2.  We can
think about nicer approaches for 7.3.

I'll apply the change shortly.

			regards, tom lane

Tue, 04 Dec 2001 09:54:51 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: FW: [CYGWIN] 7.2b3 postmaster doesn't start on Win98 