Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huOql-0007By-7W for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2019 22:19:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huOqj-0004Sa-N1 for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2019 22:19:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huOqj-0004ST-EK for pgsql-hackers@lists.postgresql.org; Sun, 04 Aug 2019 22:19:33 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huOqg-0006Cz-T4 for pgsql-hackers@postgresql.org; Sun, 04 Aug 2019 22:19:33 +0000 Received: by mail-wr1-x441.google.com with SMTP id y4so82472088wrm.2 for ; Sun, 04 Aug 2019 15:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hpKbqchFRwVIOconqqtkAimgh9gwXS5/YuP+rLIvYxw=; b=iVHt1/OQ71mIJ1qW+7Om0JFVc2gsKF5NwgKZDsgEO6z0sIkwLNGd0PQZAXJZRYdGYW yY4EwgdbqGD3V70VLo4SXLDAkwC2uk4SgW7N7ys0m+ASZJXg0bU/AiQGnJuNJbsvoawN drQd8xNxX5XegfUpcmFSMB7c4sEfnv7GWRaHMbDMrek498lQr05X3imGIw76r+3z4df/ pgv4Vmb8xw/T+jOyV9eQksdRzD411NRQvM3ENfZYmXLrUiw6K5aA5c3R1+0Y73Dm6OAj lu9sfK2hvT/he3KmiurmpzcKsEg0vBc8xaAWFFc/MeC9yjdXNlW6OM+oThD6RKx482s3 KQ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hpKbqchFRwVIOconqqtkAimgh9gwXS5/YuP+rLIvYxw=; b=Z4zOzLspcdfaTG40yJXmmDuVBNPCBnLcwkKnr8VIRhV8T/BSgmF/XjyaEXmYHzDEiy CcwSKCe3ZL4eFDdS2/rSr3tbmRLXEGIK7MDx7i/luyWMqABuDUHUs08srhJ54d2yyopH lSFQ7HcnJEipVGWqZKh1A35qm+3AEZzH23UUdfqlOn1V06clanUy7gT3OfsEG2KLYoth 3srBz8KyKxI24EuPFC7LYqVbeGzNyolThbtkzhSjKOV9AW+KQD7ptfSbjI22248HjdFG wRbm3qHkVsKSVk+6HRIwzMPeAI0zCg3aTjZfsvyRdl2mHjRI3r3IkiYZKi1htjNeQzU4 zjtA== X-Gm-Message-State: APjAAAWY2bxnVDySaRhyLyfrlkC5vb9wG0o1/PvtC/gEQGQIR7LOSVAc O1gMoOGvdRvSMNfjDOvSLwLzIg== X-Google-Smtp-Source: APXvYqzm0cmhHZLqItfbNhSzuqPhYlzqH2XE2kjGpG1INaRuPPLJN4UTpQlFVOqgoe2He+NsDY48sw== X-Received: by 2002:a5d:42c5:: with SMTP id t5mr115435505wrr.5.1564957169817; Sun, 04 Aug 2019 15:19:29 -0700 (PDT) Received: from ?IPv6:2a02:8308:13b:9400:242f:19ac:a5a4:6296? ([2a02:8308:13b:9400:242f:19ac:a5a4:6296]) by smtp.gmail.com with ESMTPSA id f17sm78171875wmf.27.2019.08.04.15.19.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Aug 2019 15:19:29 -0700 (PDT) Subject: Re: pglz performance To: Andres Freund Cc: Tomas Vondra , Andrey Borodin , Konstantin Knizhnik , Michael Paquier , pgsql-hackers , Vladimir Leskov References: <20190802163948.i6mjypdgujeorrbi@alap3.anarazel.de> <20190802170039.o4pabnzm4xy3z7uj@development> <20190802171258.nob5zo2vu7siqo2b@alap3.anarazel.de> <20190802175239.5ds6rhdso6hwy4vk@development> <20190802182003.u477q6itwudieqxf@alap3.anarazel.de> <20190802194859.qxzxq2achzottkup@development> <20190804115237.nliwf6hhaqfd62ps@development> <20190804221533.3lpbs5krfnjisflj@alap3.anarazel.de> From: Petr Jelinek Message-ID: Date: Mon, 5 Aug 2019 00:19:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190804221533.3lpbs5krfnjisflj@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 05/08/2019 00:15, Andres Freund wrote: > Hi, > > On 2019-08-04 17:53:26 +0200, Petr Jelinek wrote: >>> 5) I wonder why compression_algorithm is defined as PGC_SIGHUP. Why not >>> to allow users to set it per session? I suppose we might have a separate >>> option for WAL compression_algorithm. >>> >> >> Yeah I was thinking we might want to change wal_compression to enum as well. >> Although that complicates the code quite a bit (the caller has to decide >> algorithm instead compression system doing it). > > Isn't that basically required anyway? The WAL record will need to carry > information about the type of compression used, independent of > PGC_SIGHUP/PGC_USERSET, unless you want to make it an initdb option or > something super heavyweight like that. > It carries that information inside the compressed value, like I said in the other reply, that's why the extra byte. -- Petr Jelinek 2ndQuadrant - PostgreSQL Solutions for the Enterprise https://www.2ndQuadrant.com/