... versionadded::  2016.3.2

    Helper function to locate various psql related binaries

def _find_pg_binary(util):
    '''
    ... versionadded::  2016.3.2

    Helper function to locate various psql related binaries
    '''
    pg_bin_dir = __salt__['config.option']('postgres.bins_dir')
    util_bin = salt.utils.path.which(util)
    if not util_bin:
        if pg_bin_dir:
            return salt.utils.path.which(os.path.join(pg_bin_dir, util))
    else:
        return util_bin