[PATCH] pg_test_fsync: Delete temporary file when aborted by a signal - Mailing list pgsql-hackers

From Marti Raudsepp
Subject [PATCH] pg_test_fsync: Delete temporary file when aborted by a signal
Date
Msg-id CABRT9RAa5XX4hxkqg9zspLeA+H2DvVT75VoqzbpDgeamdAS_zA@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] pg_test_fsync: Delete temporary file when aborted by a signal  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [v9.2] Fix Leaky View Problem
Next
From: Tom Lane
Date:
Subject: Re: [v9.2] Fix Leaky View Problem