Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfvk7-0003zY-JM for pgsql-docs@arkaria.postgresql.org; Mon, 11 Nov 2013 17:57:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vfvk6-0001J4-Uj for pgsql-docs@arkaria.postgresql.org; Mon, 11 Nov 2013 17:57:42 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfvk5-0001Iv-V7 for pgsql-docs@postgresql.org; Mon, 11 Nov 2013 17:57:42 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfvk2-0000xC-Nx for pgsql-docs@postgresql.org; Mon, 11 Nov 2013 17:57:40 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Vfvk2-0004G4-04 for pgsql-docs@postgresql.org; Mon, 11 Nov 2013 12:57:38 -0500 Date: Mon, 11 Nov 2013 12:57:37 -0500 From: Bruce Momjian To: PostgreSQL-documentation Subject: MVCC snapshot timing Message-ID: <20131111175737.GA15562@momjian.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: 0.8 (/) 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 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I received a private email report that our introductory MVCC documentation is unclear about when a snapshot is taken. I have adjusted the wording in the attached patch to be less precise about snapshot timing. Snapshot timing is controlled by the session isolation level, which I don't think we want to cover in this introductory paragraph. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --EVF5PPMfhYS0aIcm Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="mvcc.diff" diff --git a/doc/src/sgml/mvcc.sgml b/doc/src/sgml/mvcc.sgml new file mode 100644 index cefd323..b75519f *** a/doc/src/sgml/mvcc.sgml --- b/doc/src/sgml/mvcc.sgml *************** *** 41,52 **** for developers to manage concurrent access to data. Internally, data consistency is maintained by using a multiversion model (Multiversion Concurrency Control, MVCC). ! This means that while querying a database each transaction sees a snapshot of data (a database version) as it was some time ago, regardless of the current state of the underlying data. ! This protects the transaction from viewing inconsistent data that ! could be caused by (other) concurrent transaction updates on the same data rows, providing transaction isolation for each database session. MVCC, by eschewing the locking methodologies of traditional database systems, --- 41,52 ---- for developers to manage concurrent access to data. Internally, data consistency is maintained by using a multiversion model (Multiversion Concurrency Control, MVCC). ! This means that while querying a database each session sees a snapshot of data (a database version) as it was some time ago, regardless of the current state of the underlying data. ! This prevents sessions from viewing inconsistent data produced ! by concurrent transactions performing updates on the same data rows, providing transaction isolation for each database session. MVCC, by eschewing the locking methodologies of traditional database systems, --EVF5PPMfhYS0aIcm Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --EVF5PPMfhYS0aIcm--