-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADBDEV-5541: Backup statistics by one row #77
Conversation
When reading the description:
I can interpret in a way that this change adds an option: either use old way (load everything into RAM) or new way (get the data in portions). I think it is better to tune the description, for ex:
to avoid possible wrong interpetation. |
applied |
In the description:
I guess the 'loading' word is missed. Also, it is better to use past tense for old problematic behavior. |
fixed |
Backup statistics by one row
gpbackup backuped statistics, loading them entirely into RAM. This can create
difficulties in the case of a huge number of tables and may come down to OOM.
This patch changes the backup logic: now statistics are not loaded entirely at
once, but are requested in portions by one row. This significantly reduces RAM
consumption when backing up statistics.
The test was not added because the result does not change. And to watch the
difference in memory consumption, we need a lot of tables with large statistics,
which is not very good for running tests.