aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_error.cpp
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-03-21 12:14:53 -0400
committerPeter Eisentraut <peter_e@gmx.net>2018-03-21 12:21:23 -0400
commit4731d848f23e08a9396b4831d13fbb6dd460faf2 (patch)
tree006382f6eb95b692556b818f5a9e7ef07cbb5153 /src/backend/jit/llvm/llvmjit_error.cpp
parent56163004b8b2151db279744b77138d4d90e2d5cb (diff)
downloadpostgresql-4731d848f23e08a9396b4831d13fbb6dd460faf2.tar.gz
postgresql-4731d848f23e08a9396b4831d13fbb6dd460faf2.zip
pg_controldata: Prevent division-by-zero errors
If the control file is corrupted and specifies the WAL segment size to be 0 bytes, calculating the latest checkpoint's REDO WAL file will fail with a division-by-zero error. Show it as "???" instead. Also reword the warning message a bit and send it to stdout, like the other pre-existing warning messages. Add some tests for dealing with a corrupted pg_control file. Author: Nathan Bossart <bossartn@amazon.com>, tests by me
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_error.cpp')
0 files changed, 0 insertions, 0 deletions