powa-team / pg_qualstats

A PostgreSQL extension for collecting statistics about predicates, helping find what indices are missing
Other
272 stars 26 forks source link

Fix bug when append plan are empty. #45

Closed rdunklau closed 2 years ago

rdunklau commented 2 years ago

Since partition pruning can now happen at runtime, we can end up with an empty Append or MergeAppend plan: check that we have at least one plan in those nodes.

rjuju commented 2 years ago

Thanks for the fix Ronan!