Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 5349EEC32B9 for ; Thu, 12 Apr 2012 12:04:51 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SILZq-0006eQ-9G for pgsql-bugs@postgresql.org; Thu, 12 Apr 2012 15:04:50 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3CF4buk003120; Thu, 12 Apr 2012 11:04:37 -0400 (EDT) To: biju.george@ust-global.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6583: for loop cursor In-reply-to: <2849.1334242348@sss.pgh.pa.us> References: <2849.1334242348@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 12 Apr 2012 10:52:28 -0400" Date: Thu, 12 Apr 2012 11:04:37 -0400 Message-ID: <3119.1334243077@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/73 X-Sequence-Number: 32824 I wrote: > Works for me in 8.4.11 (after correcting record_var.id -> record_var.pid > at line 6). Maybe you need to update to some more recent version than > 8.4.0. Actually, I do get the described behavior when trying this in 8.3, which does not have FOR-over-cursor. So maybe the more appropriate question is whether you're really running 8.4.anything. regards, tom lane