Skip to content
Snippets Groups Projects
  • Robert Haas's avatar
    97f38001
    Fix numeric_maximum_size() calculation. · 97f38001
    Robert Haas authored
    The old computation can sometimes underestimate the necessary space
    by 2 bytes; however we're not back-patching this, because this result
    isn't used for anything critical.  Per discussion with Tom Lane,
    make the typmod test in this function match the ones in numeric()
    and apply_typmod() exactly.
    97f38001
    History
    Fix numeric_maximum_size() calculation.
    Robert Haas authored
    The old computation can sometimes underestimate the necessary space
    by 2 bytes; however we're not back-patching this, because this result
    isn't used for anything critical.  Per discussion with Tom Lane,
    make the typmod test in this function match the ones in numeric()
    and apply_typmod() exactly.