private function load_tables($reload = true)
{
if ($this->_tables_loaded == false || $reload) {
$this->_tables = array();
//clear existing structure
$sql = "SELECT tablename FROM pg_tables WHERE schemaname = ANY (current_schemas(false))";
$res = pg_query($this->conn, $sql);
while ($row = pg_fetch_row($res)) {
$table = $row[0];
$this->_tables[$table] = true;
}
}
}