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 1huKKq-0005lN-9M for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2019 17:30:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huKKn-0003Qb-KC for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Aug 2019 17:30:17 +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 1huKKn-0003Gz-6Z for pgsql-hackers@lists.postgresql.org; Sun, 04 Aug 2019 17:30:17 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huKKe-0003UV-Rc for pgsql-hackers@postgresql.org; Sun, 04 Aug 2019 17:30:15 +0000 Received: by mail-wm1-x343.google.com with SMTP id s3so72589731wms.2 for ; Sun, 04 Aug 2019 10:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Nbgvf/l6p+0E0x8oBSA6AGNer6+RV0gDZxlsjtxXr4Q=; b=Kdl/2lQ9clgDryyjv+4yM6ZGw1xZ0DWfJQM+rAkYE2WjjSfjIKdXGnmLlPTLPuAdgF C685gkTfxZNFLqhKUbO5eSsZ9i29fQs6sEJN5msbP/NSOaNijqGLJ+u/h8yvqGBdabiw CyvWjpq+Bly5eEHUE6OTxVAs8cuH2IMjwpZOGyhAcjvKQi2xF64slPj0ueNcZMjbsbPK wPaNcXoqZxpb8t4WGYNVaI1yp/RvdSw6ioIfckScsm2Cmn2b5LOaIXTO+BDMfv7UBXwg R2B6ciNIWm55TBjt8jvUjislxUxK+7HxEiTuF8zkWwoOG9YYfss6Y5dfKcF4assdQdcm V72A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Nbgvf/l6p+0E0x8oBSA6AGNer6+RV0gDZxlsjtxXr4Q=; b=JgPVj0e27g76DsoN5gVYRYeZP+UPMbHYdyQw/HYlTAT6cMLM7Kdxdz1Fosgzk1n1ua LLk0lUf+x7aoNqU/r5YDmSsy0p4kK+aPgbgdRbrlS33gDnBx6tuyYga7XSPdboiO4Cu5 44Bk2RoihBTyGDFqnh2C+beEF0ZlzKZy+6Ww6NzaQlu91dyLyG7HOGS7IG9nfM4MFUJ3 vFwFv78MZrWMAt3gPO/nvU3uk62w5CvTtFbCkpOHQaWMsRbN7OWuGd3hRNZcg6SBsbER MVOMKTUMrhh4HVT4QraYJwpRjz0t4bmWRheIfQOm6sRj1vGi/Fx0Eynwx4UeRSyz5HTc PQng== X-Gm-Message-State: APjAAAWkUEBPQYwkXTpQldCGoR11ONhhTorYEWeeYHRbxxy+r1G88e9r 0+DEMuZNpuMGbXtzic9iYUnJjA== X-Google-Smtp-Source: APXvYqxgfL6KjzS1yhQpj27j9mzkgtgSA55/zArp6BCkYCRgzRAD9nNldIxbV9UJWCnXgM395ID7oQ== X-Received: by 2002:a05:600c:34d:: with SMTP id u13mr14794516wmd.48.1564939806896; Sun, 04 Aug 2019 10:30:06 -0700 (PDT) Received: from localhost (ip-86-49-253-160.net.upcbroadband.cz. [86.49.253.160]) by smtp.gmail.com with ESMTPSA id u2sm9661337wmc.3.2019.08.04.10.30.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 04 Aug 2019 10:30:06 -0700 (PDT) Date: Sun, 4 Aug 2019 19:30:04 +0200 From: Tomas Vondra To: Petr Jelinek Cc: Andres Freund , Andrey Borodin , Konstantin Knizhnik , Michael Paquier , pgsql-hackers , Vladimir Leskov Subject: Re: pglz performance Message-ID: <20190804173004.ovg6tsf336teyy57@development> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Aug 04, 2019 at 05:53:26PM +0200, Petr Jelinek wrote: > > ... > >> >>4) I did a simple test with physical replication, with lz4 enabled on >>both sides (well, can't build without lz4 anyway, per previous point). >>It immediately failed like this: >> >>FATAL:  failed to restore block image >>CONTEXT:  WAL redo at 0/5000A40 for Btree/INSERT_LEAF: off 138 >>LOG:  startup process (PID 15937) exited with exit code 1 >> >>This is a simple UPDATE on a trivial table: >> >>create table t (a int primary key); >>insert into t select i from generate_series(1,1000) s(i); >>update t set a = a - 100000 where random () < 0.1; >> >>with some checkpoints to force FPW (and wal_compression=on, of course). >> >>I haven't tried `make check-world` but I suppose some of the TAP tests >>should fail because of this. And if not, we need to improve coverage. >> > >FWIW I did run check-world without problems, will have to look into this. > Not sure if we bother to set wal_compression=on for check-world (I don't think we do, but I may be missing something), so maybe check-world does not really test wal compression. IMO the issue is that RestoreBlockImage() still calls pglz_decompress directly, instead of going through pg_decompress(). regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services