def tablespace_exists(name, user=None, host=None, port=None, maintenance_db=None, password=None, runas=None):
 tablespaces = tablespace_list(user=user, host=host, port=port, maintenance_db=maintenance_db, password=password, runas=runas)
 return (name in tablespaces)

def tablespace_exists ( name , user = None , host = None , port = None , maintenance_db = None , password = None , runas = None ) : tablespaces = tablespace_list ( user = user , host = host , port = port , maintenance_db = maintenance_db , password = password , runas = runas ) return ( name in tablespaces )
checks if a tablespace exists on the postgres server .