Re: [Proposal] Extend TableAM routines for ANALYZE scan

2019-12-23 Thread Julien Rouhaud
Hello, On Thu, Dec 5, 2019 at 11:14 AM Pengzhou Tang wrote: > > When hacking the Zedstore, we need to get a more accurate statistic for > zedstore and we > faced some restrictions: > 1) acquire_sample_rows() always use RelationGetNumberOfBlocks to generate > sampling block > numbers, this i

[Proposal] Extend TableAM routines for ANALYZE scan

2019-12-05 Thread Pengzhou Tang
When hacking the Zedstore, we need to get a more accurate statistic for zedstore and we faced some restrictions: 1) acquire_sample_rows() always use RelationGetNumberOfBlocks to generate sampling block numbers, this is not friendly for zedstore which wants to use a logical block number and migh