pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Klika <david.klika@atlas.cz>
To: 'Pavel Stehule' <pavel.stehule@gmail.com>
To: 'Sergei Kornilov' <sk@zsrv.org>
Cc: pgsql-bugs@postgresql.org
Subject: RE: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
Date: Thu, 23 Aug 2018 16:45:02 +0200
Message-ID: <000601d43aef$e04fade0$a0ef09a0$@atlas.cz> (raw)
In-Reply-To: <CAFj8pRAhiDSf8ESa1sd3XhzTta1hGPriDVPzaMN2Nvh8nQMkvw@mail.gmail.com>
References: <000001d43ad6$1d9b8210$58d28630$@atlas.cz>
	<859791535028081@myt4-906d9f8e7e5f.qloud-c.yandex.net>
	<CAFj8pRBBMRAD7GdGK6TV6DD8Ufn7heJ65xE6P0y8vjsAGDhLaQ@mail.gmail.com>
	<CAFj8pRAhiDSf8ESa1sd3XhzTta1hGPriDVPzaMN2Nvh8nQMkvw@mail.gmail.com>


> This routine works well on postgres v10:
it works? Or is only accepted as input? I got error on function call.
I thought plpgsql cannot directly uses savepoints, only implicitly with begin ... exception ... end block ( https://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPIN... )

Well, you can still create this function with set check_function_bodies to off

 

This doesn't help, because any function is validated before execution

 

but it is hard to believe, so it was working ever.

 

 

You are right, calling the method lead to error in both cases. My misunderstanding, sorry. David

view thread (6+ messages)  latest in thread

Message-ID: <000601d43aef$e04fade0$a0ef09a0$@atlas.cz>
Permalink:  ../000601d43aef$e04fade0$a0ef09a0$@atlas.cz/
Also on:    postgresql.org/message-id/000601d43aef$e04fade0$a0ef09a0$@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, pavel.stehule@gmail.com, sk@zsrv.org
  Subject: Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
  In-Reply-To: <000601d43aef$e04fade0$a0ef09a0$@atlas.cz>
  References: <000001d43ad6$1d9b8210$58d28630$@atlas.cz> <859791535028081@myt4-906d9f8e7e5f.qloud-c.yandex.net> <CAFj8pRBBMRAD7GdGK6TV6DD8Ufn7heJ65xE6P0y8vjsAGDhLaQ@mail.gmail.com> <CAFj8pRAhiDSf8ESa1sd3XhzTta1hGPriDVPzaMN2Nvh8nQMkvw@mail.gmail.com> <000601d43aef$e04fade0$a0ef09a0$@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