forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4c4f1c
committed
>> 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 timezonebeing picked will be set using set_global_timezone() which in turn callspg_tzset() and loads it in the cache.Magnus Hagander1 parentb4132fd commitf4c4f1c
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
165 |
| - | |
| 165 | + | |
166 | 166 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
170 | 175 |
| |
171 | 176 |
| |
172 |
| - | |
| 177 | + | |
173 | 178 |
| |
174 | 179 |
| |
175 | 180 |
| |
| |||
179 | 184 |
| |
180 | 185 |
| |
181 | 186 |
| |
182 |
| - | |
| 187 | + | |
183 | 188 |
| |
184 | 189 |
| |
185 | 190 |
| |
|
0 commit comments
Comments
(0)