11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL - Mailing list pgsql-bugs

From David Klika
Subject 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
Date
Msg-id 000001d43ad6$1d9b8210$58d28630$@atlas.cz
Whole thread Raw
Responses Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL  (Sergei Kornilov <sk@zsrv.org>)
List pgsql-bugs

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

pgsql-bugs by date:

Previous
From: Alexander Kukushkin
Date:
Subject: Re: BUG #15346: Replica fails to start after the crash
Next
From: Tasos Maschalidis
Date:
Subject: Re: BUG #15347: Unaccent for greek characters does not work