-
- Downloads
Revise ResourceOwner code to avoid accumulating ResourceOwner objects
for every command executed within a transaction. For long transactions this was a significant memory leak. Instead, we can delete a portal's or subtransaction's ResourceOwner immediately, if we physically transfer the information about its locks up to the parent owner. This does not fully solve the leak problem; we need to do something about counting multiple acquisitions of the same lock in order to fix it. But it's a necessary step along the way.
Showing
- src/backend/access/transam/xact.c 38 additions, 17 deletionssrc/backend/access/transam/xact.c
- src/backend/utils/mmgr/portalmem.c 2 additions, 3 deletionssrc/backend/utils/mmgr/portalmem.c
- src/backend/utils/resowner/README 10 additions, 3 deletionssrc/backend/utils/resowner/README
- src/backend/utils/resowner/resowner.c 22 additions, 7 deletionssrc/backend/utils/resowner/resowner.c
Loading
Please register or sign in to comment