Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsoM8-0008WP-FX for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Aug 2018 12:04:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsoM2-0003wt-KJ for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Aug 2018 12:04:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsnyv-0006Cw-R0 for pgsql-bugs@lists.postgresql.org; Thu, 23 Aug 2018 11:40:54 +0000 Received: from gmmr3.centrum.cz ([2a00:da80:0:502::3]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fsnyn-000627-0U for pgsql-bugs@postgresql.org; Thu, 23 Aug 2018 11:40:52 +0000 Received: from gm-as3.cent (unknown [10.255.254.16]) by gmmr3.centrum.cz (Postfix) with ESMTP id 6F7FF18008CB6 for ; Thu, 23 Aug 2018 13:40:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atlas.cz; s=mail; t=1535024438; bh=LyB9pLJ5Ab82+KrVEJmtxrscs1WNejKvPyaSdq/OtkY=; h=From:To:Subject:Date:From; b=UHjYeC5C9D+zURCes+aDqvNIHTW+ZPJkAnglMY1LLCROZ/UHdmASOXrGgbZlXPGmt BI/oZ+K3NgRJpZUOACQ3H3hHtcFvcaf5qNfY24qYcag1BhzbWZ+cuh/foTCf18gytr fjiKl6peb8/qvq5nPMgZAgWnPWJqaIFFMmIHWSKM= Received: by gm-as3.cent (Postfix, from userid 65534) id 6AB09454956; Thu, 23 Aug 2018 13:40:38 +0200 (CEST) X-Original-From: david.klika@atlas.cz X-Envelope-To: pgsql-bugs@postgresql.org X-Original-IP: 89.177.48.155 Received: from DAK (unknown [89.177.48.155]) by gm-smtp6.centrum.cz (Postfix) with ESMTPX id 0FEF89C000C9 for ; Thu, 23 Aug 2018 13:40:37 +0200 (CEST) From: "David Klika" To: Subject: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Date: Thu, 23 Aug 2018 13:40:38 +0200 Message-ID: <000001d43ad6$1d9b8210$58d28630$@atlas.cz> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D43AE6.E126C310" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdQ61W5esXnAw/4ITJCkgJ33aSBfEg== Content-Language: cs List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multipart message in MIME format. ------=_NextPart_000_0001_01D43AE6.E126C310 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This routine works well on postgres v10: CREATE FUNCTION test_savepoint() RETURNS VOID AS $body$ BEGIN SAVEPOINT my_savepoint; ROLLBACK TO my_savepoint; END $body$ LANGUAGE plpgsql; The same code can not be compiled in postgres v11 beta 3, I got error: [42601] ERROR: syntax error at or near "TO" Position: 117 Best regards David Klika ------=_NextPart_000_0001_01D43AE6.E126C310 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

This = routine works well on postgres v10:

 

CREATE = FUNCTION test_savepoint() RETURNS VOID AS $body$

BEGIN

  = SAVEPOINT my_savepoint;

  = ROLLBACK TO my_savepoint;

END $body$ = LANGUAGE plpgsql;

 

The same = code can not be compiled in postgres v11 beta 3, I got = error:

 

[42601] ERROR: syntax error at or near "TO" =

Position: 117

 

Best = regards

David = Klika

------=_NextPart_000_0001_01D43AE6.E126C310--