diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-03-23 10:10:49 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-03-23 10:14:25 -0400 |
commit | f1a074b146c900bd439b6ef1953866f41b61a669 (patch) | |
tree | 74f406efef1cd8cadccb2c5c841abc712b5413b4 /src/tutorial/funcs.c | |
parent | 86f575948c773b0ec5b0f27066e37dd93a7f0a96 (diff) | |
download | postgresql-f1a074b146c900bd439b6ef1953866f41b61a669.tar.gz postgresql-f1a074b146c900bd439b6ef1953866f41b61a669.zip |
pg_resetwal: Prevent division-by-zero errors
Handle the case where the pg_control file specifies a WAL segment size
of 0 bytes. This would previously have led to a division by zero error.
Change this to assume the whole file is corrupt and go to guess
everything.
Discussion: https://www.postgresql.org/message-id/a6163ad7-cc99-fdd1-dfad-25df73032ab8%402ndquadrant.com
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions