Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-20Move pg_test_fsync from contrib/ to src/bin/Peter Eisentraut
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
2014-11-19Avoid file descriptor leak in pg_test_fsync.Robert Haas
This can cause problems on Windows, where files that are still open can't be unlinked. Jeff Janes
2014-10-20pg_test_fsync: Update output formatPeter Eisentraut
Apparently, computers are now a bit faster than when this was first added, so we need to make room for a digit or two in the ops/sec format. While we're at it, adjust some of the other output for a more consistent line length.
2014-07-14Add file version information to most installed Windows binaries.Noah Misch
Prominent binaries already had this metadata. A handful of minor binaries, such as pg_regress.exe, still lack it; efforts to eliminate such exceptions are welcome. Michael Paquier, reviewed by MauMau.
2014-05-06pgindent run for 9.4Bruce Momjian
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
2014-02-12pg_test_fsync: add C comment about direct I/O and write size failureBruce Momjian
Report from Marti Raudsepp
2013-08-02pg_test_fsync: expand ops/sec displayBruce Momjian
Expand ops/sec by two digits to maintain alignment on servers with fast I/O subsystems, e.g. can now display < 10M ops/sec with consistent alignment.
2013-07-08Fix pg_test_fsync, broken by xloginsert scaling patch.Heikki Linnakangas
I didn't realize that ALIGNOF_XLOG_BUFFER was used in pg_test_fsync.
2013-07-01Remove undocumented -h (help) optionBruce Momjian
The -h option was not supported by many tools, and not documented, so remove them for consistency from pg_upgrade, pg_test_fsync, and pg_test_timing.
2013-05-02pg_test_fsync: update output to show usecs/op clearerBruce Momjian
2013-03-17Use pqsignal() in contrib programs rather than calling signal(2) directly.Tom Lane
The semantics of signal(2) are more variable than one could wish; in particular, on strict-POSIX platforms the signal handler will be reset to SIG_DFL when the signal is delivered. This demonstrably breaks pg_test_fsync's use of SIGALRM. The other changes I made are not absolutely necessary today, because the called handlers all exit the program anyway. But it seems like a good general practice to use pqsignal() exclusively in Postgres code, now that we have it available everywhere.
2013-03-15Improve the documentation about commit_delay.Tom Lane
Clarify the docs explaining what commit_delay does, and add a recommendation about a useful value for it, namely half of the single-page fsync time reported by pg_test_fsync. This is informed by testing of the new-in-9.3 implementation of commit_delay; in prior versions it was far harder to arrive at a useful setting. In passing, do some wordsmithing and markup-fixing in the same general area. Also, change pg_test_fsync's default time-per-test from 2 seconds to 5. The old value was about the minimum at which the results could be taken seriously at all, and so seems a tad optimistic as a default. Peter Geoghegan, reviewed by Noah Misch; some additional editing by me
2012-11-30Move long_options structures to the top of main() functions, forBruce Momjian
consistency. Per suggestion from Tom.
2012-10-12Fix unportable format string.Tom Lane
Per compiler warning.
2012-10-09Add microsecs/op display to pg_test_fsync utilitySimon Riggs
e.g. fsync 2103.613 ops/sec ( 475 microsecs/op) Peter Geoghegan
2012-06-10Run pgindent on 9.2 source tree in preparation for first 9.3Bruce Momjian
commit-fest.
2012-02-15Fix pg_test_fsync Win32 problems reported by the build farm; addBruce Momjian
comments about the alarm method used on Win32.
2012-02-15Try to get pg_test_thread to compile on Windows by using a sleeperBruce Momjian
thread.
2012-02-14Change contrib/pg_test_fsync to control tests in terms of seconds perBruce Momjian
test, rather than a number of test cycles. Changes -o/cycles option to -s/seconds.
2012-02-14Improve labeling of pg_test_fsync open_sync test output.Bruce Momjian
2011-12-09If pg_test_fsync is interrupted, clean up the temp file.Robert Haas
Marti Raudsepp, with additional paranoia by me.
2011-05-10Put pg_test_fsync --help and --version output in line with conventionsPeter Eisentraut
Foremost, it should go to stdout.
2011-04-19Avoid unused variable warnings for certain configurationsPeter Eisentraut
2011-04-10pgindent run before PG 9.1 beta 1.Bruce Momjian
2011-03-11Modify pg_test_fsync to match the behavior of git head in regards toBruce Momjian
O_DIRECT behavior.
2011-02-14Convert contrib modules to use the extension facility.Tom Lane
This isn't fully tested as yet, in particular I'm not sure that the "foo--unpackaged--1.0.sql" scripts are OK. But it's time to get some buildfarm cycles on it. sepgsql is not converted to an extension, mainly because it seems to require a very nonstandard installation process. Dimitri Fontaine and Tom Lane
2011-01-26Per Peter E, use 'kB' for kilobyte, not 'K'.Bruce Momjian
2011-01-26In pg_test_fsync, use K(1024) rather than k(1000) for write size units.Bruce Momjian
2011-01-26Adjust pg_test_fsync to always do XLOG_BLCKSZ-sized writes, rather thanBruce Momjian
always 8k writes, per suggestion from Tom. Also adjust open_sync output layout.
2011-01-25Use XLOG_BLCKSZ in pg_test_fsync, rather than our own define, but verifyBruce Momjian
it is 8k as expected.
2011-01-25In test_open_sync(), writes kilobytes as intended, not by bytes.Bruce Momjian
2011-01-22More pg_test_fsync fixups.Tom Lane
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.
2011-01-22Suppress unused-variables warning when OPEN_SYNC_FLAG isn't defined.Tom Lane
Per buildfarm.
2011-01-22More pg_test_fsync cleanup.Tom Lane
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.
2011-01-22Clean up pg_test_fsync commit.Tom Lane
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.
2011-01-21Update C banner on new pg_test_fsync file.Bruce Momjian
2011-01-21Move test_fsync to /contrib.Bruce Momjian