pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Rajeev rastogi <rajeev.rastogi@huawei.com>
Cc: Ants Aasma <ants@cybertec.at>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Markus Wanner <markus@bluegap.ch>
Subject: Re: Proposal for CSN based snapshots
Date: Thu, 15 May 2014 17:58:04 -0400
Message-ID: <20140515215803.GC7857@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <20140515214100.GA12739@awork2.anarazel.de>
References: <51B6C97B.1070000@bluegap.ch>
	<BF2827DCCE55594C8D7A8F7FFD3AB7713DDBC758@SZXEML508-MBX.china.huawei.com>
	<5370D323.1070606@vmware.com>
	<20140512144112.GB9619@awork2.anarazel.de>
	<5370E267.2020904@vmware.com>
	<20140515183436.GD25053@momjian.us>
	<CA+TgmoYiqga4KWz_1=O8D6ivmTAJfY=-fxO6Nk+D-o3M0M60=Q@mail.gmail.com>
	<20140515200632.GB16014@awork2.anarazel.de>
	<20140515213714.GB7857@eldon.alvh.no-ip.org>
	<20140515214100.GA12739@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund wrote:
> 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 <bruce@momjian.us> 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?

I didn't say it did ...

-- 
Álvaro Herrera                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



view thread (113+ messages)  latest in thread

Message-ID: <20140515215803.GC7857@eldon.alvh.no-ip.org>
Permalink:  ../20140515215803.GC7857@eldon.alvh.no-ip.org/
Also on:    postgresql.org/message-id/20140515215803.GC7857@eldon.alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@2ndquadrant.com, andres@2ndquadrant.com, robertmhaas@gmail.com, bruce@momjian.us, hlinnakangas@vmware.com, rajeev.rastogi@huawei.com, ants@cybertec.at, markus@bluegap.ch
  Subject: Re: Proposal for CSN based snapshots
  In-Reply-To: <20140515215803.GC7857@eldon.alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox