-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plpgsql: allow nested blocks in a block with an exception handler
This commit removes the restriction on nesting PL/pgSQL blocks within a block that has an exception handler. This is accomplished by tracking the number of variables that are in scope for each block, and using that information to determine which arguments to supply to the exception handler for a block. This relies on the invariant that the variables of a parent block always form a prefix of the variables of a child block. Fixes #118551 Release note (sql change): PL/pgSQL blocks can now be nested in a block that has an exception handler.
- Loading branch information
1 parent
ccb5b6f
commit dc19dfc
Showing
5 changed files
with
138 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters