[PATCH] pg_test_fsync: Delete temporary file when aborted by a signal
[PATCH] pg_test_fsync: Delete temporary file when aborted by a signal
Hi list, I found a 'pg_test_fsync.out' file in my $PGDATA, which was probably left around because I aborted pg_test_fsync with ^C back when setting up the server. Here's a patch to delete that file via a signal handler for SIGINT/SIGTERM/SIGHUP. Not tested on Windows, but should work according to MSDN documentation. Regards, Marti
Re: [PATCH] pg_test_fsync: Delete temporary file when aborted by a signal
От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Wed, Dec 7, 2011 at 1:40 PM, Marti Raudsepp wrote: > Hi list, > > I found a 'pg_test_fsync.out' file in my $PGDATA, which was probably > left around because I aborted pg_test_fsync with ^C back when setting > up the server. > > Here's a patch to delete that file via a signal handler for > SIGINT/SIGTERM/SIGHUP. > > Not tested on Windows, but should work according to MSDN documentation. I committed this, with a bit of additional paranoia. Let's see what the buildfarm thinks. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company