Re: Proposal for CSN based snapshots

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Jeff Davis <pgsql(at)j-davis(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Andres Freund <andres(at)2ndquadrant(dot)com>, Rajeev rastogi <rajeev(dot)rastogi(at)huawei(dot)com>, Markus Wanner <markus(at)bluegap(dot)ch>, Ants Aasma <ants(at)cybertec(dot)at>, Bruce Momjian <bruce(at)momjian(dot)us>, obartunov <obartunov(at)postgrespro(dot)ru>, Teodor Sigaev <teodor(at)postgrespro(dot)ru>
Subject: Re: Proposal for CSN based snapshots
Date: 2016-08-10 17:10:00
Message-ID: f4ffe7d1-60db-7fda-949c-6863e370fa8b@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08/10/2016 07:54 PM, Alexander Korotkov wrote:
> Do I understand right that now async commit right as follows?
> 1) Async transaction confirms commit before flushing WAL.

Yes.

> 2) Other transactions sees effect of async transaction only when its WAL
> flushed.

No. Other transactions also see the effects of the async transaction
before it's flushed.

> 3) In the session which just committed async transaction, effect of this
> transaction is visible immediately (before WAL flushed). Is it true?

Yes. (The same session is not a special case, per previous point. All
sessions see the async transaction as committed, even before it's flushed.)

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2016-08-10 17:26:31 Re: Proposal for CSN based snapshots
Previous Message Stephen Frost 2016-08-10 17:00:41 Re: Slowness of extended protocol