Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VgFfq-00006c-RV for pgsql-docs@arkaria.postgresql.org; Tue, 12 Nov 2013 15:14:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VgFfq-0008Fz-5q for pgsql-docs@arkaria.postgresql.org; Tue, 12 Nov 2013 15:14:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VgFfn-0008CE-RL for pgsql-docs@postgresql.org; Tue, 12 Nov 2013 15:14:35 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VgFfg-0004Qx-SC for pgsql-docs@postgresql.org; Tue, 12 Nov 2013 15:14:35 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1VgFff-00016r-TO; Tue, 12 Nov 2013 10:14:27 -0500 Date: Tue, 12 Nov 2013 10:14:27 -0500 From: Bruce Momjian To: David Johnston Cc: pgsql-docs@postgresql.org Subject: Re: MVCC snapshot timing Message-ID: <20131112151427.GH15562@momjian.us> References: <20131111175737.GA15562@momjian.us> <13024.1384202385@sss.pgh.pa.us> <20131111205833.GC15562@momjian.us> <20331.1384221575@sss.pgh.pa.us> <20131112021954.GD15562@momjian.us> <21328.1384223235@sss.pgh.pa.us> <20131112024609.GG15562@momjian.us> <1384226759124-5777852.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1384226759124-5777852.post@n5.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On Mon, Nov 11, 2013 at 07:25:59PM -0800, David Johnston wrote: > This reads badly to my ears: > > > > This means that while querying a database each SQL statement sees a > > snapshot of data (a database version) as it was some time ago, regardless > > of the current state of the underlying data. > > How about something closer to: > > > > This means for each SQL statement the user can specify a relative > > point-in-time snapshot (database version) of the database against which to > > query. These snapshot options are 1) the most recent committed data > > currently available database-wide - including implicit commits (see note), > > or 2) the committed data as-of the beginning of the current transaction - > > including any changes made in the same. > > > > Note: an implicit commit occurs only within a multi-statement transaction. > > For the purpose of determining if data has been committed any prior > > statements in the same transaction are deemed to have been committed when > > viewed by later statements. > > I know this is an introduction paragraph so the broad concept is being > focused on rather than how such a user would in fact make this choice. > > I don't know that the term "implicit commit" is used elsewhere, likely not, > but in effect that is what a statement in a transaction is seeing with > respect to prior statements in the same transaction. Naming this behavior > in the introduction would allow for someone less verbose descriptions to be > used in detail sections. > > The above could be better integrated into the intro but I wanted to get > opinions on the approach first. We just want to get across the MVCC concept in the intro --- we cover the snapshots later in the document. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs