Postgres::getStatsTableTuples PHP Method

getStatsTableTuples() public method

Fetches tuple statistics for a table
public getStatsTableTuples ( $table ) : A
$table The table to fetch stats for
return A recordset
    function getStatsTableTuples($table)
    {
        $c_schema = $this->_schema;
        $this->clean($c_schema);
        $this->clean($table);
        $sql = "SELECT * FROM pg_stat_all_tables \n\t\t\tWHERE schemaname='{$c_schema}' AND relname='{$table}'";
        return $this->selectSet($sql);
    }
Postgres