Return a dict with information about schemas in a database.

    CLI Example:

    .. code-block:: bash

        salt '*' postgres.schema_get dbname name

    dbname
        Database name we query on

    name
       Schema name we look for

    user
        The system user the operation should be performed on behalf of

    db_user
        database username if different from config or default

    db_password
        user password if any password for a specified user

    db_host
        Database host if different from config or default

    db_port
        Database port if different from config or default

def schema_get(dbname, name, user=None,
               db_user=None, db_password=None,
               db_host=None, db_port=None):
    '''
    Return a dict with information about schemas in a database.

    CLI Example:

    .. code-block:: bash

        salt '*' postgres.schema_get dbname name

    dbname
        Database name we query on

    name
       Schema name we look for

    user
        The system user the operation should be performed on behalf of

    db_user
        database username if different from config or default

    db_password
        user password if any password for a specified user

    db_host
        Database host if different from config or default

    db_port
        Database port if different from config or default
    '''
    all_schemas = schema_list(dbname, user=user,
                              db_user=db_user,
                              db_host=db_host,
                              db_port=db_port,
                              db_password=db_password)
    try:
        return all_schemas.get(name, None)
    except AttributeError:
        log.error('Could not retrieve Postgres schema. Is Postgres running?')
        return False