forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita120791
committed
Use zic's new "-b slim" option to generate smaller timezone files.
IANA tzcode release 2019b adds an option that tells zic not to emitthe old 32-bit section of the timezone files, and to skip some otherspace-wasting hacks needed for compatibility with old timezone clientlibraries. Since we only expect our own code to use the timezone datawe install, and our code is up-to-date with 2019b, there's no apparentreason not to generate the smallest possible files.Unfortunately, while the individual zone files do get significantlysmaller in many cases, they were not that big to begin with; whichmeans that no real space savings ensues on filesystems that don'toptimize small files. (For instance, on ext4 with 4K block size,"du" says the installed timezone tree is the same size as before.)Still, it seems worth making the change, if only because this ispresumably the wave of the future. At the very least, we'll savesome cycles while reading a zone file.But given the marginal value and the fact that this is a new codepath, it doesn't seem worth the risk of back-patching this changeinto stable branches. Hence, unlike most of our timezone-relatedchanges, apply to HEAD only.Discussion:https://postgr.es/m/24998.1563403327@sss.pgh.pa.us1 parent28b6ec1 commita120791
2 files changed
+4
-3
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
365 | 365 |
| |
366 | 366 |
| |
367 | 367 |
| |
368 |
| - | |
369 |
| - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
370 | 371 |
| |
371 | 372 |
| |
372 | 373 |
| |
|
0 commit comments
Comments
(0)