-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid running out of memory in the face of large catalog tables.
If a table has no dependencies (e.g. foreign keys that point to it), then we need not store the catalog data in an in-memory hash table, and we can read and check rows one at a time using single-row mode instead of reading the result set all at once. Thus turns out to be faster, because the old coding built a bunch of hash tables that we didn't really need, and it also saves a lot of memory. Typically, we don't expect catalog tables to be large enough for this to matter, but it could, especially for pg_largeobject. Patch by Shruthi KC, reviewed by Mahendra Singh Thalor.
- Loading branch information
1 parent
375f058
commit 5d3bfc8
Showing
1 changed file
with
93 additions
and
15 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