alamb commented on issue #264:
URL: https://github.com/apache/arrow-rs/issues/264#issuecomment-834685843
I tried to see what postgres kept for statistics, and it turns out it keeps
histograms not just min/max:
```
alamb=# select * from example;
a
-----
1
2
3
NaN
(4 rows)
alamb=# select * from pg_stats where tablename = 'example';
schemaname | tablename | attname | inherited | null_frac | avg_width |
n_distinct | most_common_vals | most_common_freqs | histogram_bounds |
correlation | most_common_elems | most_common_elem_freqs | elem_count_histogram
------------+-----------+---------+-----------+-----------+-----------+------------+------------------+-------------------+------------------+-------------+-------------------+------------------------+----------------------
public | example | a | f | 0 | 8 |
-1 | | | {1,2,3,NaN} | 1 |
| |
(1 row)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]