Re: [HACKERS] pg_basebackup: Allow use of arbitrary compression program - Mailing list pgsql-hackers

From Michael Harris
Subject Re: [HACKERS] pg_basebackup: Allow use of arbitrary compression program
Date
Msg-id CADofcAU_cn63Mggvi+p7T50SbvAdDVXMYFUjyoSCsXOUr-WAGg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] pg_basebackup: Allow use of arbitrary compression program  (Magnus Hagander <magnus@hagander.net>)
Responses Re: [HACKERS] pg_basebackup: Allow use of arbitrary compression program
List pgsql-hackers
Hi,

Thanks for the feedback!

>> 2) The current logic either uses zlib if compiled in, or offers no
>> compression at all, controlled by a series of #ifdef/#endif. I would
>> prefer that the user can either use zlib or an external program
>> without having to recompile, so I would remove the #ifdefs and replace
>> them with run time branching.
>
>
> Not sure how that would work or be needed. The reasonable thing would be if zlib
> is available when building the choices would be "no compression",
> "zlib compression" or "external compression". If there was no zlib available
> when building, the choices would be "no compression" or "external compression".

That's exactly how I intend it to work. I had thought that the current
structure of the code would not allow that, but looking at it more
closely I see that it does, so I don't have to re-organize the
#ifdefs.

Regards // Mike



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: [HACKERS] Possible problem in Custom Scan API
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] TAP tests take a long time