Skip to main content

estimate_table_block_counts

Function estimate_table_block_counts 

Source
async fn estimate_table_block_counts(
    client: &Client,
    table_oids: &[u32],
) -> Result<BTreeMap<u32, u64>, TransientError>
Expand description

Estimate the number of blocks for each table from pg_class statistics. This is used to partition ctid ranges across workers.