pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
6+ messages / 3 participants
[nested] [flat]
* 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
@ 2018-08-23 11:40 David Klika <david.klika@atlas.cz>
2018-08-23 12:41 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Sergei Kornilov <sk@zsrv.org>
0 siblings, 1 reply; 6+ messages in thread
From: David Klika @ 2018-08-23 11:40 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
2018-08-23 11:40 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
@ 2018-08-23 12:41 ` Sergei Kornilov <sk@zsrv.org>
2018-08-23 13:00 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Sergei Kornilov @ 2018-08-23 12:41 UTC (permalink / raw)
To: David Klika <david.klika@atlas.cz>; pgsql-bugs
Hello
> 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
regards, Sergei
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
2018-08-23 11:40 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
2018-08-23 12:41 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Sergei Kornilov <sk@zsrv.org>
@ 2018-08-23 13:00 ` Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 13:04 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Pavel Stehule @ 2018-08-23 13:00 UTC (permalink / raw)
To: Sergei Kornilov <sk@zsrv.org>; +Cc: David Klika <david.klika@atlas.cz>; pgsql-bugs
2018-08-23 14:41 GMT+02:00 Sergei Kornilov <sk@zsrv.org>:
> Hello
>
> > 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
Regards
Pavel
>
> regards, Sergei
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
2018-08-23 11:40 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
2018-08-23 12:41 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Sergei Kornilov <sk@zsrv.org>
2018-08-23 13:00 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
@ 2018-08-23 13:04 ` Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 14:45 ` RE: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
0 siblings, 1 reply; 6+ messages in thread
From: Pavel Stehule @ 2018-08-23 13:04 UTC (permalink / raw)
To: Sergei Kornilov <sk@zsrv.org>; +Cc: David Klika <david.klika@atlas.cz>; pgsql-bugs
2018-08-23 15:00 GMT+02:00 Pavel Stehule <pavel.stehule@gmail.com>:
>
>
> 2018-08-23 14:41 GMT+02:00 Sergei Kornilov <sk@zsrv.org>:
>
>> Hello
>>
>> > 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/doc
>> s/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.
> Regards
>
> Pavel
>
>>
>> regards, Sergei
>>
>>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* RE: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
2018-08-23 11:40 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
2018-08-23 12:41 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Sergei Kornilov <sk@zsrv.org>
2018-08-23 13:00 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 13:04 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
@ 2018-08-23 14:45 ` David Klika <david.klika@atlas.cz>
2018-08-23 14:57 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: David Klika @ 2018-08-23 14:45 UTC (permalink / raw)
To: 'Pavel Stehule' <pavel.stehule@gmail.com>; 'Sergei Kornilov' <sk@zsrv.org>; +Cc: pgsql-bugs
> 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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
2018-08-23 11:40 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
2018-08-23 12:41 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Sergei Kornilov <sk@zsrv.org>
2018-08-23 13:00 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 13:04 ` Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 14:45 ` RE: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
@ 2018-08-23 14:57 ` Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Pavel Stehule @ 2018-08-23 14:57 UTC (permalink / raw)
To: David Klika <david.klika@atlas.cz>; +Cc: Sergei Kornilov <sk@zsrv.org>; pgsql-bugs
2018-08-23 16:45 GMT+02:00 David Klika <david.klika@atlas.cz>:
>
> > 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
>
No problem :)
Pavel
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-08-23 14:57 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-23 11:40 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL David Klika <david.klika@atlas.cz>
2018-08-23 12:41 ` Sergei Kornilov <sk@zsrv.org>
2018-08-23 13:00 ` Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 13:04 ` Pavel Stehule <pavel.stehule@gmail.com>
2018-08-23 14:45 ` David Klika <david.klika@atlas.cz>
2018-08-23 14:57 ` Pavel Stehule <pavel.stehule@gmail.com>
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