def METHOD_NAME(table_oids, engine, metadata, connection_to_use=None):
    pg_attribute = get_pg_catalog_table("pg_attribute", engine, metadata=metadata)
    sel = select(pg_attribute.c.attnum, pg_attribute.c.attrelid.label('table_oid')).where(
        and_(
            pg_attribute.c.attrelid.in_(table_oids),
            # Ignore system columns
            pg_attribute.c.attnum > 0,
            # Ignore removed columns
            pg_attribute.c.attisdropped.is_(False)
        )
    )
    results = execute_statement(engine, sel, connection_to_use).fetchall()
    return results