pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Page <dpage@postgresql.org>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Updatable cursors - applications?
Date: Wed, 31 Jan 2007 08:37:15 +0000
Message-ID: <45C0553B.3000403@postgresql.org> (raw)
In-Reply-To: <45C01966.6060108@tpf.co.jp>
References: <45BDCD60.7010208@postgresql.org>
	<45C01966.6060108@tpf.co.jp>

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.



view thread (7+ messages)

Message-ID: <45C0553B.3000403@postgresql.org>
Permalink:  ../45C0553B.3000403@postgresql.org/
Also on:    postgresql.org/message-id/45C0553B.3000403@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: dpage@postgresql.org, inoue@tpf.co.jp
  Subject: Re: Updatable cursors - applications?
  In-Reply-To: <45C0553B.3000403@postgresql.org>
  References: <45BDCD60.7010208@postgresql.org> <45C01966.6060108@tpf.co.jp> <45C0553B.3000403@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox