Robert Haas
ab7d4213f9
If pg_test_fsync is interrupted, clean up the temp file.
...
Marti Raudsepp, with additional paranoia by me.
14 years ago
Peter Eisentraut
3a8dcd9a1f
Put pg_test_fsync --help and --version output in line with conventions
...
Foremost, it should go to stdout.
15 years ago
Peter Eisentraut
001cbb145f
Avoid unused variable warnings for certain configurations
15 years ago
Bruce Momjian
bf50caf105
pgindent run before PG 9.1 beta 1.
15 years ago
Bruce Momjian
303b7fcd10
Modify pg_test_fsync to match the behavior of git head in regards to
...
O_DIRECT behavior.
15 years ago
Bruce Momjian
4fec63f94e
Per Peter E, use 'kB' for kilobyte, not 'K'.
15 years ago
Bruce Momjian
00869024cb
In pg_test_fsync, use K(1024) rather than k(1000) for write size units.
15 years ago
Bruce Momjian
64bc872761
Adjust pg_test_fsync to always do XLOG_BLCKSZ-sized writes, rather than
...
always 8k writes, per suggestion from Tom. Also adjust open_sync output
layout.
15 years ago
Bruce Momjian
9dd7933937
Use XLOG_BLCKSZ in pg_test_fsync, rather than our own define, but verify
...
it is 8k as expected.
15 years ago
Bruce Momjian
9fc0192283
In test_open_sync(), writes kilobytes as intended, not by bytes.
15 years ago
Tom Lane
37eb2cd4ad
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.
15 years ago
Tom Lane
3ae28ce8c4
Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined.
...
Per buildfarm.
15 years ago
Tom Lane
cb38ab6d3b
More pg_test_fsync cleanup.
...
Un-break Windows build (I hope) by making the HAVE_FSYNC_WRITETHROUGH
code match the backend. Fix incorrect program help message. static-ize
all functions.
15 years ago
Tom Lane
bc616703e8
Clean up pg_test_fsync commit.
...
Actually rename the program, rather than just claiming we did. Hook it
into the build system. Get rid of useless dependency on libpq. Clean up
#include list and messy whitespace.
15 years ago
Bruce Momjian
b35bfcae93
Update C banner on new pg_test_fsync file.
15 years ago
Bruce Momjian
606a3d54fc
Move test_fsync to /contrib.
15 years ago
Bruce Momjian
8995440e38
In test_fsync, adjust test headings to match wal_sync_method values;
...
add more test cases for open_sync of different sizes.
15 years ago
Bruce Momjian
08af45f4ff
Add getopt() support to test_fsync; also fix printf() format problem.
15 years ago
Bruce Momjian
e0c274679c
In test_fsync, use #define for printf format of ops/sec.
15 years ago
Bruce Momjian
6dc15e3bef
Use O_DIRECT in O_SYNC test of different size. Restructure O_DIRECT
...
error reporting to be more consistent.
15 years ago
Bruce Momjian
3eebb33ddd
Reverse number of stars used for test_fsync details.
15 years ago
Bruce Momjian
431605f666
In test_fsync, warn about options without o_direct that are not used by
...
Postgres, and cases where o_direct does not work with certain file systems.
15 years ago
Bruce Momjian
001d3664e3
Have test_fsync output details that fdatasync is the default
...
wal_sync_method on Linux.
15 years ago
Bruce Momjian
169516ad93
Restructure test_fync to use modular C so there is less duplicate code
...
and it can be enhanced easier.
15 years ago
Bruce Momjian
3ab80cfe03
Improve output display of test_fsync.
15 years ago
Bruce Momjian
677b06ca46
Apply patch for test_fsync to add tests for O_DIRECT.
...
Adjusted patch by Josh Berkus
15 years ago
Tom Lane
e77f605d43
Remove excess argument to open(2).
...
Many compilers don't complain about this, but some do, and it's certainly
wrong. Back-patch to 8.4 where the error was introduced.
Mark Kirkwood
15 years ago
Magnus Hagander
9f2e211386
Remove cvs keywords from all files.
15 years ago
Bruce Momjian
bae8283557
Print each test_fsync description while test is running, rather than at
...
the end.
15 years ago
Bruce Momjian
239d769e7e
pgindent run for 9.0, second run
15 years ago
Bruce Momjian
2330d9c147
Simplify test_fsync duration computation.
15 years ago
Bruce Momjian
7341a8cab2
Report test_fynsc times in tests per second, instead of total seconds.
15 years ago
Bruce Momjian
65e806cba1
pgindent run for 9.0
16 years ago
Bruce Momjian
017c47bf51
test_fsync:
...
Improve test descriptions displayed during test_fsync; increase default
loops to 5k.
16 years ago
Bruce Momjian
c6bc0feb00
fsync test files
...
Prevent creation of 16GB files during fsync testing; only create 16MB
files; backpatch to 8.4.X.
16 years ago
Bruce Momjian
933b17b663
Adjust test_fsync code to be more sane.
...
Backpatch to 8.4.X.
16 years ago
Bruce Momjian
d747140279
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
...
provided by Andrew.
16 years ago
Bruce Momjian
d0ab409eae
Add missing third argument to open().
17 years ago
Andrew Dunstan
53972b460c
Add $PostgreSQL$ markers to a lot of files that were missing them.
...
This particular batch was just for *.c and *.h file.
The changes were made with the following 2 commands:
find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'
find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
18 years ago
Bruce Momjian
fdf5a5efb7
pgindent run for 8.3.
18 years ago
Bruce Momjian
049f6b9baa
Properly pass third argument to open() in fsync test program.
...
Hiroshi Saito
18 years ago
Bruce Momjian
a9eb53969a
Move fsync method macro defines into /include/access/xlogdefs.h so they
...
can be used by src/tools/fsync/test_fsync.c.
19 years ago
Bruce Momjian
0d9e0d9dde
Copy fsync() defines into test_fsync.c, someday place them in an
...
include.
Propery align for O_DIRECT.
Check for write()/fsync() failures.
19 years ago
Bruce Momjian
1120c61b29
Revert out:
...
Update fsync test to match new O_DIRECT behavior.
Greg Smith
19 years ago
Bruce Momjian
3455b0a5d5
Update fsync test to match new O_DIRECT behavior.
...
Greg Smith
19 years ago
Bruce Momjian
5777dca4f8
Fix test_fsync compile on MinGW(win32)
...
Hiroshi Saito
19 years ago
Bruce Momjian
558c4367e7
Update error message and documentation for fsync test.
20 years ago
Bruce Momjian
46117e4f2a
Have test_fsync honor -f filename argument.
20 years ago
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
20 years ago
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
21 years ago