Skip site navigation (1) Skip section navigation (2)

Re: Strange issue with initdb on 8.0 and Solaris automounts

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kenneth Lareau <elessar(at)numenor(dot)org>,David Parker <dparker(at)tazznetworks(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Strange issue with initdb on 8.0 and Solaris automounts
Date: 2005-01-28 00:28:25
Message-ID: 41F98729.2050606@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

>>I don't know why the command 'mkdir' doesn't exhibit the
>>same problem as the function 'mkdir', but running:
>>    
>>
>
>  
>
>>   mkdir /software/postgresql-8.0.0
>>    
>>
>
>  
>
>>produces the correct error "File exists" on my system.
>>    
>>
>
>Could you truss that and see what it does?  It would be a simple change
>in initdb to make it stat before mkdir instead of after, but I'm not
>totally convinced that would fix the problem.  If mkdir returns a funny
>error code then stat might as well ...
>
>
>  
>

There's also a tiny race condition, which I guess isn't worth worrying 
about.

Returning ENOSYS is pretty bogus ...

cheers

andrew

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-01-28 00:37:33
Subject: Re: Strange issue with initdb on 8.0 and Solaris automounts
Previous:From: Kenneth LareauDate: 2005-01-28 00:18:36
Subject: Re: Strange issue with initdb on 8.0 and Solaris automounts

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group