Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKJes-0008WJ-4S for pgsql-general@arkaria.postgresql.org; Wed, 16 Feb 2022 12:43:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nKJer-0006DT-2i for pgsql-general@arkaria.postgresql.org; Wed, 16 Feb 2022 12:43:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKJeq-0006DK-OO for pgsql-general@lists.postgresql.org; Wed, 16 Feb 2022 12:43:44 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nKJeo-0006xY-Cs for pgsql-general@lists.postgresql.org; Wed, 16 Feb 2022 12:43:43 +0000 Received: by mail-ej1-x636.google.com with SMTP id d10so4302067eje.10 for ; Wed, 16 Feb 2022 04:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=GVt7KlEO49gkuua3kwwsBxpwUW420I73JS1y1lnJsGc=; b=WAE832w2Y4lhPtm8LFy2xsybnmn3WdxtpNsWkVR26xB76sr7LlKaH9hwxfBcK9sMuY eA9breqagCosPHS3h0Pyybl0DekGGfX7pU+zzQuoi2kCz7BZcnhz/2RIq/ZpvIswnsFK HBLihygE6h1XacF3K1aHcRpWVkW3EPmmqgK2fvBHxrqOYM5l6nZu3ErGRM2vcFAYIcc4 vMLPolUah9w4UrPgGG52opNsN/u96oIbEdy+O0WNpDqXqg2c+uA8hSZVZer1kYu7Yn6Q U4q5BQ7bRc7KDaqN3kK2aBdgyv9IddPTkwgo2us5/mCawkXhc6TDkq81aOnoEKhweylP flxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=GVt7KlEO49gkuua3kwwsBxpwUW420I73JS1y1lnJsGc=; b=NR/W1kMiXHzzeVzvHhYYijwiJB2jIl0QJhvgRI6IHcFM8h4kgLEXQjvZ0JUh5RtWui kH+IV9U+v/icvEJgtHXaHCH0cqguQuAauiTrjBJkKqYmCks2ujnCFjM/q0Rzx/GsBCUo A+2M7WNYLMYZMYlxy6GBmXfNK/vPObskHmF8DHgMMo9trYscz7zno2Lk0MSNi4HPFuDF zLxxsxXnZp/WJruZBXfB6ZXRXrG70wnGyDn91TZ0ChIYQxHWYtUQeQLo6EV7lBcJNZtc TcHG6LllYMerGLMTA1nvSu8gJ2NQhXF7UOIimbQVQ6Yczq3/yw3BCt3cnUXUbfhcheGv GapA== X-Gm-Message-State: AOAM5302MhaqPe4vd50kxpDgm1ec14lSziPHaEa+w9En5wTZLV3GwoeC S64QoGULX5pN3OXDmIYCK214Uw== X-Google-Smtp-Source: ABdhPJwn2m4/kM9o0H9safhAMUCBamsZzfAJDvRYFYXHNyshmi+qupVR6O6jp9Pv+Jn5bF8aS1w76g== X-Received: by 2002:a17:906:27db:b0:6cb:1f45:40fd with SMTP id k27-20020a17090627db00b006cb1f4540fdmr2063457ejc.605.1645015420839; Wed, 16 Feb 2022 04:43:40 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:9ca6:1576:e5da:f09:6e90]) by smtp.gmail.com with ESMTPSA id er13sm1480819edb.21.2022.02.16.04.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 04:43:40 -0800 (PST) Message-ID: <25630d5d4402b0eecf904c8f38be1d6e66d6f744.camel@cybertec.at> Subject: Re: Table/Parition Level Compression in Postgres From: Laurenz Albe To: Jagmohan Kaintura , "pgsql-generallists.postgresql.org" Date: Wed, 16 Feb 2022 13:43:39 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-02-16 at 18:10 +0530, Jagmohan Kaintura wrote: > We have a requirement where we wanted to keep the partitions holding the old data into compressed > format and the partition having the current data in the non-compressed format. > While looking over the compression aspects in Pg 14 we have some compression introduced for the column level with some compression methods. > Is there any other way using which we can compress the partitions data which can be even  moved to different tablespace.  > We have a implementation where we wanted to keep the 80% old data in the compressed format as we have millions of processed CDRs. How about a second tablespace on a file system that compresses files? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com