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 1huc9M-0001lC-SY for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2019 12:31:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huc9J-0003sy-Ir for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2019 12:31:37 +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 1huc9J-0003rg-9H for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2019 12:31:37 +0000 Received: from aart.rice.edu ([168.7.56.48]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huc95-0005SU-AF for pgsql-general@postgresql.org; Mon, 05 Aug 2019 12:31:34 +0000 Received: by aart.rice.edu (Postfix, from userid 18612) id 04E64427F281; Mon, 5 Aug 2019 07:31:20 -0500 (CDT) Date: Mon, 5 Aug 2019 07:31:20 -0500 From: Kenneth Marshall To: Shital A Cc: pgsql-general@postgresql.org Subject: Re: Compression In Postgresql 9.6 Message-ID: <20190805123120.GB17132@aart.rice.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. Regards, Ken