def col_data_info_schema(db, table_name):
    """Gets metadata for a PostgreSQL table's columns"""

    qry = '''SELECT table_name, column_name, data_type
             FROM information_schema.columns
             WHERE table_name=:table_name
             ORDER BY ordinal_position'''

    return db.query(qry, table_name=table_name).all()