GL
Size: a a a
GL
GL
GL
IV
GL
IV
IV
GL
GL
СА
A
AS
GL
AR
СА
СА
AR
create table t (id int);
create index on t(id);
explain select * from t order by id;
-- Index Only Scan using t_id_idx on t (cost=0.15..82.41 rows=2550 width=4)
explain select * from t order by id*1;
-- Sort (cost=186.16..192.53 rows=2550 width=8)
-- Sort Key: ((id * 1))
-- -> Seq Scan on t (cost=0.00..41.88 rows=2550 width=8)
AR
K
K