Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxGBZ-0002gt-1d for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jun 2014 13:45:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxGBX-0006GH-V2 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jun 2014 13:45:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxGBW-0006GA-V8 for pgsql-bugs@postgresql.org; Wed, 18 Jun 2014 13:45:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WxGBT-00053h-Tw for pgsql-bugs@postgresql.org; Wed, 18 Jun 2014 13:45:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s5IDjkjt011622; Wed, 18 Jun 2014 09:45:46 -0400 From: Tom Lane To: Andres Freund cc: Pavan Deolasee , "maxim.boguk" , Pg Bugs Subject: Re: BUG #10675: alter database set tablespace and unlogged table In-reply-to: <20140618110240.GJ3115@awork2.anarazel.de> References: <20140617032438.2585.42918@wrigleys.postgresql.org> <20140618101045.GG3115@awork2.anarazel.de> <20140618110240.GJ3115@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 18 Jun 2014 13:02:40 +0200" Date: Wed, 18 Jun 2014 09:45:46 -0400 Message-ID: <11621.1403099146@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2014-06-18 16:15:47 +0530, Pavan Deolasee wrote: >> But I wonder if not flushing dirty buffers >> of unlogged tables at a checkpoint is a bad idea anyways. User might expect >> that the unlogged tables to sustain server crash or unclean shutdown if >> there had been no writes after successful manual checkpoint(s). > They'll get reset at unlcean startup anyway. Independent of having been > touched or not. I'm with Pavan on this one: it's *not* a good thing that manually issued checkpoints skip unlogged tables. That's surprising, possibly dangerous, and no case whatsoever has been made that anyone sees it as an important performance benefit. I trust that a shutdown checkpoint, at least, would write such pages? If so, I'd expect that a manual checkpoint would do it too. Maybe I'm checkpointing because I want to be sure that the shutdown will be quick so I can do a minor release update with minimal downtime. I think we should just change this. -1 for new flags and more complication. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs