Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cncCa-00011l-3R for pgsql-docs@arkaria.postgresql.org; Tue, 14 Mar 2017 02:28:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cncCZ-0001EN-Km for pgsql-docs@arkaria.postgresql.org; Tue, 14 Mar 2017 02:28:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cncCY-0001ED-NN for pgsql-docs@postgresql.org; Tue, 14 Mar 2017 02:28:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cncCV-0008D0-DS for pgsql-docs@postgresql.org; Tue, 14 Mar 2017 02:28:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2E2SbsI028662; Mon, 13 Mar 2017 22:28:37 -0400 From: Tom Lane To: elliotchance@gmail.com cc: pgsql-docs@postgresql.org Subject: Re: DECLARE syntax is different from the 2016 SQL standard In-reply-to: <20170312060937.1416.26045@wrigleys.postgresql.org> References: <20170312060937.1416.26045@wrigleys.postgresql.org> Comments: In-reply-to elliotchance@gmail.com message dated "Sun, 12 Mar 2017 06:09:37 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28660.1489458517.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 13 Mar 2017 22:28:37 -0400 Message-ID: <28661.1489458517@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org elliotchance@gmail.com writes: > The 2016 standard uses a different syntax to declare a cursor: > ::=3D > DECLARE > FOR > Notice that it does not require or permit the "CURSOR" keyword = before the > "FOR" keyword. For some reason, the spec puts the CURSOR keyword into , but it's definitely there: ::=3D [ ] [ ] CURSOR [ ] [ ] regards, tom lane --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs