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 1hucwu-0003at-P2 for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2019 13:22:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hucwt-0006tA-Jy for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2019 13:22:51 +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 1hucwt-0006t3-Ae for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2019 13:22:51 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hucwo-0005x1-EV for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2019 13:22:50 +0000 Received: by mail-ot1-x341.google.com with SMTP id b7so35037471otl.11 for ; Mon, 05 Aug 2019 06:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=8npCyIaS/AIKa/HUt2owyUSc75hluUBYefd6TQIzf0k=; b=j0fIM1Vpd82A6fBtVVeO5ucd+aPnFH4IFqdZtIgQmp+lLz4JZgaBMXsJsSW3HcRZIs GxpuKiMhxuBKPqE3Cldl5LP6wS5H9Hgwbzp3X7F6gxgW/nRkvmzEX9QQVAhmBNQbEdre GW8V5UT+tWGNhT300jD4ZR1oIz8InAjloOt3fqQQH2FKGO+7Fi+cpJQxCniVstoAsouD BNaP4wB9+ppg5d3rAl6M2Lq/Qytk7sCd87DN7k5lAUPOofcDzUoBqHWUD9PK6CywNIYq 1HxjpI8ZSxmKBsUEruWZfs3HWEP/M5GT9wQYRnNll3yACJ69RWKcWocCGNCwVagTJ6rE NjLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=8npCyIaS/AIKa/HUt2owyUSc75hluUBYefd6TQIzf0k=; b=ERS4dHY3G2PNlAjekDxGXAFM3BktNXhiUBh3vPF2S2KET49FBICGeJBNq5xHcylaSl 6NhgImEaq4fP4Y8cTeYT1lknnCLRRn9WSeck0XWNjtLTxY6+j7kFCvcKHauxbcAcQBOR nYTlHsFU90sM7eHzv6MXx33VgP800XxxI3xavhJACAulHWRen7W4ikdWR3YZeoQ6NCB1 DhvPIUy0O6Uz5QWWMXyT6znlxR6y2CfLctSjt3GrVQJlZ3bZYJkhkm8imw7J1/0J2p08 xx5uGHRu/SWMbkMhdKdLJtA/JbjNB6QSB76anWZf8PKw4Oiqjb2X+/4ulGCd2A+czSFa L7lw== X-Gm-Message-State: APjAAAUQuJhyJFS5NjXD/in953fQezkLzBqmwp9SyCZlfgLCZj+KlzyK x697RHoErs0mWNqXqRCkyJf4ptlJBWI= X-Google-Smtp-Source: APXvYqwXpOxpnMTvR7OEO1VkxsgBm+IYjnIpJ0hQGBHik+EcKYE7EM8DiRxCVwkgRRrWrLcDjM5hgg== X-Received: by 2002:a9d:6ad7:: with SMTP id m23mr111704524otq.306.1565011364334; Mon, 05 Aug 2019 06:22:44 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id 12sm28739122otn.23.2019.08.05.06.22.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 06:22:43 -0700 (PDT) Subject: Re: Compression In Postgresql 9.6 To: pgsql-general@lists.postgresql.org References: <20190805123120.GB17132@aart.rice.edu> From: Ron Message-ID: Date: Mon, 5 Aug 2019 08:22:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190805123120.GB17132@aart.rice.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/5/19 7:31 AM, Kenneth Marshall wrote: > On Mon, Aug 05, 2019 at 12:00:14PM +0530, Shital A wrote: >> Hello, >> >> Need inputs on below: >> >> We are working on a setting up a new highly transactional (tps 100k) OLTP >> system for payments using blockchain and postgresql 9.6 as DB on Rhel 7.6. >> Postgres version is 9.6 and not latest because of specs of blockchain >> component. >> >> There is a requirement for data compression on DB level. Please provide >> your inputs on how this can be best achieved. >> >> Checked in-build Toast, it compressed the data provided exceed the 2kb >> pagesize? If the data values are small and even if there are billion >> records they wont be compressed, this is what I understood. >> >> Are there any suggestions of compressing older data irrespective of row >> size transparently? >> >> Thanks. > Hi, > > On RHEL/Centos you can use VDO filesystem compression to make an archive > tablespace to use for older data. That will compress everything. Doesn't this imply that either his table is partitioned or he regularly moves records from the main table to the archive table? -- Angular momentum makes the world go 'round.