-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix crash of plpgsql_check due access to invalid memory when Cursor l…
…eaks detection is processed. Cursor leaks detection uses memory from Top Transaction Context. Unfortunately, this memory can be invalidated inside function execution (when transaction is ended inside procedure). Originaly pointer to transaction context was stored as plugin2 info. After fix, the plugin2 info is pointer to fn_mcxt context structure with pointer to transaction memory and transaction id. Before any access to transaction memory, the transaction id is checked.
- Loading branch information
Showing
3 changed files
with
43 additions
and
11 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