X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 30EF947580B for ; Fri, 28 Mar 2003 18:02:01 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id B8B58475458 for ; Fri, 28 Mar 2003 18:01:59 -0500 (EST) Received: (qmail 7988 invoked from network); 28 Mar 2003 23:02:00 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 28 Mar 2003 23:02:00 -0000 Received: from unknown (HELO mcadnote1) (219.61.40.41) by sd.tpf.co.jp with SMTP; 28 Mar 2003 23:02:00 -0000 From: "Hiroshi Inoue" To: "Bruce Momjian" Cc: "Peter Eisentraut" , "Neil Conway" , "PostgreSQL Hackers" Subject: Re: updateable cursors & visibility Date: Sat, 29 Mar 2003 08:05:16 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200303281612.h2SGCOi07483@candle.pha.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Status: No, hits=-17.9 required=5.0 tests=BAYES_10,IN_REP_TO,MSGID_GOOD_EXCHANGE,QUOTED_EMAIL_TEXT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/1171 X-Sequence-Number: 37417 > -----Original Message----- > From: Bruce Momjian [mailto:pgman@candle.pha.pa.us] > > Hiroshi Inoue wrote: > > > > I don't understand what you two are discussing. > > > > What's is SENSITIVE, INSENSITIVE or ASESNSITIVE ? > > > > > > In SQL99 standard, I see: > > > > > > - If the cursor is insensitive, then significant > changes are not > > > visible. > > > > > > - If the cursor is sensitive, then significant changes are > > > visible. > > > > > > - If the cursor is asensitive, then the visibility > of significant > > > changes is implementation-dependent. > > > > While a cursor is open, another application inserted a > > row which satisfies the condition to be contained in > > the cursor and committed. Then > > If the cursor is SENSITIVE, must it see the row ? > > Right. > > > If the cursor is INSENSITIVE, it mustn't see the row ? > > Right. If so, isn't the difference between SENSITIVE and INSENSITIVE extreme ? Why do you or Peter refer to ASENSITIVE little ? 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: regards, Hiroshi Inoue