Could possibly just use table_len instead of doing fancy stuff with relpages. Would avoid the need for analyze if it works.
Could possibly just use table_len instead of doing fancy stuff with relpages. Would avoid the need for analyze if it works.