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 1huXA0-0007Ta-SO for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2019 07:12:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1huX9z-0003zg-JU for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2019 07:11:59 +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 1huX9z-0003yS-7U for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2019 07:11:59 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1huX9x-0002YR-Fz for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2019 07:11:58 +0000 Received: by mail-ot1-x329.google.com with SMTP id x21so18761652otq.12 for ; Mon, 05 Aug 2019 00:11:56 -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=SQqwjAtcOuENkue5vjBBGBASLVkJhIA6I55f4gmzixU=; b=NJI8BmuPr3IAfeA10oklLr2w5V5WwHLgSEyNgbyRUho1Dyly+C8yP2Nibs1qum1V7e 0ARk6LQVAqZdd7QEWUJCFRPYhBADPvGVac9rDX72Hz4V9eNrABBPLL0Z5vW42U+JURqN e7Hwo8IBlhJ33DbVuxy2GF8iwjQAbDYeW/7Bq3YypGYqcb5kXUypNXx14JpnkaraNfYq GN4q3voiUa/nNOJmUnGzsyD2XIRxmC/7nBPvNn6K2P0/8VDsbtIS1gIWz5BKDj9SKz2Y 0BVRqKx4zJ7++qwDtUPDxlssn3awCnBIJix158V1Oo2REZgffDVmPvAVtiSf8M+GpJuu Bmzg== 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=SQqwjAtcOuENkue5vjBBGBASLVkJhIA6I55f4gmzixU=; b=sTKTstsKmbiLfajy7SaJQLTPSOpc7Ut9DR3biPadAdS/eoDIkvzcjGJBRLAJBd2723 uWl9v3qw9wIF7rJ/ohLAarPBBJcNOCwPQdgXkqp+v5SLbS72Fk7Afti5fCoR6Srokw2i qnvyY/Vdg/eJr65IpG64aQv1DS3YSaa8cBY7O2MiivqXNcbCPaqnedtGJ43oDlTFWovv Ugd1lTrziki02vbzcK60Weqdn+cNC7rY8xuO2H1cwR/XJ1APvvkOWfRMxwz6X0egGcMr V/I6LboUPE8UFLLxG/J7Lpki+fyyPCmadXeYqcckYl1UrqVxwTQty9SYeH+xO+I0KfE4 Jpqw== X-Gm-Message-State: APjAAAXjHlPoXA4Fsv3omFL9HRPhaLe093Yl4kospnfzCqZL7PbTaPQd f6HeAr94V3L8FA3XUAZQ385aDiFUHYA= X-Google-Smtp-Source: APXvYqxFd49hzGxYbbl8s/gZgDJ8GC/MHXwZZVFHAGKBsKUREyVYDeCoMo+iH3037SELCUxZJoZ5sA== X-Received: by 2002:a05:6830:2098:: with SMTP id y24mr67090453otq.173.1564989115087; Mon, 05 Aug 2019 00:11:55 -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 i11sm28473779oia.9.2019.08.05.00.11.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 00:11:54 -0700 (PDT) Subject: Re: Compression In Postgresql 9.6 To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <82708249-ab53-cca8-1d1d-3ca45fa6dde5@gmail.com> Date: Mon, 5 Aug 2019 02:11:53 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/5/19 1:30 AM, 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. Column-level compression?  Because some data just doesn't compress well. > > 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? Are your tables partitioned? -- Angular momentum makes the world go 'round.