From: FAST PostgreSQL <fastpgs@fast.fujitsu.com.au>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Updatable cursor doubt
Date: Tue, 4 Sep 2007 11:44:15 +1000
Message-ID: <46DCB86F.9070102@fast.fujitsu.com.au> (raw)
In CVS HEAD
workspace=# begin;
BEGIN
workspace=# declare cu cursor for select * from t1 for read only;
DECLARE CURSOR
workspace=# fetch cu;
a
---
1
(1 row)
workspace=# delete from t1 where current of cu;
DELETE 1
workspace=# commit;
COMMIT
Is this the intended behaviour? If so should we remove the 'READ ONLY'
clause from the allowable syntax?
The documentation does not have 'READ ONLY' as part of the cursor syntax
anymore.
Rgds,
Arul Shaji
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: fastpgs@fast.fujitsu.com.au
Subject: Re: Updatable cursor doubt
In-Reply-To: <46DCB86F.9070102@fast.fujitsu.com.au>
* 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