Unix Technical Forum

Re: Fix for initdb failures on Vista

This is a discussion on Re: Fix for initdb failures on Vista within the Pgsql Patches forums, part of the PostgreSQL category; --> Dave Page wrote: > The attached patch fixes problems reported primarily on Vista, but > also on some Windows ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 06:25 AM
Heikki Linnakangas
 
Posts: n/a
Default Re: Fix for initdb failures on Vista

Dave Page wrote:
> The attached patch fixes problems reported primarily on Vista, but
> also on some Windows 2003 and XP installations in which initdb reports
> that it cannot find postgres.exe.


A couple of minor nitpicks:

Regarding the AddUserToDaclCleanup helper function, I would suggest
putting all the cleanups at the end of AddUserToDacl, jump to the
cleanup section with a goto. That's a commonly used pattern to do it.
One problem with the Cleanup function is that if you need to add more
cleanup code (probably not likely in this case, though), you need to
modify the function signature and all callers.

The comment in AddUserToDacl says "This is required on Windows machines
running some of Microsoft's latest security patches on XP/2K3, and on
Vista/Longhorn boxes". The security patches we're talking about are not
going to be the latest for very long; might want to rephrase that.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

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

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 12:27 PM.


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