Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 1AB949FA59C for ; Wed, 31 Jan 2007 04:37:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 17624-08 for ; Wed, 31 Jan 2007 04:37:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from developer.pgadmin.org (developer.pgadmin.org [63.246.23.140]) by postgresql.org (Postfix) with ESMTP id 237C49FA4D3 for ; Wed, 31 Jan 2007 04:37:19 -0400 (AST) Received: from [172.24.32.67] ([62.232.55.118]) (authenticated bits=0) by developer.pgadmin.org (8.13.8/8.13.8) with ESMTP id l0V8EvAP005415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Jan 2007 08:14:59 GMT Message-ID: <45C0553B.3000403@postgresql.org> Date: Wed, 31 Jan 2007 08:37:15 +0000 From: Dave Page User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Hiroshi Inoue CC: pgsql-odbc@postgresql.org Subject: Re: Updatable cursors - applications? References: <45BDCD60.7010208@postgresql.org> <45C01966.6060108@tpf.co.jp> In-Reply-To: <45C01966.6060108@tpf.co.jp> X-Enigmail-Version: 0.94.1.2 OpenPGP: url=http://www.pgadmin.org/pgp/davepage.pgp Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/82 X-Sequence-Number: 8621 Hiroshi Inoue wrote: > Dave Page wrote: >> Does anyone know if there are any apps in existence that can be used as >> a good test of the updatable cursor functionality in the driver? >> >> Hiroshi; do you have a test app for this purpose? >> >> In case anyone is wondering about my recent obsession with updatable >> cursors, there is a patch from EnterpriseDB for PostgreSQL which offers >> some quite significant performance benefits, but it does change the way >> CTIDs work which the UC feature relies on. > > The driver relies on the following. > 1. TID scans i.e SELECT/UPDATE/DELETE ... where CTID = ... > are available. > 2. The fucntions currtid(2) returns the latest tid of the given tid. > > Does the patch change the above behavior ? When I wrote originally, the version of the patch the guys were testing added a couple of extra fields to the ctid (xmin and xmax iirc) which shouldn't affect the driver (assuming there's no hard-coded memory allocations for ctid). Simon did say yesterday that he'd figured out a way to avoid changing ctid at all - I don't know yet how that's working out. The bottom line is that we have no intention of suggesting dropping any functionality - we just want to make sure everything will continue to work as it should if the patch to the server is accepted. Regards, Dave.