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 1hoUJK-0000X6-IE for pgsql-general@arkaria.postgresql.org; Fri, 19 Jul 2019 14:56:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoUJJ-0002Kh-6x for pgsql-general@arkaria.postgresql.org; Fri, 19 Jul 2019 14:56:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoUJI-0002KZ-Qk for pgsql-general@lists.postgresql.org; Fri, 19 Jul 2019 14:56:36 +0000 Received: from aart.rice.edu ([168.7.56.48]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1hoUJF-0005Na-Uj for pgsql-general@lists.postgresql.org; Fri, 19 Jul 2019 14:56:35 +0000 Received: by aart.rice.edu (Postfix, from userid 18612) id 89B43427F28F; Fri, 19 Jul 2019 09:56:33 -0500 (CDT) Date: Fri, 19 Jul 2019 09:56:33 -0500 From: Kenneth Marshall To: Matthew Pounsett Cc: Luca Ferrari , pgsql-general Subject: Re: Rearchitecting for storage Message-ID: <20190719145633.GB28959@aart.rice.edu> References: <20190718173424.GB25488@aart.rice.edu> 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 Hi Matt, On Fri, Jul 19, 2019 at 10:41:31AM -0400, Matthew Pounsett wrote: > On Fri, 19 Jul 2019 at 04:21, Luca Ferrari wrote: > > > > > This could be trivial, but any chance you can partition the table > > and/or archive unused records (at least temporarly)? A 18 TB table > > quite frankly sounds a good candidate to contain records no one is > > interested in the near future. > > > > Partitioning is a possibility. The whole database is historical test > results, stored specifically for doing comparisons over time, so I'm not > sure we can actually archive anything. Expiring old test data is a > discussion we might have to have, eventually. > This is a case were using a compressed filesystem can give you space savings as well as faster read performance due to the compression factor. In my case a sequential scan of something in the compressed tablespace runs almost 3X faster than on the non-compressed one. Regards, Ken