Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V0CNE-0002mT-6u for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jul 2013 15:13:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V0CND-0002SV-MP for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jul 2013 15:13:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V0CNB-0002R5-W9 for pgsql-hackers@postgresql.org; Fri, 19 Jul 2013 15:13:34 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V0CN7-0007w4-AV for pgsql-hackers@postgresql.org; Fri, 19 Jul 2013 15:13:33 +0000 Received: (qmail 25810 invoked by uid 512); 19 Jul 2013 15:13:26 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 19 Jul 2013 15:13:26 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 19 Jul 2013 15:13:26 -0000 Message-ID: <51E95789.5040506@tpf.co.jp> Date: Sat, 20 Jul 2013 00:13:13 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Andres Freund CC: Robert Haas , Tom Lane , pgsql-hackers@postgresql.org, pgsql-odbc@postgresql.org Subject: Re: [ODBC] getting rid of SnapshotNow References: <3461.1374158054@sss.pgh.pa.us> <51E880CD.6060304@tpf.co.jp> <20130719130330.GI20525@alap2.anarazel.de> In-Reply-To: <20130719130330.GI20525@alap2.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org (2013/07/19 22:03), Andres Freund wrote: > On 2013-07-19 08:57:01 +0900, Inoue, Hiroshi wrote: >>>> I had the idea they were used for a client-side implementation of WHERE >>>> CURRENT OF. Perhaps that's dead code and could be removed entirely? >>> >>> It's been reported that ODBC still uses them. >> >> Though PostgreSQL's TID is similar to Orale's ROWID, it is transient >> and changed after update operations unfortunately. I implemented >> the currtid_xx functions to supplement the difference. For example >> >> currtid(relname, original tid) >> >> (hopefully) returns the current tid of the original row when it is >> updated. > > That is only guaranteed to work though when you're in a transaction old > enough to prevent removal of the old or intermediate row versions. E.g. Yes it's what I meant by (hopefully). At the time when I implemented currtid(), I was able to use TIDs in combination with OIDs. regards, Hiroshi Inoue -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers