Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxDdi-0005qF-Sc for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jun 2014 11:02:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WxDdi-0002dW-Cz for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jun 2014 11:02:50 +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 1WxDdh-0002dM-Do for pgsql-bugs@postgresql.org; Wed, 18 Jun 2014 11:02:49 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WxDde-0001qx-7y for pgsql-bugs@postgresql.org; Wed, 18 Jun 2014 11:02:48 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id B375F4E8006; Wed, 18 Jun 2014 13:02:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC41C0.dip0.t-ipconnect.de [93.220.65.192]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 6D7C74E8003; Wed, 18 Jun 2014 13:02:41 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id F28371010D8; Wed, 18 Jun 2014 13:02:40 +0200 (CEST) Date: Wed, 18 Jun 2014 13:02:40 +0200 From: Andres Freund To: Pavan Deolasee Cc: "maxim.boguk" , Pg Bugs Subject: Re: BUG #10675: alter database set tablespace and unlogged table Message-ID: <20140618110240.GJ3115@awork2.anarazel.de> References: <20140617032438.2585.42918@wrigleys.postgresql.org> <20140618101045.GG3115@awork2.anarazel.de> 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-06-18 16:15:47 +0530, Pavan Deolasee wrote: > On Wed, Jun 18, 2014 at 3:40 PM, Andres Freund > wrote: > > > > > Won't that significantly regress manually issued CHECKPOINT;s? > > > > > May be if there are large unlogged table(s) which are frequently updated > between manual checkpoints. I don't know how unlogged tables are being > currently used to make that call. I think that's actually one of the major reasons to use unlogged tables. > We could add another flag and use that while taking system checkpoints. Don't really have a better idea. CHECKPOINT_FLUSH_ALL? > 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. 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