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
Replace min_parallel_relation_size with two new GUCs.
When min_parallel_relation_size was added, the only supported typeof parallel scan was a parallel sequential scan, but there arepending patches for parallel index scan, parallel index-only scan,and parallel bitmap heap scan. Those patches introduce two newtypes of complications: first, what's relevant is not really thetotal size of the relation but the portion of it that we will scan;and second, index pages and heap pages shouldn't necessarily betreated in exactly the same way. Typically, the number of indexpages will be quite small, but that doesn't necessarily mean thata parallel index scan can't pay off.Therefore, we introduce min_parallel_table_scan_size, which worksout a degree of parallelism for scans based on the number of tablepages that will be scanned (and which is therefore equivalent tomin_parallel_relation_size for parallel sequential scans) and alsomin_parallel_index_scan_size which can be used to work out a degreeof parallelism based on the number of index pages that will bescanned.Amit Kapila and Robert HaasDiscussion:http://postgr.es/m/CAA4eK1KowGSYYVpd2qPpaPPA5R90r++QwDFbrRECTE9H_HvpOg@mail.gmail.comDiscussion:http://postgr.es/m/CAA4eK1+TnM4pXQbvn7OXqam+k_HZqb0ROZUMxOiL6DWJYCyYow@mail.gmail.com
gettext_noop("Sets the minimumamount oftable datafor a parallel scan."),
2781
+
gettext_noop("If the planner estimates that it will read a number of table pages too small to reach this limit, a parallel scan will not be considered."),
gettext_noop("Sets the minimum amount of index data for a parallel scan."),
2792
+
gettext_noop("If the planner estimates that it will read a number of index pages too small to reach this limit, a parallel scan will not be considered."),