Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ57s-0005mq-O5 for pgsql-performance@arkaria.postgresql.org; Wed, 10 Jan 2018 01:24:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ57r-00043a-Rs for pgsql-performance@arkaria.postgresql.org; Wed, 10 Jan 2018 01:24:19 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eZ57r-00043A-Ic for pgsql-performance@lists.postgresql.org; Wed, 10 Jan 2018 01:24:19 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eZ57o-00024H-SI for pgsql-performance@postgresql.org; Wed, 10 Jan 2018 01:24:19 +0000 Received: by mail-pl0-x244.google.com with SMTP id s3so6292963plp.4 for ; Tue, 09 Jan 2018 17:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fUWmk8/FRJKiUmJTZzISe9OvtyqA1OWNRHwqDqASZsw=; b=n3OGwpS/dob8vXo7rwyuXV/R8O8RIrX40Ifdt/CxpoexZL+WSchOydERTlSYVaRGuS U2r6TwuYL3UOr/sQCDhvAu78ptheQL/f8qsjMIoktCXi7kkqJiVypOQA4vUznuoFUvjs 7IqNF0EoBXjdJxnds8nWtYF5e6dbyECLlK7TfoQNbTQX27y1YMlDoNaUxfj+u9ZPc6UX Hb7mmyH0zZe0gPHzzjZHCavi4sL/HZI2biZLlMvYA78MplWrwpjY8FWTXiidAXR8Tl6a hEZS0ymJ9rmfPnkurdA+AtoR5mNDmoj3URIhqIqm1+lEl5P50mo7Y1hsLJnxBQZ92oVA oTeQ== 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:in-reply-to; bh=fUWmk8/FRJKiUmJTZzISe9OvtyqA1OWNRHwqDqASZsw=; b=avTcLtZ6LurrqPgFcsglLNB4hOnsNEHm2G7o1L7vYrbClrP5AoOH0VoXobfWjNpj74 w/mdx5T8ImmX8FZ0kOrLMMbO0gaQTN7B/pM1SHL5DdGw9lWn9WvZ50lV765AJctsJZGy vpeCDsoBGsSveSX9Es9dw6AzfF7h/f6Mrixzs2KL156NyuFXFiTM3cMskPt2/qmJigLE 8KLPBrB/Mc9tzFvZmW7DefMThPBuEPQGb4KBq7MMrd+v7hnPGc8r3naVGNaacD9IOWHL HMNbP7r/E3IiX6Gaqe1qBqAJa+ggu+GdauJYai0ZZD+RIrms574NpFBtdTTqLNoQRZKh jXzQ== X-Gm-Message-State: AKGB3mJrWaF7TmavBH6aSJ8RCO22aEZ+yeVv8YvJSaDVubKHsfim0vH9 byU56NrJmadoVovVn15fRMo= X-Google-Smtp-Source: ACJfBotrpP5DqFNdwZwXE3jzSyDyFDWFn/gBzGNQ1PXosn1QXfnBPVUE1ccVzvTHZ9bujSJ9rn2Z6g== X-Received: by 10.159.198.73 with SMTP id y9mr17644041plt.385.1515547454909; Tue, 09 Jan 2018 17:24:14 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id s5sm26472656pgp.91.2018.01.09.17.24.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jan 2018 17:24:13 -0800 (PST) Date: Wed, 10 Jan 2018 10:24:10 +0900 From: Michael Paquier To: Claudio Freire Cc: Rambabu V , postgres performance list Subject: Re: Need Help on wal_compression Message-ID: <20180110012410.GD336@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IDYEmSnFhs3mNXr+" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --IDYEmSnFhs3mNXr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 09, 2018 at 01:53:14PM -0300, Claudio Freire wrote: > That shows 50% of that are full page writes. This is with compression > enabled. WAL compression will only help FPW, so if you don't have a large > volume of FPW, or they don't compress well, you won't benefit much. This highly depends on the data types used as well. You won't get much compressibility with things like UUIDs for example. When we worked on the patch, I recall that FDW compression saved 25% for a relation with a one-column integer, and only 12~15% when using UUIDs. -- Michael --IDYEmSnFhs3mNXr+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpVazoACgkQnvQgOdby QH2tmw/8CeDtUaNZzzWMlZOiTkBSFbUnskaR+wtUrM3iyZfY4g2gzinPIhyhY6+d WPEzkfJH61aA/7ounymf26CiXogQrtRBUijrxjf5eAiOXRCqsGFdDis3F9u1AMnM ckxLqAl5Mvlns0DGimczcmbeYRDHXcQgpJJEYbPxhHESJYl2Kx/LbT/58/UTeRL8 KpMiBbGA3kOhesgBoMIGDt3U5x5WKqmwBQKHBvfW0KrYn5CEWcMfk8D2eW+gzymu sPHnEWrjwzLNhMbIRJh1NezkyrdXcPdae6RKvJeuPyBk4Q/t5UB6S+CBB8jDY7+B j7MdytViI7JQo2srkqszfVflRyy0MNtjtAYnoKvRe6Jw13M61lGsR/S2CrKaIjll 3bvewDZjDFoJAXNZ+CQ9UbPdqa4zpzxchZsPRthulOKd2bPc0bJFzovV1A5/poD2 MHWRvoGwtwdVntVtcwGzAcDxhxg11skUTsh88Qxr+nyy/Uj3+4198dmlvQYpEOqg hb9zyaqhDLzkIeJ8CBR1fazmlfqhCchS4KMlV0uxW3+Xh1KPimI4r1q/7PRUg6KM 3WhefV8tzsU+QcsIkovTSiJeK87qO8JvInVolK+TZFPDnp88J/pyOT+8KBcOBtRd JVdFpSoIxTfOyfgR8AlhaVZFOYqS0TsP29Db+mLfQfGuncMPNoQ= =ik97 -----END PGP SIGNATURE----- --IDYEmSnFhs3mNXr+--