def get_public_tables(psql):
    """Fetches names of all public tables in a current database"""
    tables = []
    command = "SELECT table_name FROM information_schema.tables WHERE table_schema='public'"
    res = psql.exec(command)

    if res.success is False:
        return []
    else:
        for elem in res.result:
            tables.append(elem[0])

    return tables