May 2018
Intermediate to advanced
576 pages
30h 25m
English
Be sure that the WHERE clause you are using can be used with the type of index you have. For example, the WHERE clause abs(val) < 2 won't use an index, because you're performing a function on the column, while val BETWEEN -2 AND 2 could use the index. With more advanced operators and data types, it's easy to get confused as to the type of clause that will work, so check the docs for the data type carefully.
In PostgreSQL 10, join statistics are also improved by the use of foreign keys, since they can be used in some queries to prove that joins on those keys return exactly one row.