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 1pmP9Z-0005tL-51 for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Apr 2023 01:20:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pmP9Y-0007l1-2R for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Apr 2023 01:20:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmP9X-0007kq-PC for pgsql-hackers@lists.postgresql.org; Wed, 12 Apr 2023 01:20:03 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pmP9V-0001wD-LZ for pgsql-hackers@lists.postgresql.org; Wed, 12 Apr 2023 01:20:02 +0000 Received: by mail-il1-x129.google.com with SMTP id x7so579151ill.13 for ; Tue, 11 Apr 2023 18:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; t=1681262401; x=1683854401; 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=rfYH93TS11TeCMusV60guxgujpm56yYxaV5/Xgl/GiU=; b=Mj/69mszKS0hBA/YsOUPGx84qjJHWq3OikjR0MNbxA9NPVOxMcWK6A/gb8PS0XlXCr pVbm6n5bN+5o0soh8SVVmn086CAeYB9zt4O/KouOEDkf1EsmuA8bHZHMscWlwo8NiXp8 +pKK6OtdjpOdnZ9E7g6wNl8MLTJq3QRhRdJLqgY+n11x+2I7m9Gtx90IcmrPshx7zmBZ DXj7B4PdeIOqswFOco/UDoGNmY3DiTFZf20TW92kYELvR5JJdyc8CIRL1xxoD09y19fG XcWuvNBb60sDBVUrc2tFWx16D1opsHB+ZA5K+KN//PUO8o4FME539qbrX3iqK/YJtSQw lqFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681262401; x=1683854401; 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=rfYH93TS11TeCMusV60guxgujpm56yYxaV5/Xgl/GiU=; b=fL0jUBHLGFMAwQoE1H6i+jFVXJ3iekKDLbtSSTjSYP1hiXBiEdhaNRHBnzXs7HNj0q 8vdv53qTRRWIgKpSNUcEJZlU6KnS2+u4hKTNlD3NsVxSNIPGEMBk/4tz2uXRJE5xMwm5 e/REu0/7Nh7FjaTJnOK86Kpa7lDLbg1/BgaPuOvsUzFBEiHRJpW/mEPIxsi7SSNxsraR 43+GMeVNS33ykUDeeYEmVLFf8M0ohcu9f4q1r3Xr9NAAGoF2UuLBOy30SpG6yIHb5HVr wZMR/PYzC5RaZ//W5i3SCZcVt+ndD75opOLnd6RN4oTrOty0m3CErxqeK2geN0d0m8ux LGEw== X-Gm-Message-State: AAQBX9cazCUf0sU3pkr2QpaUWDogXthmBK6ReTH1FcLqu94JDfmtuxc1 d2Vc54/Sdj659NGeonOUhuhGZA== X-Google-Smtp-Source: AKy350Zfk7YmtjQEhs0Z0pKy1oitaI3/MAclAR0Zb0dSn+aK5ZpGC9xcMxWXlxA2H538AnitE/6XZg== X-Received: by 2002:a92:7511:0:b0:326:1d7e:1238 with SMTP id q17-20020a927511000000b003261d7e1238mr559842ilc.16.1681262401144; Tue, 11 Apr 2023 18:20:01 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a36-20020a029427000000b0040bda8fa34bsm1262910jai.120.2023.04.11.18.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 18:20:00 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 9F5EE800147; Tue, 11 Apr 2023 20:19:59 -0500 (CDT) Date: Tue, 11 Apr 2023 20:19:59 -0500 From: Justin Pryzby To: Michael Paquier Cc: Tomas Vondra , gkokolatos@pm.me, shiy.fnst@fujitsu.com, pgsql-hackers@lists.postgresql.org, Rachel Heaton Subject: Re: Add LZ4 compression in pg_dump Message-ID: References: <8ffd14fe-0278-7f8d-78d4-472816d06268@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 12, 2023 at 10:07:08AM +0900, Michael Paquier wrote: > On Tue, Apr 11, 2023 at 07:41:11PM -0500, Justin Pryzby wrote: > > Maybe I would write it as: "if zlib is unavailable, default to no > > compression". But I think that's best done in the leading comment, and > > not inside an empty preprocessor #else. > > > > I was hoping Michael would comment on this. > > (Sorry for the late reply, somewhat missed that.) > > > The placement and phrasing of the comment makes no sense to me. > > Yes, this comment gives no value as it stands. I would be tempted to > follow the suggestion to group the whole code block in a single ifdef, > including the check, and remove this comment. Like the attached > perhaps? +1