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 1fsrWg-0000XE-R9 for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Aug 2018 15:28:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsrWe-00019o-5B for pgsql-bugs@arkaria.postgresql.org; Thu, 23 Aug 2018 15:27:56 +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 1fsqrJ-0002eB-OQ for pgsql-bugs@lists.postgresql.org; Thu, 23 Aug 2018 14:45:14 +0000 Received: from gmmr2.centrum.cz ([46.255.227.252]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fsqrE-00024K-K3 for pgsql-bugs@postgresql.org; Thu, 23 Aug 2018 14:45:11 +0000 Received: from gm-as3.cent (unknown [10.255.254.28]) by gmmr2.centrum.cz (Postfix) with ESMTP id 847016000148 for ; Thu, 23 Aug 2018 16:45:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atlas.cz; s=mail; t=1535035503; bh=/7Meo2Wq5R00RJm2Kx5NwELCETnPItQ490x3rS5B95A=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=lXDzCfTgD9pkC9TogAVoRCs03gNR20AkjHpoClBivlmWHtFrRLK8oLX1CVdtEByFd PSYRGuWLa1e9q7wvO9ELm+vBTDdG/UqtvuDeSWA3bG1UBDqBf/rhn82z/9GbZ5p/fi 7iosqzgrjNLRPF7JNAPqKESYsXkekuoVnaQAy4js= Received: by gm-as3.cent (Postfix, from userid 65534) id 64EA75132BC; Thu, 23 Aug 2018 16:45:03 +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 960519C000F8; Thu, 23 Aug 2018 16:45:02 +0200 (CEST) From: "David Klika" To: "'Pavel Stehule'" , "'Sergei Kornilov'" Cc: References: <000001d43ad6$1d9b8210$58d28630$@atlas.cz> <859791535028081@myt4-906d9f8e7e5f.qloud-c.yandex.net> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01D43B00.A3DAC7D0" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQFbnLioDiKtz7O1URuvK7MbdSur4AFV4xM/Ah2VmEABz1s3V6WUjUOw 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_0007_01D43B00.A3DAC7D0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > 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-TRAPPING ) Well, you can still create this function with set check_function_bodies = to off =20 This doesn't help, because any function is validated before execution =20 but it is hard to believe, so it was working ever. =20 =20 You are right, calling the method lead to error in both cases. My = misunderstanding, sorry. David ------=_NextPart_000_0007_01D43B00.A3DAC7D0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


> 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-TRAPPING )

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

------=_NextPart_000_0007_01D43B00.A3DAC7D0--