pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Alexander Korotkov <a.korotkov@postgrespro.ru>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Greg Stark <stark@mit.edu>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Rajeev rastogi <rajeev.rastogi@huawei.com>
Cc: Markus Wanner <markus@bluegap.ch>
Cc: Ants Aasma <ants@cybertec.at>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: obartunov <obartunov@postgrespro.ru>
Cc: Teodor Sigaev <teodor@postgrespro.ru>
Subject: Re: Proposal for CSN based snapshots
Date: Wed, 10 Aug 2016 20:10:00 +0300
Message-ID: <f4ffe7d1-60db-7fda-949c-6863e370fa8b@iki.fi> (raw)
In-Reply-To: <CAPpHfdufpOpdYCO+mGynFRPN=A4JULW2hYE9YSvyg-28FvJWCw@mail.gmail.com>
References: <51B6C97B.1070000@bluegap.ch>
	<CAM-w4HMG-YeTfWc3r_excej3Kd04q4zDDXR0hxShVbij211ABA@mail.gmail.com>
	<539AD153.9000004@vmware.com>
	<1409043789.2335.330.camel@jeff-desktop>
	<53FC6545.7000501@vmware.com>
	<1409116988.2335.463.camel@jeff-desktop>
	<53FD7D65.9040602@vmware.com>
	<53FD7DCC.5020005@vmware.com>
	<CAPpHfdsCUb4qBUHzfqNsUYALC_LEpHD9qB-ozvS_8esv1edCTw@mail.gmail.com>
	<CANP8+jLAe3Smtq3FF49DMvuxtfoRQcCPQn28GEKuwAb2J41XCA@mail.gmail.com>
	<CA+Tgmob1DmDsvc7iyd0SY5j4SFdesDwoef36bxG1pE_s1JQXOQ@mail.gmail.com>
	<CANP8+jLyhL92eJi7RVX_yvbKjxm9=OBKcmNnodaYmeE+o2i1+Q@mail.gmail.com>
	<CAPpHfdv7BMwGv=OfUg3S-jGVFKqHi79pR_ZK1Wsk-13oZ+cy5g@mail.gmail.com>
	<69041c5a-ec60-3c54-49d0-5df071b27f52@iki.fi>
	<a7e33ad4-cf1e-2e7c-6752-de91302292dc@iki.fi>
	<79213506-4c9c-7e7a-44c6-ae94484c1159@iki.fi>
	<6906.1470840684@sss.pgh.pa.us>
	<8c150c9d-6ba2-69fd-e908-ed2fc2775c05@iki.fi>
	<CAPpHfdufpOpdYCO+mGynFRPN=A4JULW2hYE9YSvyg-28FvJWCw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



-- 
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: <f4ffe7d1-60db-7fda-949c-6863e370fa8b@iki.fi>
Permalink:  ../f4ffe7d1-60db-7fda-949c-6863e370fa8b@iki.fi/
Also on:    postgresql.org/message-id/f4ffe7d1-60db-7fda-949c-6863e370fa8b@iki.fi

 · 

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: hlinnaka@iki.fi, a.korotkov@postgrespro.ru, tgl@sss.pgh.pa.us, simon@2ndquadrant.com, robertmhaas@gmail.com, dilipbalaut@gmail.com, pgsql@j-davis.com, alvherre@2ndquadrant.com, stark@mit.edu, andres@2ndquadrant.com, rajeev.rastogi@huawei.com, markus@bluegap.ch, ants@cybertec.at, bruce@momjian.us, obartunov@postgrespro.ru, teodor@postgrespro.ru
  Subject: Re: Proposal for CSN based snapshots
  In-Reply-To: <f4ffe7d1-60db-7fda-949c-6863e370fa8b@iki.fi>

* 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