Re: Strange issue with initdb on 8.0 and Solaris automounts

From: "David Parker" <dparker(at)tazznetworks(dot)com>
To: "Kenneth Lareau" <elessar(at)numenor(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange issue with initdb on 8.0 and Solaris automounts
Date: 2005-01-28 01:40:14
Message-ID: 07FDEE0ED7455A48AC42AC2070EDFF7C3EDF9E@corpsrv2.tazznetworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yes, thanks very much!

- DAP

>-----Original Message-----
>From: pgsql-hackers-owner(at)postgresql(dot)org
>[mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Kenneth Lareau
>Sent: Thursday, January 27, 2005 8:10 PM
>To: Tom Lane
>Cc: Kenneth Lareau; pgsql-hackers(at)postgresql(dot)org
>Subject: Re: [HACKERS] Strange issue with initdb on 8.0 and
>Solaris automounts
>
>In message <22687(dot)1106872653(at)sss(dot)pgh(dot)pa(dot)us>, Tom Lane writes:
>>Kenneth Lareau <elessar(at)numenor(dot)org> writes:
>>> In message <22095(dot)1106869848(at)sss(dot)pgh(dot)pa(dot)us>, Tom Lane writes:
>>>> Could you truss that and see what it does?
>>
>>> Here's the relevant truss output from 'mkdir
>/software/postgresql-8.0.0'
>>> on my Solaris 9 system:
>>
>>> 10832: mkdir("/software/postgresql-8.0.0", 0777)
>Err#89 ENOSYS
>>> 10832: stat64("/software/postgresql-8.0.0", 0xFFBFFA38) = 0
>>
>>> It's doing the stat after the mkdir attempt it seems, and
>coming back
>>> with the correct response. Hmm, maybe I should look at the
>Solaris 8
>>> code for the mkdir command...
>>
>>Well, the important point is that the stat does succeed. I'm
>not going
>>to put in anything as specific as a check for ENOSYS, but it seems
>>reasonable to try the stat first and mkdir only if stat fails.
>>I've applied the attached patch.
>>
>> regards, tom lane
>
>
>Tom, thank you very much for the patch, it worked like a charm.
>
>
>Ken Lareau
>elessar(at)numenor(dot)org
>
>---------------------------(end of
>broadcast)---------------------------
>TIP 9: the planner will ignore your desire to choose an index
>scan if your
> joining column's datatypes do not match
>

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-01-28 01:47:17 Re: Patent issues and 8.1
Previous Message Robert Treat 2005-01-28 01:28:48 Re: Patent issues and 8.1