Add overflow test in function numeric_exp.
Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.
Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:
git clone --branch t39472_1 https://github.com/hackorum-dev/postgres.gitIn a checkout you already have, add the fork once:
git remote add hackorum https://github.com/hackorum-dev/postgres.gitthen, for this patchset and every later one:
git fetch hackorum t39472_1 && git checkout t39472_1Patchset v1 (message #1) is on t39472_1
Yang Xiao <YangX92@hotmail.com> writes:
The attachment is the proposal patch for function numeric_exp in
src/backend/utils/adt/numeric.c.
Why do we need this? numeric_exp() already detects result overflow.
regression=# select numeric_exp(10000);
ERROR: value overflows numeric format
regards, tom lane