Created
February 25, 2016 13:40
-
-
Save pv8/71364d5a16a4d33d312a to your computer and use it in GitHub Desktop.
Estimate row count on big tables fast (PostgreSQL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT reltuples::bigint AS count_estimate | |
FROM pg_class | |
WHERE oid = 'schema.table'::regclass; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment