You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Account for TOAST data while scheduling parallel dumps.
In parallel mode, pg_dump tries to order the table-data-dumpingjobs with the largest tables first. However, it was onlyconsulting the pg_class.relpages value to determine table size.This ignores TOAST data, and so we could make poor schedulingdecisions in cases where some large tables are mostly TOASTeddata while others have very little. To fix, add in the relpagesvalue for the TOAST table as well.This patch also fixes a potential integer-overflow issue thatcould result in poor scheduling on machines where off_t isonly 32 bits wide. Such platforms are probably extinct in thewild, but we do still nominally support them, so repair.Per complaint from Hans Buschmann.Discussion:https://postgr.es/m/7d7eb6128f40401d81b3b7a898b6b4de@W2012-02.nidsa.loc