My general understanding is that a tuple is a row. However, I'm using the Postgres dev plan in Heroku. It has a limit of 10,000 rows. I have over 100,000 entries for n_live_tup
. How can this be?
Tuple
is the abstract term, row
is for the concrete implementation.
Just like relation
versus table
.
Otherwise the terms are often used meaning the same. You can find more in Wikipedia for each of them.
No idea what's behind the Heroku policies. But the numbers for n_live_tup
in pg_stat_user_tables
or pgstattuple
mean you have that many live rows in your table.
More about n_live_tup
under this related question on dba.SE.