Skip to content

Instantly share code, notes, and snippets.

@rueian
Created January 1, 2020 18:06
Show Gist options
  • Save rueian/a6d398ed510edf2f8594d5202560c96f to your computer and use it in GitHub Desktop.
Save rueian/a6d398ed510edf2f8594d5202560c96f to your computer and use it in GitHub Desktop.
postgres=# SELECT array_length(histogram_bounds, 1) FROM pg_stats WHERE tablename='counters' AND attname='id';
 array_length
 - - - - - - - 
 101
(1 row)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment