Re: [HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-20 Thread Shachar Shemesh
Tom Lane wrote: Rod Taylor [EMAIL PROTECTED] writes: On Thu, 2003-12-18 at 10:20, Tom Lane wrote: Is there any good reason for this restriction? The help implies you can. DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ] CURSOR [ { WITH | WITHOUT } HOLD ] FOR

Re: [HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-20 Thread Tom Lane
Shachar Shemesh [EMAIL PROTECTED] writes: Do I understand from what you are saying that we are pretty close to being able to perform write operations on cursors? No, I didn't say that. regards, tom lane ---(end of

Re: [HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-19 Thread Hiroshi Inoue
-Original Message- From: Tom Lane Is there any good reason for this restriction? regression=# begin; BEGIN regression=# declare c cursor for select * from tenk1 for update; ERROR: DECLARE CURSOR ... FOR UPDATE is not supported DETAIL: Cursors must be READ ONLY. Because we

[HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-18 Thread Tom Lane
Is there any good reason for this restriction? regression=# begin; BEGIN regression=# declare c cursor for select * from tenk1 for update; ERROR: DECLARE CURSOR ... FOR UPDATE is not supported DETAIL: Cursors must be READ ONLY. While I have not tried it, I think that simply removing this error

Re: [HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-18 Thread Rod Taylor
On Thu, 2003-12-18 at 10:20, Tom Lane wrote: Is there any good reason for this restriction? regression=# begin; BEGIN regression=# declare c cursor for select * from tenk1 for update; ERROR: DECLARE CURSOR ... FOR UPDATE is not supported DETAIL: Cursors must be READ ONLY. While I have

Re: [HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-18 Thread Tom Lane
Rod Taylor [EMAIL PROTECTED] writes: On Thu, 2003-12-18 at 10:20, Tom Lane wrote: Is there any good reason for this restriction? The help implies you can. DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ] CURSOR [ { WITH | WITHOUT } HOLD ] FOR query [ FOR { READ ONLY |

Re: [HACKERS] Why isn't DECLARE CURSOR ... FOR UPDATE supported?

2003-12-18 Thread Gavin Sherry
On Thu, 18 Dec 2003, Tom Lane wrote: Rod Taylor [EMAIL PROTECTED] writes: On Thu, 2003-12-18 at 10:20, Tom Lane wrote: Is there any good reason for this restriction? The help implies you can. DECLARE name [ BINARY ] [ INSENSITIVE ] [ [ NO ] SCROLL ] CURSOR [ { WITH | WITHOUT }