Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8D6D6632DB8 for ; Mon, 30 Aug 2010 20:25:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 80993-04 for ; Mon, 30 Aug 2010 23:25:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 365FB6329D6 for ; Mon, 30 Aug 2010 20:25:07 -0300 (ADT) 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 o7UNP5U6019008; Mon, 30 Aug 2010 19:25:05 -0400 (EDT) To: Mark Rostron cc: "pgsql-admin@postgresql.org" Subject: Re: plpgsql syntax question In-reply-to: References: Comments: In-reply-to Mark Rostron message dated "Mon, 30 Aug 2010 13:36:18 -0700" Date: Mon, 30 Aug 2010 19:25:04 -0400 Message-ID: <19007.1283210704@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/277 X-Sequence-Number: 35526 Mark Rostron writes: > Ok guys - there is something here that I am not seeing .... Can someone please set me straight. > I am trying to create a cursor loop with an "update where current of " statement, but my syntax is wrong. That syntax is fine ... in 8.4 and up. I think you are trying to use some older server version, and not reading the right version of the manual. regards, tom lane