Unix Technical Forum

pgsql: >> Do you agree that using a hashtable for it in general is a

This is a discussion on pgsql: >> Do you agree that using a hashtable for it in general is a within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- >> Do you agree that using a hashtable for it in general is a good idea ...


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-10-2008, 01:07 PM
Bruce Momjian
 
Posts: n/a
Default pgsql: >> Do you agree that using a hashtable for it in general is a

Log Message:
-----------
>> Do you agree that using a hashtable for it in general is a good idea
>> assuming this sideeffect is removed, though?

>
>I have no problem with the hashtable, only with preloading it with
>everything. What I'd like to see is that the table inherited at fork()
>contains just the data for the default timezone. (At least in the
>normal case where that setting hasn't been changed since postmaster
>start.)


Here's a patch doing this. Changes score_timezone not to use pg_tzset(),
and thus not loading all the zones in the cache. The actual timezone
being picked will be set using set_global_timezone() which in turn calls
pg_tzset() and loads it in the cache.

Magnus Hagander

Modified Files:
--------------
pgsql/src/timezone:
pgtz.c (r1.32 -> r1.33)
(http://developer.postgresql.org/cvsw...1=1.32&r2=1.33)

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

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 07:23 PM.


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