Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if there are blocks left in columnar_scan_analyze_next_block
In PG17, the outer loop in acquire_sample_rows() changed from while (BlockSampler_HasMore(&bs)) to while (table_scan_analyze_next_block(scan, stream)) Relevant PG commit: 041b96802efa33d2bc9456f2ad946976b92b5ae1 postgres/postgres@041b968 It is expected that the scan_analyze_next_block function will check if there are any blocks left. So we add that check in columnar_scan_analyze_next_block (cherry picked from commit 7eb0ad5) (cherry picked from commit 196d0e7)
- Loading branch information