Fix calcuation of relpages for Append Only (Row) tables
If a Append Only-Row oriented table was empty, relpages of the table was estimated as 1 for a segment. So, the relpages updated in pg_class was the total number of segments available in the cluster, however that is incorrect. If the table is empty, relpages for the table in pg_class should be updated to 1. Make the calculation to show consistent behavior with other table types.
Showing
想要评论请 注册 或 登录