Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V03EJ-0006ZH-26 for pgsql-odbc@arkaria.postgresql.org; Fri, 19 Jul 2013 05:27:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V03EI-0001PU-Gi for pgsql-odbc@arkaria.postgresql.org; Fri, 19 Jul 2013 05:27:46 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V03EG-0001PH-Kx; Fri, 19 Jul 2013 05:27:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V03EE-0003VZ-Rt; Fri, 19 Jul 2013 05:27:44 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r6J5Rff5005526; Fri, 19 Jul 2013 01:27:41 -0400 (EDT) From: Tom Lane To: Noah Misch cc: Robert Haas , pgsql-hackers@postgresql.org, pgsql-odbc@postgresql.org Subject: Re: [HACKERS] getting rid of SnapshotNow In-reply-to: <20130719043156.GA103442@tornado.leadboat.com> References: <20130719043156.GA103442@tornado.leadboat.com> Comments: In-reply-to Noah Misch message dated "Fri, 19 Jul 2013 00:31:56 -0400" Date: Fri, 19 Jul 2013 01:27:41 -0400 Message-ID: <5525.1374211661@sss.pgh.pa.us> X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Noah Misch writes: > To me, the major advantage of removing SnapshotNow is to force all > third-party code to reevaluate. But that could be just as well > achieved by renaming it to, say, SnapshotImmediate. If there are > borderline-legitimate SnapshotNow uses in our code base, I'd lean > toward a rename instead. Even if we decide to remove every core use, > third-party code might legitimately reach a different conclusion on > similar borderline cases. Meh. If there is third-party code with a legitimate need for SnapshotNow, all we'll have done is to create an annoying version dependency for them. So if we think that's actually a likely scenario, we shouldn't rename it. But the entire point of this change IMO is that we *don't* think there is a legitimate use-case for SnapshotNow. Indeed, I'm thinking I don't believe in SnapshotSelf anymore either. It's got all the same consistency issues as SnapshotNow. In fact, it has *more* issues, because it's also vulnerable to weirdnesses caused by inconsistent ordering of tuple updates among multiple tuples updated by the same command. Why not tell people to use SnapshotDirty if they need a not-guaranteed-consistent result? At least then it's pretty obvious that you're getting some randomness in with your news. regards, tom lane -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc