def METHOD_NAME(layerId, engine, dbname, schema, tablename):
    sqlTemplate = 'EXPLAIN VERBOSE SELECT * FROM %s.%s'
    try:
        t = []
        sqlQuery = sqlTemplate %(schema, tablename)
        records = engine.execute(sqlQuery)
        for i in records:
            table = re.search('[Bitmap Heap|Index|Seq] Scan.* on ([^ ]+)', i[0])
            table = table.group(1) if table else None
            if table and 'Bitmap Index Scan' not in i[0]:
                t.append('%s.%s.%s' % (dbname, schema, tablename))
        t = list(set(t))
        return sorted(t)
    except:
        pass