Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl3PA-00009v-5C for pgsql-hackers@arkaria.postgresql.org; Thu, 15 May 2014 21:41:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wl3P9-0006Nv-Kf for pgsql-hackers@arkaria.postgresql.org; Thu, 15 May 2014 21:41:31 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl3P8-0006Nm-94 for pgsql-hackers@postgresql.org; Thu, 15 May 2014 21:41:30 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wl3P4-0001Mu-JM for pgsql-hackers@postgresql.org; Thu, 15 May 2014 21:41:29 +0000 Received: from anarazel.de (p5DDC5E8D.dip0.t-ipconnect.de [93.220.94.141]) by mrelayeu.kundenserver.de (node=mreue007) with ESMTP (Nemesis) id 0MB6Ce-1Wb7EG470e-009wo8; Thu, 15 May 2014 23:41:01 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 3B4C210216D; Thu, 15 May 2014 23:41:00 +0200 (CEST) Date: Thu, 15 May 2014 23:41:00 +0200 From: Andres Freund To: Alvaro Herrera Cc: Robert Haas , Bruce Momjian , Heikki Linnakangas , Rajeev rastogi , Ants Aasma , PostgreSQL-development , Markus Wanner Subject: Re: Proposal for CSN based snapshots Message-ID: <20140515214100.GA12739@awork2.anarazel.de> References: <51B6C97B.1070000@bluegap.ch> <5370D323.1070606@vmware.com> <20140512144112.GB9619@awork2.anarazel.de> <5370E267.2020904@vmware.com> <20140515183436.GD25053@momjian.us> <20140515200632.GB16014@awork2.anarazel.de> <20140515213714.GB7857@eldon.alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140515213714.GB7857@eldon.alvh.no-ip.org> X-Provags-ID: V02:K0:xaXuuHqIsXEP4bY0OJEqHJCZcu/IHhoXFbYxN4aMpvZ TPN+y6B/exZrluig+hGnjjKmJSXU21W4WPaIwX/YImTanhFkUg dLpMy+C8go4bmxChfJghYKVpXn5SLxl0Vlcbg8i+tIZMsQcYBb v6BQLaSJXGm8wSzOeBOJcryA7k/5LOsPCEoCE2PwDwM6BlP3lK 9W9agkBasSturvkVjBv0lmf2NVvZHBQonByWGtnXnVg6e2x+Pj CnSkba2ah/5ehrdsiGBuaSZCXTBM2xq4zbq4C3zjc/2ZNJa9Sw Y279MMXKbphDHaSvuec1dmVEDdsBeFealAYMGHrZ1uxb0Se3/e 9S9sRde3/fxcgIxzRwVrvKa33wmm/ciKD6DqV+Nrz X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2014-05-15 17:37:14 -0400, Alvaro Herrera wrote: > Andres Freund wrote: > > On 2014-05-15 15:40:06 -0400, Robert Haas wrote: > > > On Thu, May 15, 2014 at 2:34 PM, Bruce Momjian wrote: > > > > If the larger clog size is a show-stopper (and I'm not sure I have an > > > intelligent opinion on that just yet), one way to get around the > > > problem would be to summarize CLOG entries after-the-fact. Once an > > > XID precedes the xmin of every snapshot, we don't need to know the > > > commit LSN any more. So we could read the old pg_clog files and write > > > new summary files. Since we don't need to care about subcommitted > > > transactions either, we could get by with just 1 bit per transaction, > > > 1 = committed, 0 = aborted. Once we've written and fsync'd the > > > summary files, we could throw away the original files. That might > > > leave us with a smaller pg_clog than what we have today. > > > > I think the easiest way for now would be to have pg_clog with the same > > format as today and a rangewise much smaller pg_csn storing the lsns > > that are needed. That'll leave us with pg_upgrade'ability without > > needing to rewrite pg_clog during the upgrade. > > Err, we're proposing a patch to add timestamps to each commit, > http://www.postgresql.org/message-id/20131022221600.GE4987@eldon.alvh.no-ip.org > which does so in precisely this way. I am not sure where my statements above conflict with committs? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers