Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phELw-0000XF-NY for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2023 18:47:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phELu-0006eM-Rt for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Mar 2023 18:47:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phELu-0006dr-FV for pgsql-hackers@lists.postgresql.org; Tue, 28 Mar 2023 18:47:26 +0000 Received: from mail-il1-x136.google.com ([2607:f8b0:4864:20::136]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phELs-0001kg-8d for pgsql-hackers@lists.postgresql.org; Tue, 28 Mar 2023 18:47:25 +0000 Received: by mail-il1-x136.google.com with SMTP id q5so1446685ilg.12 for ; Tue, 28 Mar 2023 11:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; t=1680029242; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KNKd//Wn5qWhoe1m5dezeJKXK+HdoDI8yYgB2SWMtQ8=; b=fg9lsaVoziKbIVOYhWIbaIXPfg8YCEV6Oqzo7WLrcwVK0anaqCPI7UzTrEO76Mpi4E +xuQMa51FbZ2yldpwhym2mhc64DvvcmFpJqkT2wKxzChrUXkiblT2lEAPw5cNP2ANQrw N4lfEGLc26qxOIf8QltsBXYykUp7LSRw4nQ757fR6sy8HHi1ItrOE8wj3Rax/7qfnKSh p1LsxJ4m/07wm2ZDZKgK9cSkMusvKrbVUqttihxbsGIfcqCMw+/Mh8yNlnlK0ePD1zxP mAhOXNR9FHq0BzwoaSJGdNVYgnnVKN93XFMw26ymTp+3wu8A6ap+6rftyfz38W0+lbGG VW9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680029242; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KNKd//Wn5qWhoe1m5dezeJKXK+HdoDI8yYgB2SWMtQ8=; b=WjnSP7FcZbYgSMi/WbAeb3m1cufpVbFpqCLGCIl0/HG8jhnUjX5AVeqjlh5c7+/838 SmWX3YB/mAqfpg83Imtrz+UMgDSt9rocm8ennCC2lL+7PvGdrmG5KQi955JfryxZIVyr ZmAsCcp0JbnmtUovCRHQAmZgn0U1tGIuV8UJilzyXf2U4ZfxEjnoTwqh8CQBSedP3t7h lYvyyAOxiitnhHGd85MPYUj++MyA0oFOMtqETs1WAqBz4UzT3VoRa2yzA0T9LQdsXPOA Yna35qUKYecVploOnBhCLmSmMgDJ5AtpyH2VVKiwm2JOUExQgIq3JYAOFsuiA1zsGIy7 xk1Q== X-Gm-Message-State: AAQBX9dRdc/z9S3hQopEwqtpEQW+QlFuN+bxxS2HmawzwN8k4zqPiDAq c1XkTD3MjkRr5ti9zawBwcSR7Q== X-Google-Smtp-Source: AKy350Z40VZqzBSylbpcv3u/jBPwvEvSwi5zNLtRvlG0NZQuJ+b2/ysHU/cFmng/cGFxCTCuP0CpbQ== X-Received: by 2002:a92:d312:0:b0:325:ae8a:2c21 with SMTP id x18-20020a92d312000000b00325ae8a2c21mr13236357ila.19.1680029242552; Tue, 28 Mar 2023 11:47:22 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f11-20020a056638328b00b003c4f5f9f577sm10068444jav.25.2023.03.28.11.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 11:47:22 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 4212880113D; Tue, 28 Mar 2023 13:47:21 -0500 (CDT) Date: Tue, 28 Mar 2023 13:47:21 -0500 From: Justin Pryzby To: Tomas Vondra Cc: gkokolatos@pm.me, Alexander Lakhin , shiy.fnst@fujitsu.com, Michael Paquier , pgsql-hackers@lists.postgresql.org, Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: References: <5qAu7vrMV3hEodlIC82b0JICWTwEUSRoIDWlIaczNBIEVVfDH2lccxHNIQ726e4nX_Qqjc4lPc5_z9RtV28NMdVv7BNiADF4JB-FDahmlVk=@pm.me> <32ba9612-1982-4b2d-135a-5d1222987082@enterprisedb.com> <3beb0dd7-c927-3eca-689f-716e255d5b27@enterprisedb.com> <96ba63e1-5ad6-1873-c3f5-c12a0a921c5e@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96ba63e1-5ad6-1873-c3f5-c12a0a921c5e@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 28, 2023 at 06:40:03PM +0200, Tomas Vondra wrote: > On 3/28/23 18:07, gkokolatos@pm.me wrote: > > ------- Original Message ------- > > On Friday, March 24th, 2023 at 10:30 AM, gkokolatos@pm.me wrote: > > > >> ------- Original Message ------- > >> On Thursday, March 23rd, 2023 at 6:10 PM, Tomas Vondra tomas.vondra@enterprisedb.com wrote: > >> > >>> This leaves the empty-data issue (which we have a fix for) and the > >>> switch to LZ4F. And then the zstd part. > >> > >> Please expect promptly a patch for the switch to frames. > > > > Please find the expected patch attached. Note that the bulk of the > > patch is code unification, variable renaming to something more > > appropriate, and comment addition. These are changes that are not > > strictly necessary to switch to LZ4F. I do believe that are > > essential for code hygiene after the switch and they do belong > > on the same commit. > > Thanks! > > I agree the renames & cleanup are appropriate - it'd be silly to stick > to misleading naming etc. Would it make sense to split the patch into > two, to separate the renames and the switch to lz4f? > That'd make it the changes necessary for lz4f switch clearer. I don't think so. Did you mean separate commits only for review ? The patch is pretty readable - the File API has just some renames, and the compressor API is what's being replaced, which isn't going to be any more clear. @Georgeos: did you consider using a C union in LZ4State, to separate the parts used by the different APIs ? -- Justin