aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-08-31 13:42:18 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-08-31 13:42:28 -0400
commitd9c366f9e8017306201fe12d27212d8720395c04 (patch)
treedad9b6375b2fa989f5ba2e347fb3fb8362258a9f /src/backend/access/transam/xlog.c
parentf919c165ebdc2f85e4584e959e002705a5a0a774 (diff)
downloadpostgresql-d9c366f9e8017306201fe12d27212d8720395c04.tar.gz
postgresql-d9c366f9e8017306201fe12d27212d8720395c04.zip
Code review for pg_verify_checksums.c.
Use postgres_fe.h, since this is frontend code. Pretend that we've heard of project style guidelines for, eg, #include order. Use BlockNumber not int arithmetic for block numbers, to avoid misbehavior with relations exceeding 2^31 blocks. Avoid an unnecessary strict-aliasing warning (per report from Michael Banck). Const-ify assorted stuff. Avoid scribbling on the output of readdir() -- perhaps that's safe in practice, but POSIX forbids it, and this code has so far earned exactly zero credibility portability-wise. Editorialize on an ambiguously-worded message. I did not touch the problem of the "buf" local variable being possibly insufficiently aligned; that's not specific to this code, and seems like it should be fixed as part of a different, larger patch. Discussion: https://postgr.es/m/1535618100.1286.3.camel@credativ.de
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions