Re: lz4 --rm on Ubuntu 18.04 (Add LZ4 compression to pg_dump) - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: lz4 --rm on Ubuntu 18.04 (Add LZ4 compression to pg_dump)
Date
Msg-id 367105C9-D199-4D0A-B3D4-B07113440065@yesql.se
Whole thread Raw
In response to Re: lz4 --rm on Ubuntu 18.04 (Add LZ4 compression to pg_dump)  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers
> On 6 Apr 2023, at 18:39, Justin Pryzby <pryzby@telsasoft.com> wrote:

> *If* you wanted to do something to fix this, you could create a key
> called files_to_remove_after_loading, and run unlink on those files
> rather than running a shell command.  Or maybe just remove the file
> unconditionally at the start of the script ?

Since the test is written in Perl, and Perl has a function for deleting files
which abstracts the platform differences, using it seems like a logical choice?
{cleanup_cmd} can be replaced with {cleanup_files} with an unlink called on
that?

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: cataloguing NOT NULL constraints
Next
From: Andrew Dunstan
Date:
Subject: Re: what should install-world do when docs are not available?