More pg_test_fsync fixups.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 37eb2cd4ad4c3323f1c7ed1c893c9d645fbaeb1a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-01-22T20:01:26Z
Releases: 9.1.0
More pg_test_fsync fixups.

Reduce #includes to minimum actually needed; in particular include
postgres_fe.h not postgres.h, so as to stop build failures on some
platforms.

Use get_progname() instead of hardwired program name; improve error
checking for command line syntax; bring error messages into line with
style guidelines; include strerror result in die() cases.

Files

PathChange+/−
contrib/pg_test_fsync/pg_test_fsync.c modified +36 −26