Unix Technical Forum

Re: Strange issue with initdb on 8.0 and Solaris automounts

This is a discussion on Re: Strange issue with initdb on 8.0 and Solaris automounts within the pgsql Hackers forums, part of the PostgreSQL category; --> Tom Lane wrote: >>I don't know why the command 'mkdir' doesn't exhibit the >>same problem as the function 'mkdir', ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:30 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Strange issue with initdb on 8.0 and Solaris automounts



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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com