def METHOD_NAME(self):
    # Use `pg_config` to determine correct PostgreSQL installation
    pg_config = shutil.which('pg_config')
    if not pg_config:
        raise ValueError("Could not find `pg_config` to determine PostgreSQL binaries. Is PostgreSQL installed?")
    bindir = subprocess.check_output([pg_config, '--bindir']).decode().rstrip()
    if not os.path.isdir(bindir):
        raise ValueError("Error: `pg_config --bindir` didn't return a proper path: {}".format(bindir))
    initdb = os.path.join(bindir, 'initdb')
    postgres = os.path.join(bindir, 'postgres')
    if os.path.isfile(initdb) and os.path.isfile(postgres):
        if os.access(initdb, os.X_OK) and os.access(postgres, os.X_OK):
            logging.info("Found `postgres` and `initdb` in {}".format(bindir))
            return initdb, postgres
    raise ValueError("Could not find `postgres` and `initdb` binaries in {}".format(bindir))