pgsql: Fix possible Assert failure in cost_memoize_rescan

2024-06-18 Thread David Rowley
Fix possible Assert failure in cost_memoize_rescan In cost_memoize_rescan(), when calculating the hit_ratio using the calls and ndistinct estimations, if the value that was set in MemoizePath.calls had not been processed through clamp_row_est(), then it was possible that it was set to some non-int

pgsql: Fix possible Assert failure in cost_memoize_rescan

2024-06-18 Thread David Rowley
Fix possible Assert failure in cost_memoize_rescan In cost_memoize_rescan(), when calculating the hit_ratio using the calls and ndistinct estimations, if the value that was set in MemoizePath.calls had not been processed through clamp_row_est(), then it was possible that it was set to some non-int

pgsql: Fix possible Assert failure in cost_memoize_rescan

2024-06-18 Thread David Rowley
Fix possible Assert failure in cost_memoize_rescan In cost_memoize_rescan(), when calculating the hit_ratio using the calls and ndistinct estimations, if the value that was set in MemoizePath.calls had not been processed through clamp_row_est(), then it was possible that it was set to some non-int

pgsql: Fix possible Assert failure in cost_memoize_rescan

2024-06-18 Thread David Rowley
Fix possible Assert failure in cost_memoize_rescan In cost_memoize_rescan(), when calculating the hit_ratio using the calls and ndistinct estimations, if the value that was set in MemoizePath.calls had not been processed through clamp_row_est(), then it was possible that it was set to some non-int