Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TM7J7-0005mm-91 for pgsql-hackers@postgresql.org; Thu, 11 Oct 2012 01:11:25 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TM7J5-0007fB-IC for pgsql-hackers@postgresql.org; Thu, 11 Oct 2012 01:11:24 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1TM7J0-0005mW-OF; Wed, 10 Oct 2012 21:11:18 -0400 Date: Wed, 10 Oct 2012 21:11:18 -0400 From: Bruce Momjian To: Tom Lane Cc: Robert Haas , Tomas Vondra , Thom Brown , pgsql-hackers@postgresql.org Subject: Re: change in LOCK behavior Message-ID: <20121011011118.GF11890@momjian.us> References: <5075D8DF.6050500@fuzzy.cz> <5075DFC2.9090306@fuzzy.cz> <12761.1349910622@sss.pgh.pa.us> <14951.1349916214@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14951.1349916214@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/542 X-Sequence-Number: 214778 On Wed, Oct 10, 2012 at 08:43:34PM -0400, Tom Lane wrote: > > It seems to me that the > > root of the issue here is that people is not that people expect two > > snapshots -- indeed, a number of people strongly supported getting rid > > of that behavior at the time -- but rather that they expect the > > snapshot to be taken after locks are acquired. > > Sure. Maybe we can rejigger things in a way that does that, although > I think the stumbling block is going to be parse-time calls to > user-defined I/O functions for constants --- which might need a > snapshot. It might be possible to redesign things so that all tables > are locked before we do anything that requires a non-SnapshotNow > snapshot, and then take a single "planning/execution" snapshot. But > that is not this patch, and would be a lot more invasive than this > patch, and would certainly not be back-patchable to 9.2. > > I think we have to revert and go back to the drawing board on this. Is reverting going to adversely affect users who are already using the 9.2 behavior? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +