Nikhil Sontakke 293104add2 Use numrows_pre_compression in approx row count
The approximate_row_count function was using the reltuples from
compressed chunks and multiplying that with 1000 which is the default
batch size. This was leading to a huge skew between the actual row
count and the approximate one. We now use the numrows_pre_compression
value from the timescaledb catalog which accurately represents the
number of rows before the actual compression.
2023-12-04 22:26:56 +05:30

2 lines
66 B
Plaintext

Fixes: #6365 Use numrows_pre_compression in approximate row count