Re: order by in cursor declaration does not allow update

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dharmendra Goyal" <dharmendra(dot)goyal(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: order by in cursor declaration does not allow update
Date: 2007-10-25 14:21:41
Message-ID: 15083.1193322101@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Dharmendra Goyal" <dharmendra(dot)goyal(at)gmail(dot)com> writes:
> If a cursor is declared using "Order by" then it gives following error
> during updation of the cursor:
> ERROR: cursor "c" is not a simply updatable scan of table "test"

This is not a bug. (See also quote from SQL92 in the other thread.)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-10-25 14:39:38 Re: postgres under linux can't start because of postmaster.pid
Previous Message Alvaro Herrera 2007-10-25 14:12:40 text search parser, "uri"