pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Neil Conway <neilc@samurai.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: updateable cursors & visibility
Date: Fri, 28 Mar 2003 18:33:49 -0500 (EST)
Message-ID: <200303282333.h2SNXnL01679@candle.pha.pa.us> (raw)
In-Reply-To: <EKEJJICOHDIEMGPNIFIJIEDLLBAA.Inoue@tpf.co.jp>

Hiroshi Inoue wrote:
> > > If the cursor is INSENSITIVE, it mustn't see the row ?
> > 
> > Right.
> 
> If so, isn't the difference between SENSITIVE and INSENSITIVE extreme ?

Yes.

> Why do you or Peter refer to ASENSITIVE little ?

Not sure --- ASENSITIVE seems to be "do whatever you want", which is
always good.

> And what does the following mean ? It is placed just before the sentences
> you quoted first.
> 
>   If a cursor is open, and the SQL-transaction in which the cursor was
>   opened makes a significant change to SQL-data, then whether that
>   change is visible through that cursor before it is closed is determined
>   as follows:

There seem to be two sections, one dealing with seeing change made by
the same transaction:

         If a cursor is open, and the SQL-transaction in which the cursor
         was opened makes a significant change to SQL-data, then whether
         that change is visible through that cursor before it is closed is
         determined as follows:

and then another talking about holdable cursors after the cursor
transaction completes:

         If a holdable cursor is open during an SQL-transaction T and it
         is held open for a subsequent SQL-transaction, then whether any
         significant changes made to SQL-data (by T or any subsequent SQL-
         transaction in which the cursor is held open) are visible through
         that cursor in the subsequent SQL-transaction before that cursor is
         closed is determined as follows:


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073




view thread (34+ messages)  latest in thread

Message-ID: <200303282333.h2SNXnL01679@candle.pha.pa.us>
Permalink:  ../200303282333.h2SNXnL01679@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200303282333.h2SNXnL01679@candle.pha.pa.us

 · 

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-hackers@postgresql.org
  Cc: pgman@candle.pha.pa.us, Inoue@tpf.co.jp, peter_e@gmx.net, neilc@samurai.com
  Subject: Re: updateable cursors & visibility
  In-Reply-To: <200303282333.h2SNXnL01679@candle.pha.pa.us>
  References: <EKEJJICOHDIEMGPNIFIJIEDLLBAA.Inoue@tpf.co.jp> <200303282333.h2SNXnL01679@candle.pha.pa.us>

* 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