• Heikki Linnakangas's avatar
    Refactor unit conversions code in guc.c. · 1b630264
    Heikki Linnakangas authored
    Replace the if-switch-case constructs with two conversion tables,
    containing all the supported conversions between human-readable unit
    strings and the base units used in GUC variables. This makes the code
    easier to read, and makes adding new units simpler.
    1b630264
guc.c 251 KB