pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Klika <david.klika@atlas.cz>
To: pgsql-bugs@postgresql.org
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> (raw)

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

view thread (6+ messages)  latest in thread

Message-ID: <000001d43ad6$1d9b8210$58d28630$@atlas.cz>
Permalink:  ../000001d43ad6$1d9b8210$58d28630$@atlas.cz/
Also on:    postgresql.org/message-id/000001d43ad6$1d9b8210$58d28630$@atlas.cz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: david.klika@atlas.cz
  Subject: Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
  In-Reply-To: <000001d43ad6$1d9b8210$58d28630$@atlas.cz>
  References: <000001d43ad6$1d9b8210$58d28630$@atlas.cz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox