I am attempting to run a PostgreSQL statement to query approximate table size count estimate using the following statement:
SELECT reltuples as approximate_row_count FROM pg_class WHERE relname = 'table_name';
ref: Count estimate (PostgreSQL | Wiki)
However, my query is returning two rows, one with a size and one with zero. Why?