def fetch_reserved_words(db):
    global RESERVED_WORDS

    if len(RESERVED_WORDS) == 0:
        RESERVED_WORDS = [word[0] for word in
                          db.fetchall("""SELECT word FROM pg_get_keywords()
                                         WHERE catcode = 'R'""")]
Fetch PostgreSQL reserved words
dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/__init__.py/fetch_reserved_words