git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 86f5759) | patch
pg_resetwal: Prevent division-by-zero errors
2018年3月23日 14:10:49 +0000 (10:10 -0400)
2018年3月23日 14:14:25 +0000 (10:14 -0400)
commit f1a074b146c900bd439b6ef1953866f41b61a669
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
src/bin/pg_resetwal/pg_resetwal.c diff | blob | blame | history
src/bin/pg_resetwal/t/002_corrupted.pl [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /