Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aG8mF-0001No-Oj for pgsql-performance@arkaria.postgresql.org; Mon, 04 Jan 2016 17:18:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aG8mF-0008UC-9s for pgsql-performance@arkaria.postgresql.org; Mon, 04 Jan 2016 17:18:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aG8kU-0006AK-RL for pgsql-performance@postgresql.org; Mon, 04 Jan 2016 17:16:50 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aG8kR-0008AV-UO for pgsql-performance@postgresql.org; Mon, 04 Jan 2016 17:16:49 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 3B6203A05C9; Mon, 4 Jan 2016 18:16:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p54BEB791.dip0.t-ipconnect.de [84.190.183.145]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 413663A05C8; Mon, 4 Jan 2016 18:16:41 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 805D910BD13; Mon, 4 Jan 2016 18:16:40 +0100 (CET) Date: Mon, 4 Jan 2016 18:16:40 +0100 From: Andres Freund To: Mark Zealey Cc: pgsql-performance@postgresql.org Subject: Re: Proposal for unlogged tables Message-ID: <20160104171640.GF28025@awork2.anarazel.de> References: <568A429C.2010507@allaroundtheworld.fr> <568A8168.1070900@zioup.com> <568A83F0.7050904@allaroundtheworld.fr> <20160104161234.GE28025@awork2.anarazel.de> <568AA7F6.5050107@allaroundtheworld.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <568AA7F6.5050107@allaroundtheworld.fr> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 2016-01-04 19:12:22 +0200, Mark Zealey wrote: > If there was a command to flush a specific unlogged table to disk it would > work around all these issues no? Perhaps if you marked the table as read > only at the same time it would flush it to disk and ensure no more data > could be written to it eg (ALTER TABLE ... SET READ ONLY on an unlogged > table would flush + not truncate after crash). In our case this would be > great as we want to use these as permanent tables for speed; but after an > initial data dump we don't change the data again so we could just do this at > the end of the import process. It's more complex than that, even unmodified tables need to be processed by vacuum every now and then (xid wraparound handling). It probably possible to work around such things, but it's not a line or ten. Andres -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance