Hacker News new | ask | show | jobs
by ComodoHacker 1989 days ago
>a way where this information could be obtained in a query

There's no standard way because index implementation details are hidden for a reason.

>in e.g. postgres

You can query pg_stats view (histogram_bounds column in particular) after statistics are collected.