Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2Mkq-00072O-Ns for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jul 2014 15:47:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2Mkp-00078z-1K for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jul 2014 15:47:27 +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 1X2MkZ-0006kI-7x for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 15:47:11 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2MkO-0008Eb-By for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 15:47:06 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id C7B686E0002; Wed, 2 Jul 2014 17:46:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC4445.dip0.t-ipconnect.de [93.220.68.69]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id B165B6E0001; Wed, 2 Jul 2014 17:46:56 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 4BD9A1004C1; Wed, 2 Jul 2014 17:46:56 +0200 (CEST) Date: Wed, 2 Jul 2014 17:46:56 +0200 From: Andres Freund To: Tom Lane Cc: Pavan Deolasee , "maxim.boguk" , Pg Bugs Subject: Re: BUG #10675: alter database set tablespace and unlogged table Message-ID: <20140702154656.GA25909@awork2.anarazel.de> References: <20140618101045.GG3115@awork2.anarazel.de> <20140618110240.GJ3115@awork2.anarazel.de> <11621.1403099146@sss.pgh.pa.us> <20140618141949.GC3968@awork2.anarazel.de> <20140702120945.GN21169@awork2.anarazel.de> <4065.1404315531@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4065.1404315531@sss.pgh.pa.us> 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-07-02 11:38:51 -0400, Tom Lane wrote: > Andres Freund writes: > > I think one reason for the separate flag is that the checkpoint > > performed by pg_start_backup/pg_basebackup shouldn't just become more > > expensive because unlogged tables are needlessly flushed to disk. After > > all, unlogged tables are used because normal tables have a too high > > overhead in that scenario. > > AFAIK, the "overhead" that unlogged tables are trying to avoid is WAL > I/O. Nobody has argued (until this thread) that we are worried about > whether checkpoints write them. I don't think that's true. In production scenarios checkpoint IO is one of the two top problems I see (the other being crazy amount of WAL due to FPIs because of too short checkpoints). And unlogged tables have explicitly been excluded from checkpoints, so it's not like nobody has thought about it. I seem to recall lengthy discussions even. Yep the discussion is around http://archives.postgresql.org/message-id/AANLkTimxC%2BG9M9_s0dXa_huoAeZpkCmoWCo5S-7DsLi%3D%40mail.gmail.com 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