Unix Technical Forum

pgsql: Use snprintf instead of wsprintf, and use getenv("APPDATA")

This is a discussion on pgsql: Use snprintf instead of wsprintf, and use getenv("APPDATA") within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Use snprintf instead of wsprintf, and use getenv("APPDATA") instead of SHGetFolderPath. This removes the direct dependency ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 01:50 AM
Magnus Hagander
 
Posts: n/a
Default pgsql: Use snprintf instead of wsprintf, and use getenv("APPDATA")

Log Message:
-----------
Use snprintf instead of wsprintf, and use getenv("APPDATA") instead of
SHGetFolderPath.

This removes the direct dependency on shell32.dll and user32.dll, which
eats a lot of "desktop heap" for each backend that's started. The
desktop heap is a very limited resource, causing backends to no
longer start once it's been exhausted.

We still have indirect depdendencies on user32.dll through third party
libraries, but those can't easily be removed.

Dave Page

Modified Files:
--------------
pgsql/src/backend/port/win32:
signal.c (r1.18 -> r1.19)
(http://developer.postgresql.org/cvsw...1=1.18&r2=1.19)
pgsql/src/port:
kill.c (r1.8 -> r1.9)
(http://developer.postgresql.org/cvsw...?r1=1.8&r2=1.9)
path.c (r1.71 -> r1.72)
(http://developer.postgresql.org/cvsw...1=1.71&r2=1.72)

---------------------------(end of broadcast)---------------------------
TIP 3: 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 05:45 AM.


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