Selecting top 10 from indexed field of a big table takes too long
In your sample code above, the index is explicitly created as NULLS LAST and the query is implicitly running NULLS FIRST (which is the default for ORDER BY .. DESC)  so PostgreSQL would need to re-sort the data if it used the index. As a result the index would actually make the query many times slower than even the (already-slow) table scan.

rds-9.6.5 root@db1=&gt; create table performance (id integer, installs integer, hour timestamp without time zone);
CREATE TABLE
Time: 28.100 ms

rds-9.6.5 root@db1=&gt; with generator as (select generate_series(1,166530) i)
[more] - &gt; insert into performance (
[more] ( &gt;   select
[more] ( &gt;     i id,
[more] ( &gt;     (random()*1000)::integer installs,
[more] ( &gt;     (now() - make_interval(secs =&gt; i))::timestamp installs
[more] ( &gt;   from generator
[more] ( &gt; );
INSERT 0 166530
Time: 244.872 ms

rds-9.6.5 root@db1=&gt; create index hour_idx
[more] - &gt; on performance
[more] - &gt; using btree
[more] - &gt; (hour desc nulls last);
CREATE INDEX
Time: 67.089 ms

rds-9.6.5 root@db1=&gt; vacuum analyze performance;
VACUUM
Time: 43.552 ms


We can add a WHERE clause on the hour column so that using the index becomes a good idea - but notice how we still need to re-sort the data from the index.

rds-9.6.5 root@db1=&gt; explain select hour from performance where hour&gt;now() order by hour desc limit 10;
                                         QUERY PLAN
---------------------------------------------------------------------------------------------
 Limit  (cost=4.45..4.46 rows=1 width=8)
   -&gt;  Sort  (cost=4.45..4.46 rows=1 width=8)
         Sort Key: hour DESC
         -&gt;  Index Only Scan using hour_idx on performance  (cost=0.42..4.44 rows=1 width=8)
               Index Cond: (hour &gt; now())
(5 rows)

Time: 0.789 ms


If we add an explicit NULLS LAST to your query then it will use the index as expected.

rds-9.6.5 root@db1=&gt; explain select hour from performance order by hour desc NULLS LAST limit 10;
                                          QUERY PLAN
-----------------------------------------------------------------------------------------------
 Limit  (cost=0.42..0.68 rows=10 width=8)
   -&gt;  Index Only Scan using hour_idx on performance  (cost=0.42..4334.37 rows=166530 width=8)
(2 rows)

Time: 0.526 ms


Alternatively, if we drop the (non-default) NULLS LAST from your index then the query will use it as expected without modification.

rds-9.6.5 root@db1=&gt; drop index hour_idx;
DROP INDEX
Time: 4.124 ms

rds-9.6.5 root@db1=&gt; create index hour_idx
[more] - &gt; on performance
[more] - &gt; using btree
[more] - &gt; (hour desc);
CREATE INDEX
Time: 69.220 ms

rds-9.6.5 root@db1=&gt; explain select hour from performance order by hour desc limit 10;
                                          QUERY PLAN
-----------------------------------------------------------------------------------------------
 Limit  (cost=0.42..0.68 rows=10 width=8)
   -&gt;  Index Only Scan using hour_idx on performance  (cost=0.42..4334.37 rows=166530 width=8)
(2 rows)

Time: 0.725 ms 


Note that you can also drop the DESC from your index; PostgreSQL can scan indexes both forwards and backwards and on single-column indexes it's generally unnecessary to reverse them.  You only need to be careful about having the right combination of order and nulls first/last.

rds-9.6.5 root@db1=&gt; drop index hour_idx;
DROP INDEX
Time: 3.837 ms

rds-9.6.5 root@db1=&gt; create index hour_idx
[more] - &gt; on performance
[more] - &gt; using btree
[more] - &gt; (hour);
CREATE INDEX
Time: 94.815 ms

rds-9.6.5 root@db1=&gt; explain select hour from performance order by hour desc limit 10;
                                               QUERY PLAN
--------------------------------------------------------------------------------------------------------
 Limit  (cost=0.42..0.68 rows=10 width=8)
   -&gt;  Index Only Scan Backward using hour_idx on performance  (cost=0.42..4334.37 rows=166530 width=8)
(2 rows)

Time: 0.740 ms