Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xece3-0006Qz-LM for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Oct 2014 04:26:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xece3-0007Gr-4A for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Oct 2014 04:26:35 +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 1Xece1-0007EU-EV for pgsql-bugs@postgresql.org; Thu, 16 Oct 2014 04:26:33 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xecdx-0002VG-J4 for pgsql-bugs@postgresql.org; Thu, 16 Oct 2014 04:26:32 +0000 Received: from intern.anarazel.de (092-111-191-154.static.chello.nl [92.111.191.154]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id A6B13E0969; Thu, 16 Oct 2014 06:26:27 +0200 (CEST) Date: Thu, 16 Oct 2014 06:26:25 +0200 From: Andres Freund To: Simon Riggs Cc: Tom Lane , Pavan Deolasee , "maxim.boguk" , Pg Bugs Subject: Re: BUG #10675: alter database set tablespace and unlogged table Message-ID: <20141016042625.GJ7242@alap3.anarazel.de> References: <20140617032438.2585.42918@wrigleys.postgresql.org> <20140618101045.GG3115@awork2.anarazel.de> <20140618110240.GJ3115@awork2.anarazel.de> <11621.1403099146@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 On 2014-10-16 04:08:50 +0100, Simon Riggs wrote: > On 18 June 2014 14:45, Tom Lane wrote: > > 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 manual checkpoints should flush everything. > > This is a valid use case. > > What other use case is there for a manual checkpoint? There's people using frequent manual checkpoints to keep performance predictable. Unfortunately that actually can improve jitter quite measurably. If we want to change this, fine, but we shouldn't sneak it into the back branches, together with a correctness fix Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs