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 1pvplh-0007T7-Jp for pgsql-hackers@arkaria.postgresql.org; Mon, 08 May 2023 01:34:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pvplg-0004jW-Hk for pgsql-hackers@arkaria.postgresql.org; Mon, 08 May 2023 01:34:24 +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 1pvplg-0004jN-80 for pgsql-hackers@lists.postgresql.org; Mon, 08 May 2023 01:34:24 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pvplb-001H2b-EW for pgsql-hackers@lists.postgresql.org; Mon, 08 May 2023 01:34:23 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-50bc5197d33so7589485a12.1 for ; Sun, 07 May 2023 18:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1683509658; x=1686101658; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=MDwXwDLMPI/FhTlbIMXS1taS5B1qKhN+J/4b4ZgIuJk=; b=hgs0ChrY6GBVFjT0f3GFB+eiuEEiF7iaQZVQ5qVkaRvsWhaKpCwMuDu5TFt2DzKhI9 DJjNNfB14ZFdobJtzhXUWUOfaT9xj1lB2leR0yQqTIBMZr2bc89BjN5UHbs/3npLiIg8 FDaGPfubGtiwu8t8X56sEM2tFgtsQr7OvpVz+4NNFP4Telpg6dYpK2AiZa2MFcPN19SV f6I8UmqBrs1IVJodNlx6H0ziN1bBTbEEfcyAoJHSH2MAz0XN9rAULL1i1NkEEA4XfLKw rXfyLC8bOWU6rFO5Po+sFv4khrES7sxgecpr17M9mLxnmvnEhq3gHH14XLJfP3/NrkRo B7yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683509658; x=1686101658; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MDwXwDLMPI/FhTlbIMXS1taS5B1qKhN+J/4b4ZgIuJk=; b=ehRdAR9a+dnXX9raDhrzALq1iyrcMubV+d9oLBkX0LyyQWLKQ1hUsKCp1TBTolTbu3 qegKBu2gfBG0G8LMFwTVl8tThWUGWOTHp3L9LZmLGsM3rPA5X1j07+E5LgJG1fdvGdhj 3mUAoTN5BnWA0IS1PpArAthAk0eJefGWDcqwk13EcrJ+4+dd53GNwjbqwoHnfKbcndME C9sYPRIiGGC9BdfYposi9IJTmA5HLcqhcs5UJTsagd1rBxnIp7339MjR9E0OZZqnu5oH KpCalhsuGIepjIqhmek/PVsHqspX3et3m6tDVzCEs+BlTv5L43o8LDv9IxwpbVJdhUWo H59A== X-Gm-Message-State: AC+VfDwc7EmkyFF+pkvm9Boni25Jr4UhqY2CKo4Fi40sG9ZAtd7oQNJM C1TuLgeejl3Rge9L+LfEU4s2FOqyX1worZT1pfPBlbdTfUoLwjHcqVSi8WFmwdPKoQk2yDrCsaW JZyQLYDG7LZH2m3oiPC2qlNw54isoQMyuRaeAnwxqCR/ajrrQNyU6BRnVPQNVoCn9fOzyjMoksE A10vomNoye4XMIuPOj2lZL4NltUfDCJj6g2FbL04vJfs9LNJb1dhuS X-Google-Smtp-Source: ACHHUZ5DJ3g3XFbGx2n0K1k/05vo2unIySEuvU5XeitLvq5+xF2RVngHQ0561mOHMHZ1uN2QVvRGkg== X-Received: by 2002:a17:907:7e9c:b0:94e:afa6:299f with SMTP id qb28-20020a1709077e9c00b0094eafa6299fmr7916562ejc.22.1683509657674; Sun, 07 May 2023 18:34:17 -0700 (PDT) Received: from [10.137.0.17] (ip-86-49-228-220.bb.vodafone.cz. [86.49.228.220]) by smtp.gmail.com with ESMTPSA id a8-20020a1709066d4800b0094e84314762sm4304200ejt.187.2023.05.07.18.34.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 May 2023 18:34:16 -0700 (PDT) Message-ID: Date: Mon, 8 May 2023 03:34:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Add LZ4 compression in pg_dump Content-Language: en-US To: gkokolatos@pm.me, michael@paquier.xyz Cc: andrew@dunslane.net, exclusion@gmail.com, pryzby@telsasoft.com, shiy.fnst@fujitsu.com, pgsql-hackers@lists.postgresql.org, rachelmheaton@gmail.com References: <7zu6GYFi72jByVk2SEe_nd8r1DHhwA35vSntAE9sAfiMX9Lfk6bwimkwmu7GDgYaEvL27SE4qF1uK4_LHWQM4H-SXOwkMAI-GV8PKGmED_E=@pm.me> <3beb0dd7-c927-3eca-689f-716e255d5b27@enterprisedb.com> <94ae9bca-5ebb-1e68-bb7b-4f32e89fefbe@gmail.com> <71868915-0345-1b7b-f3d6-ec66547c662a@dunslane.net> From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/7/23 17:01, gkokolatos@pm.me wrote: > > > > On Sat, May 6, 2023 at 04:51, Michael Paquier > wrote: >> On Fri, May 05, 2023 at 02:13:28PM +0000, gkokolatos@pm.me wrote: >> > Good point. I thought about it before submitting the patch. I >> > concluded that given the complexity and operations involved in >> > LZ4Stream_read_internal() and the rest of t he pg_dump/pg_restore >> > code, the memset() call will be negligible. However from the >> > readability point of view, the function is a bit cleaner with the >> > memset(). >> > >> > I will not object to any suggestion though, as this is a very >> > trivial point. Please find attached a v2 of the patch following the >> > suggested approach. >> >> Please note that an open item has been added for this stuff. > Thank you but I am not certain I know what that means. Can you please > explain? > It means it was added to the list of items we need to fix before PG16 gets out: https://wiki.postgresql.org/wiki/PostgreSQL_16_Open_Items regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company