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 1pmlDz-0005DY-Al for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Apr 2023 00:54:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pmlDw-0008Pi-Dm for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Apr 2023 00:54:04 +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 1pmlDv-0008PZ-W3 for pgsql-hackers@lists.postgresql.org; Thu, 13 Apr 2023 00:54:04 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pmlDp-002XmK-6t for pgsql-hackers@lists.postgresql.org; Thu, 13 Apr 2023 00:54:02 +0000 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-32933a4af12so414935ab.3 for ; Wed, 12 Apr 2023 17:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20221208.gappssmtp.com; s=20221208; t=1681347235; x=1683939235; 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=OKcsRmSXM/y/SWFL3gtCj5TUVfY52QcpLe6OAOvZr4E=; b=EsNHkjz7VaTotDqhCd09MUFRz7SAOYxwl36+Crb6YUXebV/rCnEOadAdR5mZ2eWD2V xUp+mTUp9M/XsNT1jiO6UqGFYx2b/o5A4Ur/WTRcyGW2QhiLk9BMSHZzmrbleoigmP0L isypFrGBnv2whfVzGeE2FTO/hpss5sFKSwEeW3g0uAstPrbQK/QZI+9TCXJWuDGMmcxH SxuxKVmYLx16TED1NWNePjmkiyh69IUA3QuahOXFyp0eI1pbjAeJINpzlczUFqBJNdLS cxpC4r21Urqvw3VcB3xxNpNAOxEzhcbRIzeew0eYeoWgpSA2jVj15IcGV0wW9sAewFnO 99KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681347235; x=1683939235; 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=OKcsRmSXM/y/SWFL3gtCj5TUVfY52QcpLe6OAOvZr4E=; b=P/6sD4gS3/Q4vGYzGXhY51ABB7mX6Z6h/zSmXUM8EwKzQLWHQBjvTyhEQq2fJoD83y 3+KchQ87ZX7z9pXWZllPxsstYp6pli1v8eE8U6dy7H53vwRMQZcD1ycHSgqiIvI5PFr5 R42fRXqOtrq2N42OGUOhuYQuogSy6XoYbp9f5IFJV1Ub64VFL/4afjT2dN+Sl3S/m8Y0 /j2y+OTWjxeGYbIWacsl9ulXR1Jk95YaUJbxD9ubZQSpEeSi+28OMXNHZUzeIl0oXsqH bfcc4M9KnoId9YjL6yfT/ybTYkM350LEO5k3PzxOLgxawsjt+jco19JcLOTv5X4w5Fx8 3qIg== X-Gm-Message-State: AAQBX9eU6MIevzOKGoEeJ1g1USrek5HywM26NmyNRdw4LMWFgvGzNF4t gQhWnJHnCfGLUznT/pBcnDjJAg== X-Google-Smtp-Source: AKy350YN241/xvKyASMPP8Rjd+9srct1eqJ6Jj/GLXE1x5gzJJ7eoqVxpqfau6f6E/MS3WH8deg1Kg== X-Received: by 2002:a92:db46:0:b0:329:4ee3:60f5 with SMTP id w6-20020a92db46000000b003294ee360f5mr96686ilq.32.1681347235304; Wed, 12 Apr 2023 17:53:55 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id k26-20020a02a71a000000b003e545419425sm109493jam.84.2023.04.12.17.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 17:53:54 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id EEEC78005DC; Wed, 12 Apr 2023 19:53:53 -0500 (CDT) Date: Wed, 12 Apr 2023 19:53:53 -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 Thu, Apr 13, 2023 at 09:37:06AM +0900, Michael Paquier wrote: > > If you don't insist on calling parse(NONE), the only change is to remove > > the empty #else, which was my original patch. > > Removing the empty else has as problem to create an empty if block, > which could be itself a cause of warnings? I doubt it - in the !HAVE_LIBZ case, it's currently an "if" statement with nothing but a comment, which isn't a problem. I think the only issue with an empty "if" is when you have no braces, like: if (...) #if ... something; #endif // problem here // -- Justin