時(shí)間:2024-03-04 00:33作者:下載吧人氣:17
我們都知道在PostgreSQL中使用索引掃描時(shí),是通過(guò)索引中存儲(chǔ)的ctid去表中得到數(shù)據(jù)的。同時(shí)在PostgreSQL中如果要查詢的列都在索引中,我們還可以使用index only scan。
既然如此,當(dāng)我們?cè)诓樵冎杏玫絚tid時(shí),是否還能使用index only scan呢?
按理來(lái)說(shuō)是沒(méi)有問(wèn)題的,例如在Oracle中:
SQL> select rowid,id from t1 where id = 1;
網(wǎng)友評(píng)論