Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi7Xk-0000BU-9a for pgsql-performance@arkaria.postgresql.org; Tue, 14 Apr 2015 20:34:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yi7Xj-000459-D0 for pgsql-performance@arkaria.postgresql.org; Tue, 14 Apr 2015 20:34:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yi7Xi-000452-6e for pgsql-performance@postgresql.org; Tue, 14 Apr 2015 20:34:46 +0000 Received: from mail-bn1on0661.outbound.protection.outlook.com ([2a01:111:f400:fc10::661] helo=na01-bn1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi7Xd-0000jW-SV for pgsql-performance@postgresql.org; Tue, 14 Apr 2015 20:34:44 +0000 Authentication-Results: postgresql.org; dkim=none (message not signed) header.d=none; Received: from [192.168.2.12] (108.193.68.187) by BLUPR11MB0676.namprd11.prod.outlook.com (25.163.216.146) with Microsoft SMTP Server (TLS) id 15.1.136.25; Tue, 14 Apr 2015 20:34:35 +0000 Message-ID: <552D79D3.4040801@BlueTreble.com> Date: Tue, 14 Apr 2015 15:34:27 -0500 From: Jim Nasby User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: dgabriel , Subject: Re: unlogged tables References: <005501cca0ad$b9478440$2bd68cc0$@devshock.com> <1428953502160-5845576.post@n5.nabble.com> <1429026970751-5845650.post@n5.nabble.com> In-Reply-To: <1429026970751-5845650.post@n5.nabble.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [108.193.68.187] X-ClientProxiedBy: BN3PR0301CA0021.namprd03.prod.outlook.com (25.160.180.159) To BLUPR11MB0676.namprd11.prod.outlook.com (25.163.216.146) X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR11MB0676; X-Forefront-Antispam-Report: BMV:1; SFV:NSPM; SFS:(10009020)(6049001)(6009001)(24454002)(51704005)(377454003)(479174004)(107886001)(92566002)(23746002)(19580395003)(93886004)(33656002)(4001410100001)(46102003)(83506001)(54356999)(87266999)(65816999)(15975445007)(50986999)(42186005)(76176999)(65956001)(122386002)(87976001)(77096005)(86362001)(36756003)(2950100001)(117156001)(62966003)(47776003)(4001350100001)(77156002)(50466002)(64126003)(66066001)(85282002)(336755003)(18886065003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR11MB0676; H:[192.168.2.12]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5002010)(5005006); SRVR:BLUPR11MB0676; BCL:0; PCL:0; RULEID:; SRVR:BLUPR11MB0676; X-Forefront-PRVS: 054642504A X-OriginatorOrg: bluetreble.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2015 20:34:35.3527 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR11MB0676 X-Pg-Spam-Score: -1.9 (-) 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 4/14/15 10:56 AM, dgabriel wrote: > David G Johnston wrote >> Well, that is half right anyway. UNLOGGED tables obey checkpoints just >> like any other table. The missing feature is an option to leaved restored >> the last checkpoint. Instead, not knowing whether there were changes >> since the last checkpoint, the system truncated the relation. >> >> What use case is there for a behavior that the last checkpoint data is >> left on the relation upon restarting - not knowing whether it was possible >> the other data could have been written subsequent? > > If is possible to restore the table at last checkpoint state that will be > more than enough. I don't care about the changes since last checkpoint, I am > willing to lose those changes. There are use cases where is acceptable to > lose some data, for example in a cache system, it is not a big issue if we > lose some cached data. It is not. Unless you ensure that data is written to WAL (on disk) BEFORE it is written to the data pages, you will probably have corruption after a crash, and have no way to prevent or possibly even detect the corruption. -- Jim Nasby, Data Architect, Blue Treble Consulting Data in Trouble? Get it in Treble! http://BlueTreble.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance