Re: Teach pg_receivewal to use lz4 compression - Mailing list pgsql-hackers

From gkokolatos@pm.me
Subject Re: Teach pg_receivewal to use lz4 compression
Date
Msg-id LLkX3RHsODZzyAJI033ZsLqPxDKHYhQANy6hweFCN_YEO5lndNYL5idWqGDYzyU6g5OA0BNdZO2n_nE99w5wQLvWRWFTuzINBjjvT7v11Wg=@pm.me
Whole thread Raw
In response to Re: Teach pg_receivewal to use lz4 compression  (Jian Guo <gjian@vmware.com>)
List pgsql-hackers
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Saturday, September 11th, 2021 at 07:02, Jian Guo <gjian@vmware.com> wrote:

Hi,

thank you for looking at the patch.

> -             LZ4F_decompressionContext_t ctx = NULL;
> -             snprintf(fullpath, sizeof(fullpath), "%s/%s", basedir, dirent->d_name);
> -             fd = open(fullpath, O_RDONLY | PG_BINARY, 0);
>
> Should close the fd before exit or abort.

You are correct. Please find version 4 attached.

Cheers,
//Georgios
Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: corruption of WAL page header is never reported
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: drop tablespace failed when location contains .. on win32