Re: Refactoring of compression options in pg_basebackup
gkokolatos@pm.me
From: gkokolatos@pm.me
To: Michael Paquier <michael@paquier.xyz>
Cc: Robert Haas <robertmhaas@gmail.com>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>,
Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>
Date: 2022-01-05T09:17:28Z
Lists: pgsql-hackers
On Wednesday, January 5th, 2022 at 9:00 AM, Michael Paquier <michael@paquier.xyz> wrote: > On Mon, Jan 03, 2022 at 03:35:57PM +0000, gkokolatos@pm.me wrote: > > I propose to initialize streamer to NULL when declared at the top of > > CreateBackupStreamer(). > > Yes, that may be noisy. Done this way. Great. > > You can see that after the check_pg_config() test, only 3 tests follow, > > namely: > > * $node->command_ok() > > * is(scalar(), ...) > > * is($gzip_is_valid, ...) > > Indeed. The CF bot was complaining about that, actually. Great. > Thinking more about this stuff, pg_basebackup --compress is an option > that exists already for a couple of years, and that's independent of > the backend-side compression that Robert and Jeevan are working on, so > I'd like to move on this code cleanup. We can always figure out the > LZ4 part for pg_basebackup after, if necessary. I agree that the cleanup in itself is helpful. It feels awkward to have two utilities under the same path, with distinct options for the same functionality. When the backend-side compression is completed, were there really be a need for client-side compression? If yes, then it seems logical to have distinct options for them and this cleanup makes sense. If not, then it seems logical to maintain the current options list and 'simply' change the internals of the code, and this cleanup makes sense. > Attached is an updated patch. The CF bot should improve with that. +1 > -- > Michael Cheers, //Georgios
Commits
-
Extend the options of pg_basebackup to control compression
- 5c649fe15336 15.0 landed
-
Add TAP tests for pg_basebackup with compression
- 50e144193c77 15.0 landed
-
Refactor tar method of walmethods.c to rely on the compression method
- 000f3adfdc43 15.0 landed