Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 45A389F956A for ; Tue, 4 Sep 2007 22:13:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 58142-01 for ; Tue, 4 Sep 2007 22:12:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id 398419F94B2 for ; Tue, 4 Sep 2007 22:12:56 -0300 (ADT) Received: from localhost.enta.net ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1ISjRg-0001J2-Vv; Wed, 05 Sep 2007 02:12:41 +0100 To: Cc: , "Heikki Linnakangas" , "FAST PostgreSQL" Subject: Re: Updatable cursor doubt In-Reply-To: <200709041737.09541.josh@agliodbs.com> (Josh Berkus's message of "Tue\, 4 Sep 2007 17\:37\:07 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.hackers" 13080) References: <46DCB86F.9070102@fast.fujitsu.com.au> <46DD226F.7060602@enterprisedb.com> <200709041737.09541.josh@agliodbs.com> From: Gregory Stark Organization: EnterpriseDB Date: Wed, 05 Sep 2007 02:12:40 +0100 Message-ID: <877in56hkn.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/177 X-Sequence-Number: 107329 "Josh Berkus" writes: > Who are we, MySQL? We ought not to accept the syntax if we're not going > to enforce it. I think the thinking is that the syntax doesn't promise anything about enforcing any restrictions. It's a method for the user to declare what features he needs. Ie, without that clause (or with a FOR UPDATE?) the database should signal an error in cases where the cursor won't handle updates. But with that clause the user is telling us that he's ok with not being able to update the cursor. Perhaps a better way to think about this case is "should you raise an error if someone opens a file in read-only mode when they actually do have write permission?" -- Gregory Stark EnterpriseDB http://www.enterprisedb.com