Re: REPOST: InitDB Failure on install

Bruce Momjian <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
Patch applied.  Thanks.

---------------------------------------------------------------------------


Magnus Hagander wrote:
> >>> I understand your disliking of non-posix stuff. OTOH, 
> >>GetLastError will 
> >>> give much more details than errno.
> >>
> >>How much more, really?  That mapping table gave me the impression that
> >>the win32 error codes aren't all that much more detailed than errno...
> >
> >The mapping table is not complete. My winerror.h from the SDK 
> >lists 2209
> >error codes, whereas errno.h lists 42...
> >
> >I still don't think we'll get that much more stuff. Right now, 
> >the Win32
> >code paths that actually use the more advanced functions already write
> >out the error number in case something happens. We can keep doing that
> >for the other paths (ereport the error *number* when the mapping does
> >not have a match). The map to errno will catch almost all cases, I
> >think. And in the corner cases we can do with just the number, and use
> >"net helpmsg" to get the actual message when checking...
> 
> Here's an attempt on this. new file goes in backend/port/win32.
> 
> //Magnus

Content-Description: win32error.patch

[ Attachment, skipping... ]

Content-Description: error.c

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [email protected]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [email protected] so that your
      message can get through to the mailing list cleanly
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.