该计划:
Index Scan using Designation_place_name on myTable (cost=0.00..67701.36 rows=22043 width=27) (actual time=0.061..3.796 rows=3376 loops=1)
Index Cond: ((relation)::text = 'Manager'::text)
Filter: (timeOfJoining > '1930-10-10 00:00:00+05:53:20'::timestamp with time zone)
Total runtime: 4.082 ms
(4 rows)
基本上是指:
在第2步中,磁盘页是“随机”访问的,而不是顺序访问的,也就是说,索引包含磁盘上匹配行的地址,而Postgres则按照索引指示的顺序访问这些地址。(顺便说一句,这可能会很昂贵。有时,计划者会决定便宜一点,即只读取整个表(seq扫描)或批量获取页面上的所有行,而忽略索引指示的顺序(位图索引扫描)。)