In PL/PgSQL, allow a block's label to be optionally specified at the

Neil Conway <neilc@samurai.com>

Commit: c425dcb4ec9ac9aff9e241e0adcf309d2f419ba1
Author: Neil Conway <neilc@samurai.com>
Date: 2005-07-02T08:59:48Z
Releases: 8.1.0
In PL/PgSQL, allow a block's label to be optionally specified at the
end of the block:

<<label>>
begin
    ...
end label;

Similarly for loops. This is per PL/SQL. Update the documentation and
add regression tests. Patch from Pavel Stehule, code review by Neil
Conway.

Files

PathChange+/−
doc/src/sgml/plpgsql.sgml modified +18 −17
src/pl/plpgsql/src/gram.y modified +72 −32
src/test/regress/expected/plpgsql.out modified +57 −2
src/test/regress/sql/plpgsql.sql modified +50 −2