Postgres::getTablespace PHP Method

getTablespace() public method

Retrieves a tablespace's information
public getTablespace ( $spcname ) : A
return A recordset
    function getTablespace($spcname)
    {
        $this->clean($spcname);
        $sql = "SELECT spcname, pg_catalog.pg_get_userbyid(spcowner) AS spcowner, pg_catalog.pg_tablespace_location(oid) as spclocation,\n                    (SELECT description FROM pg_catalog.pg_shdescription pd WHERE pg_tablespace.oid=pd.objoid AND pd.classoid='pg_tablespace'::regclass) AS spccomment\n\t\t\t\t\tFROM pg_catalog.pg_tablespace WHERE spcname='{$spcname}'";
        return $this->selectSet($sql);
    }
Postgres